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

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

Issue 2655873002: Get enrollment token from DMServer when an Active Directory user uses ARC (Closed)
Patch Set: Change error message string Created 3 years, 10 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
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_SESSION_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <ostream> 9 #include <ostream>
10 #include <string> 10 #include <string>
(...skipping 16 matching lines...) Expand all
27 class ShelfDelegate; 27 class ShelfDelegate;
28 } 28 }
29 29
30 namespace user_prefs { 30 namespace user_prefs {
31 class PrefRegistrySyncable; 31 class PrefRegistrySyncable;
32 } 32 }
33 33
34 namespace arc { 34 namespace arc {
35 35
36 class ArcAndroidManagementChecker; 36 class ArcAndroidManagementChecker;
37 class ArcAuthCodeFetcher; 37 class ArcAuthInfoFetcher;
38 class ArcAuthContext; 38 class ArcAuthContext;
39 class ArcSessionRunner; 39 class ArcSessionRunner;
40 class ArcTermsOfServiceNegotiator; 40 class ArcTermsOfServiceNegotiator;
41 enum class ProvisioningResult : int; 41 enum class ProvisioningResult : int;
42 42
43 // This class proxies the request from the client to fetch an auth code from 43 // This class proxies the request from the client to fetch an auth code from
44 // LSO. It lives on the UI thread. 44 // LSO. It lives on the UI thread.
45 class ArcSessionManager : public ArcSessionObserver, 45 class ArcSessionManager : public ArcSessionObserver,
46 public ArcSupportHost::Observer, 46 public ArcSupportHost::Observer,
47 public sync_preferences::PrefServiceSyncableObserver, 47 public sync_preferences::PrefServiceSyncableObserver,
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // This can be called only when ARC is running. 202 // This can be called only when ARC is running.
203 void StopAndEnableArc(); 203 void StopAndEnableArc();
204 204
205 // Removes the data if ARC is stopped. Otherwise, queue to remove the data 205 // Removes the data if ARC is stopped. Otherwise, queue to remove the data
206 // on ARC is stopped. 206 // on ARC is stopped.
207 void RemoveArcData(); 207 void RemoveArcData();
208 208
209 ArcSupportHost* support_host() { return support_host_.get(); } 209 ArcSupportHost* support_host() { return support_host_.get(); }
210 210
211 // TODO(hidehiko): Get rid of the getter by migration between ArcAuthContext 211 // TODO(hidehiko): Get rid of the getter by migration between ArcAuthContext
212 // and ArcAuthCodeFetcher. 212 // and ArcAuthInfoFetcher.
213 ArcAuthContext* auth_context() { return context_.get(); } 213 ArcAuthContext* auth_context() { return context_.get(); }
214 214
215 void StartArc(); 215 void StartArc();
216 216
217 void OnProvisioningFinished(ProvisioningResult result); 217 void OnProvisioningFinished(ProvisioningResult result);
218 218
219 // Injectors for testing. 219 // Injectors for testing.
220 void SetArcSessionRunnerForTesting( 220 void SetArcSessionRunnerForTesting(
221 std::unique_ptr<ArcSessionRunner> arc_session_runner); 221 std::unique_ptr<ArcSessionRunner> arc_session_runner);
222 void SetAttemptUserExitCallbackForTesting(const base::Closure& callback); 222 void SetAttemptUserExitCallbackForTesting(const base::Closure& callback);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); 283 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager);
284 }; 284 };
285 285
286 // Outputs the stringified |state| to |os|. This is only for logging purposes. 286 // Outputs the stringified |state| to |os|. This is only for logging purposes.
287 std::ostream& operator<<(std::ostream& os, 287 std::ostream& operator<<(std::ostream& os,
288 const ArcSessionManager::State& state); 288 const ArcSessionManager::State& state);
289 289
290 } // namespace arc 290 } // namespace arc
291 291
292 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ 292 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698