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

Unified Diff: content/renderer/presentation/presentation_dispatcher.h

Issue 1224953002: [PresentationAPI] Ensures only one pending message callback at a time if a frame created multiple s… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cl format Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/presentation/presentation_dispatcher.h
diff --git a/content/renderer/presentation/presentation_dispatcher.h b/content/renderer/presentation/presentation_dispatcher.h
index 2dbf07c3f1387b0d1b7f34bf4c3d39a4221eda57..aa5d03c5cdc896a209aecba65cafa7d237e15534 100644
--- a/content/renderer/presentation/presentation_dispatcher.h
+++ b/content/renderer/presentation/presentation_dispatcher.h
@@ -93,6 +93,8 @@ class CONTENT_EXPORT PresentationDispatcher
void UpdateListeningState();
+ void StartListenForMessages();
+
// Used as a weak reference. Can be null since lifetime is bound to the frame.
blink::WebPresentationController* controller_;
presentation::PresentationServicePtr presentation_service_;
@@ -121,6 +123,8 @@ class CONTENT_EXPORT PresentationDispatcher
std::set<blink::WebPresentationAvailabilityObserver*>;
AvailabilityObserversSet availability_observers_;
+ bool listening_for_messages_;
+
DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher);
};

Powered by Google App Engine
This is Rietveld 408576698