OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebPresentationAvailabilityObserver_h | 5 #ifndef WebPresentationAvailabilityObserver_h |
6 #define WebPresentationAvailabilityObserver_h | 6 #define WebPresentationAvailabilityObserver_h |
7 | 7 |
| 8 #include "public/platform/WebCommon.h" |
8 #include "public/platform/WebURL.h" | 9 #include "public/platform/WebURL.h" |
9 | 10 |
10 namespace blink { | 11 namespace blink { |
11 | 12 |
12 // WebPresentationAvailabilityObserver is an interface that is implemented by | 13 // WebPresentationAvailabilityObserver is an interface that is implemented by |
13 // objects that wish to be notified when there is a presentation display | 14 // objects that wish to be notified when there is a presentation display |
14 // availability change for a given URL. | 15 // availability change for a given URL. |
15 class WebPresentationAvailabilityObserver { | 16 class BLINK_PLATFORM_EXPORT WebPresentationAvailabilityObserver { |
16 public: | 17 public: |
17 virtual ~WebPresentationAvailabilityObserver() = default; | 18 virtual ~WebPresentationAvailabilityObserver() = default; |
18 | 19 |
19 virtual void availabilityChanged(bool) = 0; | 20 virtual void availabilityChanged(bool) = 0; |
20 | 21 |
21 virtual const WebURL url() const = 0; | 22 virtual const WebURL url() const = 0; |
22 }; | 23 }; |
23 | 24 |
24 } // namespace blink | 25 } // namespace blink |
25 | 26 |
26 #endif // WebPresentationAvailabilityObserver_h | 27 #endif // WebPresentationAvailabilityObserver_h |
OLD | NEW |