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

Side by Side Diff: content/child/permissions/permission_observers_registry.h

Issue 1057453004: Permissions: glue between Mojo and Blink for permission observing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
(Empty)
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.
4
5 #ifndef CONTENT_CHILD_PERMISSIONS_PERMISSION_OBSERVERS_REGISTRY_H_
6 #define CONTENT_CHILD_PERMISSIONS_PERMISSION_OBSERVERS_REGISTRY_H_
7
8 #include <set>
9
10 namespace blink {
11 class WebPermissionObserver;
12 }
13
14 namespace content {
15
16 class PermissionObserversRegistry {
whywhat 2015/04/02 16:20:24 add class description (e.g that it's not thread sa
mlamouri (slow - plz ping) 2015/04/02 17:02:43 Done.
mlamouri (slow - plz ping) 2015/04/02 17:02:43 Done.
17 public:
18 PermissionObserversRegistry();
19 ~PermissionObserversRegistry();
20
21 void RegisterObserver(blink::WebPermissionObserver* observer);
22 void UnregisterObserver(blink::WebPermissionObserver* observer);
23 bool IsObserverRegistered(blink::WebPermissionObserver* observer) const;
24
25 private:
26 std::set<blink::WebPermissionObserver*> observers_;
27 };
28
29 } // namespace content
30
31 #endif // CONTENT_CHILD_PERMISSIONS_PERMISSION_OBSERVERS_REGISTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698