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

Unified Diff: components/arc/arc_bridge_service.h

Issue 1553613002: Add ArcAuthService to handle IPC request from ARC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: components/arc/arc_bridge_service.h
diff --git a/components/arc/arc_bridge_service.h b/components/arc/arc_bridge_service.h
index 12aae9d30f76d063bda8a67dfb05e6add5973802..e1433c339aa8d516ac3e4aece8acdce53806d75a 100644
--- a/components/arc/arc_bridge_service.h
+++ b/components/arc/arc_bridge_service.h
@@ -76,6 +76,9 @@ class ArcBridgeService : public ArcBridgeHost {
// Called whenever the ARC app list is ready.
virtual void OnAppInstanceReady() {}
+ // Called whenever the ARC auth is ready.
+ virtual void OnAuthInstanceReady() {}
+
// Called whenever the ARC input is ready.
virtual void OnInputInstanceReady() {}
@@ -142,6 +145,7 @@ class ArcBridgeService : public ArcBridgeHost {
// you want to be notified when this is ready. This can only be called on the
// thread that this class was created on.
AppInstance* app_instance() { return app_ptr_.get(); }
+ AuthInstance* auth_instance() { return auth_ptr_.get(); }
InputInstance* input_instance() { return input_ptr_.get(); }
NotificationsInstance* notifications_instance() {
return notifications_ptr_.get();
@@ -152,6 +156,7 @@ class ArcBridgeService : public ArcBridgeHost {
// ArcHost:
void OnAppInstanceReady(AppInstancePtr app_ptr) override;
+ void OnAuthInstanceReady(AuthInstancePtr auth_ptr) override;
void OnInputInstanceReady(InputInstancePtr input_ptr) override;
void OnNotificationsInstanceReady(
NotificationsInstancePtr notifications_ptr) override;
@@ -186,6 +191,7 @@ class ArcBridgeService : public ArcBridgeHost {
// Mojo interfaces.
AppInstancePtr app_ptr_;
+ AuthInstancePtr auth_ptr_;
InputInstancePtr input_ptr_;
NotificationsInstancePtr notifications_ptr_;
PowerInstancePtr power_ptr_;

Powered by Google App Engine
This is Rietveld 408576698