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/WebCommon.h" |
9 #include "public/platform/WebURL.h" | 9 #include "public/platform/WebURL.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
| 13 class WebString; |
| 14 template <typename T> class WebVector; |
| 15 |
13 // WebPresentationAvailabilityObserver is an interface that is implemented by | 16 // WebPresentationAvailabilityObserver is an interface that is implemented by |
14 // objects that wish to be notified when there is a presentation display | 17 // objects that wish to be notified when there is a presentation display |
15 // availability change for a given URL. | 18 // availability change for given URLs. |
16 class BLINK_PLATFORM_EXPORT WebPresentationAvailabilityObserver { | 19 class BLINK_PLATFORM_EXPORT WebPresentationAvailabilityObserver { |
17 public: | 20 public: |
18 virtual ~WebPresentationAvailabilityObserver() = default; | 21 virtual ~WebPresentationAvailabilityObserver() = default; |
19 | 22 |
20 virtual void availabilityChanged(bool) = 0; | 23 virtual void availabilityChanged(bool) = 0; |
21 | 24 |
22 virtual const WebURL url() const = 0; | 25 virtual const WebVector<WebURL>& urls() const = 0; |
23 }; | 26 }; |
24 | 27 |
25 } // namespace blink | 28 } // namespace blink |
26 | 29 |
27 #endif // WebPresentationAvailabilityObserver_h | 30 #endif // WebPresentationAvailabilityObserver_h |
OLD | NEW |