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

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

Issue 1057453004: Permissions: glue between Mojo and Blink for permission observing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review commetns 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
« no previous file with comments | « content/child/permissions/permission_observers_registry.h ('k') | content/content_child.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/child/permissions/permission_observers_registry.h"
6
7 #include "third_party/WebKit/public/platform/modules/permissions/WebPermissionOb server.h"
8
9 namespace content {
10
11 PermissionObserversRegistry::PermissionObserversRegistry() {
12 }
13
14 PermissionObserversRegistry::~PermissionObserversRegistry() {
15 }
16
17 void PermissionObserversRegistry::RegisterObserver(
18 blink::WebPermissionObserver* observer) {
19 observers_.insert(observer);
20 }
21
22 void PermissionObserversRegistry::UnregisterObserver(
23 blink::WebPermissionObserver* observer) {
24 observers_.erase(observer);
25 }
26
27 bool PermissionObserversRegistry::IsObserverRegistered(
28 blink::WebPermissionObserver* observer) const {
29 return observers_.find(observer) != observers_.end();
30 }
31
32 } // namespace content
OLDNEW
« no previous file with comments | « content/child/permissions/permission_observers_registry.h ('k') | content/content_child.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698