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

Side by Side Diff: chrome/browser/chromeos/arc/arc_auth_service.h

Issue 1885683005: Add module suffix in .mojom files for components/arc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase only Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_auth_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_
7 7
8 #include <ostream> 8 #include <ostream>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 21 matching lines...) Expand all
32 32
33 namespace user_prefs { 33 namespace user_prefs {
34 class PrefRegistrySyncable; 34 class PrefRegistrySyncable;
35 } 35 }
36 36
37 namespace arc { 37 namespace arc {
38 38
39 // This class proxies the request from the client to fetch an auth code from 39 // This class proxies the request from the client to fetch an auth code from
40 // LSO. 40 // LSO.
41 class ArcAuthService : public ArcService, 41 class ArcAuthService : public ArcService,
42 public AuthHost, 42 public mojom::AuthHost,
43 public ArcBridgeService::Observer, 43 public ArcBridgeService::Observer,
44 public UbertokenConsumer, 44 public UbertokenConsumer,
45 public GaiaAuthConsumer, 45 public GaiaAuthConsumer,
46 public syncable_prefs::PrefServiceSyncableObserver, 46 public syncable_prefs::PrefServiceSyncableObserver,
47 public syncable_prefs::SyncedPrefObserver { 47 public syncable_prefs::SyncedPrefObserver {
48 public: 48 public:
49 enum class State { 49 enum class State {
50 STOPPED, // ARC is not running. 50 STOPPED, // ARC is not running.
51 FETCHING_CODE, // ARC may be running or not. Auth code is fetching. 51 FETCHING_CODE, // ARC may be running or not. Auth code is fetching.
52 ACTIVE, // ARC is running. 52 ACTIVE, // ARC is running.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // ArcBridgeService::Observer: 102 // ArcBridgeService::Observer:
103 void OnAuthInstanceReady() override; 103 void OnAuthInstanceReady() override;
104 104
105 // AuthHost: 105 // AuthHost:
106 // For security reason this code can be used only once and exists for specific 106 // For security reason this code can be used only once and exists for specific
107 // period of time. 107 // period of time.
108 void GetAuthCodeDeprecated( 108 void GetAuthCodeDeprecated(
109 const GetAuthCodeDeprecatedCallback& callback) override; 109 const GetAuthCodeDeprecatedCallback& callback) override;
110 void GetAuthCode(const GetAuthCodeCallback& callback) override; 110 void GetAuthCode(const GetAuthCodeCallback& callback) override;
111 void OnSignInComplete() override; 111 void OnSignInComplete() override;
112 void OnSignInFailed(arc::ArcSignInFailureReason reason) override; 112 void OnSignInFailed(arc::mojom::ArcSignInFailureReason reason) override;
113 // Callback is called with a bool that indicates the management status of the 113 // Callback is called with a bool that indicates the management status of the
114 // user. 114 // user.
115 void GetIsAccountManaged( 115 void GetIsAccountManaged(
116 const GetIsAccountManagedCallback& callback) override; 116 const GetIsAccountManagedCallback& callback) override;
117 117
118 // Called from Arc support platform app to start LSO. 118 // Called from Arc support platform app to start LSO.
119 void StartLso(); 119 void StartLso();
120 120
121 // Called from Arc support platform app to set auth code and start arc. 121 // Called from Arc support platform app to set auth code and start arc.
122 void SetAuthCodeAndStartArc(const std::string& auth_code); 122 void SetAuthCodeAndStartArc(const std::string& auth_code);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 base::string16 ui_page_status_; 182 base::string16 ui_page_status_;
183 183
184 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); 184 DISALLOW_COPY_AND_ASSIGN(ArcAuthService);
185 }; 185 };
186 186
187 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); 187 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state);
188 188
189 } // namespace arc 189 } // namespace arc
190 190
191 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ 191 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_
OLDNEW
« 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