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

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: Fix Luis's comments 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 // Returns the time when the sign in process started, or a null time if 219 // Returns the time when the sign in process started, or a null time if
220 // signing in didn't happen during this session. 220 // signing in didn't happen during this session.
221 base::Time sign_in_start_time() const { return sign_in_start_time_; } 221 base::Time sign_in_start_time() const { return sign_in_start_time_; }
222 222
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); 295 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager);
296 }; 296 };
297 297
298 // Outputs the stringified |state| to |os|. This is only for logging purposes. 298 // Outputs the stringified |state| to |os|. This is only for logging purposes.
299 std::ostream& operator<<(std::ostream& os, 299 std::ostream& operator<<(std::ostream& os,
300 const ArcSessionManager::State& state); 300 const ArcSessionManager::State& state);
301 301
302 } // namespace arc 302 } // namespace arc
303 303
304 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ 304 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_auth_service.cc ('k') | chrome/browser/chromeos/arc/arc_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698