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