Commit 6abc8722 authored by imcheng's avatar imcheng Committed by Commit bot

Small fix for PresentationScreenAvailabilityListener.

Also fixed PresentationServiceAvailabilityListener interface.
- fixed dtor naming and moved to public
- GetPresentationUrl() is now a const function

BUG=412331

Review URL: https://codereview.chromium.org/887293002

Cr-Commit-Position: refs/heads/master@{#314095}
parent 5b595f68
...@@ -14,15 +14,14 @@ namespace content { ...@@ -14,15 +14,14 @@ namespace content {
// See also PresentationServiceDelegate. // See also PresentationServiceDelegate.
class PresentationScreenAvailabilityListener { class PresentationScreenAvailabilityListener {
public: public:
virtual ~PresentationScreenAvailabilityListener() {}
// Returns the Presentation URL associated with this listener. // Returns the Presentation URL associated with this listener.
virtual std::string GetPresentationUrl() = 0; virtual std::string GetPresentationUrl() const = 0;
// Called when screen availability for the associated Presentation URL has // Called when screen availability for the associated Presentation URL has
// changed to |available|. // changed to |available|.
virtual void OnScreenAvailabilityChanged(bool available) = 0; virtual void OnScreenAvailabilityChanged(bool available) = 0;
protected:
virtual ~ScreenAvailabilityListener() {}
}; };
} // namespace content } // namespace content
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment