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

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: Remove unnecessary includes 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // This can be called only when ARC is running. 200 // This can be called only when ARC is running.
201 void StopAndEnableArc(); 201 void StopAndEnableArc();
202 202
203 // Removes the data if ARC is stopped. Otherwise, queue to remove the data 203 // Removes the data if ARC is stopped. Otherwise, queue to remove the data
204 // on ARC is stopped. 204 // on ARC is stopped.
205 void RemoveArcData(); 205 void RemoveArcData();
206 206
207 ArcSupportHost* support_host() { return support_host_.get(); } 207 ArcSupportHost* support_host() { return support_host_.get(); }
208 208
209 // TODO(hidehiko): Get rid of the getter by migration between ArcAuthContext 209 // TODO(hidehiko): Get rid of the getter by migration between ArcAuthContext
210 // and ArcAuthCodeFetcher. 210 // and ArcAuthInfoFetcher.
211 ArcAuthContext* auth_context() { return context_.get(); } 211 ArcAuthContext* auth_context() { return context_.get(); }
212 212
213 void StartArc(); 213 void StartArc();
214 214
215 void OnProvisioningFinished(ProvisioningResult result); 215 void OnProvisioningFinished(ProvisioningResult result);
216 216
217 // Injectors for testing. 217 // Injectors for testing.
218 void SetArcSessionRunnerForTesting( 218 void SetArcSessionRunnerForTesting(
219 std::unique_ptr<ArcSessionRunner> arc_session_runner); 219 std::unique_ptr<ArcSessionRunner> arc_session_runner);
220 void SetAttemptUserExitCallbackForTesting(const base::Closure& callback); 220 void SetAttemptUserExitCallbackForTesting(const base::Closure& callback);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); 281 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager);
282 }; 282 };
283 283
284 // Outputs the stringified |state| to |os|. This is only for logging purposes. 284 // Outputs the stringified |state| to |os|. This is only for logging purposes.
285 std::ostream& operator<<(std::ostream& os, 285 std::ostream& operator<<(std::ostream& os,
286 const ArcSessionManager::State& state); 286 const ArcSessionManager::State& state);
287 287
288 } // namespace arc 288 } // namespace arc
289 289
290 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ 290 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698