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

Unified Diff: components/arc/arc_bridge_service.cc

Issue 1475583002: Add IPC messages for ARC notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years 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
« no previous file with comments | « components/arc/arc_bridge_service.h ('k') | components/arc/arc_bridge_service_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/arc_bridge_service.cc
diff --git a/components/arc/arc_bridge_service.cc b/components/arc/arc_bridge_service.cc
index 640e3792fb909c8e4c264acf9f06c971aad675e7..39072fd71c834083bfb9f18fb5995ac8df04a350 100644
--- a/components/arc/arc_bridge_service.cc
+++ b/components/arc/arc_bridge_service.cc
@@ -57,6 +57,17 @@ void ArcBridgeService::RemoveObserver(Observer* observer) {
observer_list_.RemoveObserver(observer);
}
+void ArcBridgeService::AddNotificationObserver(NotificationObserver* observer) {
+ DCHECK(origin_task_runner()->RunsTasksOnCurrentThread());
+ notification_observer_list_.AddObserver(observer);
+}
+
+void ArcBridgeService::RemoveNotificationObserver(
+ NotificationObserver* observer) {
+ DCHECK(origin_task_runner()->RunsTasksOnCurrentThread());
+ notification_observer_list_.RemoveObserver(observer);
+}
+
void ArcBridgeService::AddAppObserver(AppObserver* observer) {
DCHECK(origin_task_runner()->RunsTasksOnCurrentThread());
app_observer_list_.AddObserver(observer);
« no previous file with comments | « components/arc/arc_bridge_service.h ('k') | components/arc/arc_bridge_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698