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

Side by Side Diff: chrome/browser/chromeos/login/user_manager_impl.h

Issue 23678007: OAuth2LoginManager+MergeSessionThrottle hardening, multi-profle support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_LOGIN_USER_MANAGER_IMPL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 virtual bool IsUserLoggedIn() const OVERRIDE; 100 virtual bool IsUserLoggedIn() const OVERRIDE;
101 virtual bool IsLoggedInAsRegularUser() const OVERRIDE; 101 virtual bool IsLoggedInAsRegularUser() const OVERRIDE;
102 virtual bool IsLoggedInAsDemoUser() const OVERRIDE; 102 virtual bool IsLoggedInAsDemoUser() const OVERRIDE;
103 virtual bool IsLoggedInAsPublicAccount() const OVERRIDE; 103 virtual bool IsLoggedInAsPublicAccount() const OVERRIDE;
104 virtual bool IsLoggedInAsGuest() const OVERRIDE; 104 virtual bool IsLoggedInAsGuest() const OVERRIDE;
105 virtual bool IsLoggedInAsLocallyManagedUser() const OVERRIDE; 105 virtual bool IsLoggedInAsLocallyManagedUser() const OVERRIDE;
106 virtual bool IsLoggedInAsKioskApp() const OVERRIDE; 106 virtual bool IsLoggedInAsKioskApp() const OVERRIDE;
107 virtual bool IsLoggedInAsStub() const OVERRIDE; 107 virtual bool IsLoggedInAsStub() const OVERRIDE;
108 virtual bool IsSessionStarted() const OVERRIDE; 108 virtual bool IsSessionStarted() const OVERRIDE;
109 virtual bool UserSessionsRestored() const OVERRIDE; 109 virtual bool UserSessionsRestored() const OVERRIDE;
110 virtual MergeSessionState GetMergeSessionState() const OVERRIDE;
111 virtual void SetMergeSessionState(MergeSessionState status) OVERRIDE;
112 virtual bool HasBrowserRestarted() const OVERRIDE; 110 virtual bool HasBrowserRestarted() const OVERRIDE;
113 virtual bool IsUserNonCryptohomeDataEphemeral( 111 virtual bool IsUserNonCryptohomeDataEphemeral(
114 const std::string& email) const OVERRIDE; 112 const std::string& email) const OVERRIDE;
115 virtual void AddObserver(UserManager::Observer* obs) OVERRIDE; 113 virtual void AddObserver(UserManager::Observer* obs) OVERRIDE;
116 virtual void RemoveObserver(UserManager::Observer* obs) OVERRIDE; 114 virtual void RemoveObserver(UserManager::Observer* obs) OVERRIDE;
117 virtual void AddSessionStateObserver( 115 virtual void AddSessionStateObserver(
118 UserManager::UserSessionStateObserver* obs) OVERRIDE; 116 UserManager::UserSessionStateObserver* obs) OVERRIDE;
119 virtual void RemoveSessionStateObserver( 117 virtual void RemoveSessionStateObserver(
120 UserManager::UserSessionStateObserver* obs) OVERRIDE; 118 UserManager::UserSessionStateObserver* obs) OVERRIDE;
121 virtual void NotifyLocalStateChanged() OVERRIDE; 119 virtual void NotifyLocalStateChanged() OVERRIDE;
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 // such users by not adding them to the persistent user list, not downloading 356 // such users by not adding them to the persistent user list, not downloading
359 // their custom avatars and mounting their cryptohomes using tmpfs. Defaults 357 // their custom avatars and mounting their cryptohomes using tmpfs. Defaults
360 // to |false|. 358 // to |false|.
361 bool is_current_user_ephemeral_regular_user_; 359 bool is_current_user_ephemeral_regular_user_;
362 360
363 // Cached flag indicating whether the ephemeral user policy is enabled. 361 // Cached flag indicating whether the ephemeral user policy is enabled.
364 // Defaults to |false| if the value has not been read from trusted device 362 // Defaults to |false| if the value has not been read from trusted device
365 // policy yet. 363 // policy yet.
366 bool ephemeral_users_enabled_; 364 bool ephemeral_users_enabled_;
367 365
368 // Merge session state (cookie restore process state).
369 MergeSessionState merge_session_state_;
370
371 // Cached name of device owner. Defaults to empty string if the value has not 366 // Cached name of device owner. Defaults to empty string if the value has not
372 // been read from trusted device policy yet. 367 // been read from trusted device policy yet.
373 std::string owner_email_; 368 std::string owner_email_;
374 369
375 // Chrome oauth client id and secret - override values for kiosk mode. 370 // Chrome oauth client id and secret - override values for kiosk mode.
376 std::string chrome_client_id_; 371 std::string chrome_client_id_;
377 std::string chrome_client_secret_; 372 std::string chrome_client_secret_;
378 373
379 content::NotificationRegistrar registrar_; 374 content::NotificationRegistrar registrar_;
380 375
(...skipping 29 matching lines...) Expand all
410 405
411 // Time at which this object was created. 406 // Time at which this object was created.
412 base::TimeTicks manager_creation_time_; 407 base::TimeTicks manager_creation_time_;
413 408
414 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl); 409 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl);
415 }; 410 };
416 411
417 } // namespace chromeos 412 } // namespace chromeos
418 413
419 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ 414 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/user_manager.cc ('k') | chrome/browser/chromeos/login/user_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698