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

Unified Diff: components/arc/arc_bridge_service_impl.h

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.cc ('k') | components/arc/arc_bridge_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/arc_bridge_service_impl.h
diff --git a/components/arc/arc_bridge_service_impl.h b/components/arc/arc_bridge_service_impl.h
index 7482363ecc26e5556905aeecb0d5b33af2e0008b..3f57f67f37a672eae4a97d1c9b0e55b030f3642a 100644
--- a/components/arc/arc_bridge_service_impl.h
+++ b/components/arc/arc_bridge_service_impl.h
@@ -38,6 +38,9 @@ class ArcBridgeServiceImpl : public ArcBridgeService,
const std::string& device_type,
base::ScopedFD fd) override;
+ bool SendNotificationEventToAndroid(const std::string& key,
+ ArcNotificationEvent event) override;
+
// Requests to refresh an app list.
bool RefreshAppList() override;
@@ -81,6 +84,10 @@ class ArcBridgeServiceImpl : public ArcBridgeService,
// Called when the instance has reached a boot phase
void OnInstanceBootPhase(InstanceBootPhase phase);
+ // Handler for ArcInstanceHostMsg_NotificationPosted message.
+ void OnNotificationPostedFromAndroid(const ArcNotificationData& data);
+ // Handler for ArcInstanceHostMsg_NotificationRemoved message.
+ void OnNotificationRemovedFromAndroid(const std::string& key);
// Called whenever ARC sends information about available apps.
void OnAppListRefreshed(const std::vector<arc::AppInfo>& apps);
« no previous file with comments | « components/arc/arc_bridge_service.cc ('k') | components/arc/arc_bridge_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698