Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: public/platform/modules/presentation/WebPresentationAvailabilityObserver.h

Issue 1322493006: Presentation API: ignore page visibility changes if ExecutionContext is destoyed. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: forgot file Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698