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

Unified Diff: chrome/browser/chromeos/arc/arc_auth_service.h

Issue 2133503002: arc: Revamp the ArcBridgeService interface (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: More rebasing Created 4 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_auth_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/arc_auth_service.h
diff --git a/chrome/browser/chromeos/arc/arc_auth_service.h b/chrome/browser/chromeos/arc/arc_auth_service.h
index 3c3a98b5002a8d1dc802c249a02c66ebd3cb0783..d86d93f97063180244932ade7f347e83f110617b 100644
--- a/chrome/browser/chromeos/arc/arc_auth_service.h
+++ b/chrome/browser/chromeos/arc/arc_auth_service.h
@@ -17,6 +17,7 @@
#include "components/arc/arc_bridge_service.h"
#include "components/arc/arc_service.h"
#include "components/arc/common/auth.mojom.h"
+#include "components/arc/instance_holder.h"
#include "components/prefs/pref_change_registrar.h"
#include "components/syncable_prefs/pref_service_syncable_observer.h"
#include "components/syncable_prefs/synced_pref_observer.h"
@@ -43,6 +44,7 @@ class ArcAuthContext;
class ArcAuthService : public ArcService,
public mojom::AuthHost,
public ArcBridgeService::Observer,
+ public InstanceHolder<mojom::AuthInstance>::Observer,
public ArcAndroidManagementCheckerDelegate,
public ArcAuthContextDelegate,
public syncable_prefs::PrefServiceSyncableObserver,
@@ -122,9 +124,11 @@ class ArcAuthService : public ArcService,
void RemoveObserver(Observer* observer);
// ArcBridgeService::Observer:
- void OnAuthInstanceReady() override;
void OnBridgeStopped() override;
+ // InstanceHolder<mojom::AuthInstance>::Observer:
+ void OnInstanceReady() override;
+
// AuthHost:
// For security reason this code can be used only once and exists for specific
// period of time.
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_auth_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698