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

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 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
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..af75415991b8b46aa657e22d38eedfa27e73d060 100644
--- a/components/arc/arc_bridge_service.h
+++ b/components/arc/arc_bridge_service.h
@@ -91,6 +91,9 @@ class ArcBridgeService : public ArcBridgeHost {
// Called whenever the ARC settings is ready.
virtual void OnSettingsInstanceReady() {}
+ // Called whenever the ARC auth is ready.
+ virtual void OnAuthInstanceReady() {}
+
protected:
virtual ~Observer() {}
};
@@ -149,6 +152,7 @@ class ArcBridgeService : public ArcBridgeHost {
PowerInstance* power_instance() { return power_ptr_.get(); }
ProcessInstance* process_instance() { return process_ptr_.get(); }
SettingsInstance* settings_instance() { return settings_ptr_.get(); }
+ AuthInstance* auth_instance() { return auth_ptr_.get(); }
Luis Héctor Chávez 2015/12/30 00:02:37 Sort lexicographically please. Same in the rest of
victorhsieh 2015/12/30 00:32:34 Done.
// ArcHost:
void OnAppInstanceReady(AppInstancePtr app_ptr) override;
@@ -158,6 +162,7 @@ class ArcBridgeService : public ArcBridgeHost {
void OnPowerInstanceReady(PowerInstancePtr power_ptr) override;
void OnProcessInstanceReady(ProcessInstancePtr process_ptr) override;
void OnSettingsInstanceReady(SettingsInstancePtr process_ptr) override;
+ void OnAuthInstanceReady(AuthInstancePtr auth_ptr) override;
// Gets the current state of the bridge service.
State state() const { return state_; }
@@ -191,6 +196,7 @@ class ArcBridgeService : public ArcBridgeHost {
PowerInstancePtr power_ptr_;
ProcessInstancePtr process_ptr_;
SettingsInstancePtr settings_ptr_;
+ AuthInstancePtr auth_ptr_;
base::ObserverList<Observer> observer_list_;

Powered by Google App Engine
This is Rietveld 408576698