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

Side by Side 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: 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 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 CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ 5 #ifndef CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_
6 #define CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ 6 #define CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/memory/linked_ptr.h" 10 #include "base/memory/linked_ptr.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 bool last_known_availability_; 114 bool last_known_availability_;
115 115
116 using AvailabilityCallbacksMap = 116 using AvailabilityCallbacksMap =
117 IDMap<blink::WebPresentationAvailabilityCallbacks, IDMapOwnPointer>; 117 IDMap<blink::WebPresentationAvailabilityCallbacks, IDMapOwnPointer>;
118 AvailabilityCallbacksMap availability_callbacks_; 118 AvailabilityCallbacksMap availability_callbacks_;
119 119
120 using AvailabilityObserversSet = 120 using AvailabilityObserversSet =
121 std::set<blink::WebPresentationAvailabilityObserver*>; 121 std::set<blink::WebPresentationAvailabilityObserver*>;
122 AvailabilityObserversSet availability_observers_; 122 AvailabilityObserversSet availability_observers_;
123 123
124 bool listening_for_messages_;
125
124 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); 126 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher);
125 }; 127 };
126 128
127 } // namespace content 129 } // namespace content
128 130
129 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ 131 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698