Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / public / platform / modules / presentation / WebPresentationAvailabilityObserver.h
blob49d68359d3a189c9280664f7c3eb239ee13a3bc1
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
3 // found in the LICENSE file.
5 #ifndef WebPresentationAvailabilityObserver_h
6 #define WebPresentationAvailabilityObserver_h
8 #include "public/platform/WebCommon.h"
9 #include "public/platform/WebURL.h"
11 namespace blink {
13 // WebPresentationAvailabilityObserver is an interface that is implemented by
14 // objects that wish to be notified when there is a presentation display
15 // availability change for a given URL.
16 class BLINK_PLATFORM_EXPORT WebPresentationAvailabilityObserver {
17 public:
18 virtual ~WebPresentationAvailabilityObserver() = default;
20 virtual void availabilityChanged(bool) = 0;
22 virtual const WebURL url() const = 0;
25 } // namespace blink
27 #endif // WebPresentationAvailabilityObserver_h