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

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

Issue 2190483003: arc: Revamp the ArcBridgeService interface (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@2785
Patch Set: One less diff line 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 aa18a8d259ff92444625f0ac23f0024fc6ab9210..65be2f9d8f5fcfe1772427f0f188af9b0c47b3a8 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,
@@ -121,9 +123,11 @@ class ArcAuthService : public ArcService,
void RemoveObserver(Observer* observer);
// ArcBridgeService::Observer:
- void OnAuthInstanceReady() override;
void OnBridgeStopped(ArcBridgeService::StopReason reason) 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