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

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

Issue 11499012: Add policy for limiting the session length (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload flaked. Created 8 years 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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 13 matching lines...) Expand all
24 #include "content/public/browser/notification_observer.h" 24 #include "content/public/browser/notification_observer.h"
25 #include "content/public/browser/notification_registrar.h" 25 #include "content/public/browser/notification_registrar.h"
26 26
27 class FilePath; 27 class FilePath;
28 class PrefService; 28 class PrefService;
29 class ProfileSyncService; 29 class ProfileSyncService;
30 30
31 namespace chromeos { 31 namespace chromeos {
32 32
33 class RemoveUserDelegate; 33 class RemoveUserDelegate;
34 class SessionLengthLimiter;
34 35
35 // Implementation of the UserManager. 36 // Implementation of the UserManager.
36 class UserManagerImpl 37 class UserManagerImpl
37 : public UserManager, 38 : public UserManager,
38 public ProfileSyncServiceObserver, 39 public ProfileSyncServiceObserver,
39 public content::NotificationObserver, 40 public content::NotificationObserver,
40 public policy::DeviceLocalAccountPolicyService::Observer { 41 public policy::DeviceLocalAccountPolicyService::Observer {
41 public: 42 public:
42 virtual ~UserManagerImpl(); 43 virtual ~UserManagerImpl();
43 44
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 virtual bool IsCurrentUserNew() const OVERRIDE; 78 virtual bool IsCurrentUserNew() const OVERRIDE;
78 virtual bool IsCurrentUserNonCryptohomeDataEphemeral() const OVERRIDE; 79 virtual bool IsCurrentUserNonCryptohomeDataEphemeral() const OVERRIDE;
79 virtual bool CanCurrentUserLock() const OVERRIDE; 80 virtual bool CanCurrentUserLock() const OVERRIDE;
80 virtual bool IsUserLoggedIn() const OVERRIDE; 81 virtual bool IsUserLoggedIn() const OVERRIDE;
81 virtual bool IsLoggedInAsRegularUser() const OVERRIDE; 82 virtual bool IsLoggedInAsRegularUser() const OVERRIDE;
82 virtual bool IsLoggedInAsDemoUser() const OVERRIDE; 83 virtual bool IsLoggedInAsDemoUser() const OVERRIDE;
83 virtual bool IsLoggedInAsPublicAccount() const OVERRIDE; 84 virtual bool IsLoggedInAsPublicAccount() const OVERRIDE;
84 virtual bool IsLoggedInAsGuest() const OVERRIDE; 85 virtual bool IsLoggedInAsGuest() const OVERRIDE;
85 virtual bool IsLoggedInAsStub() const OVERRIDE; 86 virtual bool IsLoggedInAsStub() const OVERRIDE;
86 virtual bool IsSessionStarted() const OVERRIDE; 87 virtual bool IsSessionStarted() const OVERRIDE;
88 virtual bool HasBrowserRestarted() const OVERRIDE;
87 virtual bool IsUserNonCryptohomeDataEphemeral( 89 virtual bool IsUserNonCryptohomeDataEphemeral(
88 const std::string& email) const OVERRIDE; 90 const std::string& email) const OVERRIDE;
89 virtual void AddObserver(UserManager::Observer* obs) OVERRIDE; 91 virtual void AddObserver(UserManager::Observer* obs) OVERRIDE;
90 virtual void RemoveObserver(UserManager::Observer* obs) OVERRIDE; 92 virtual void RemoveObserver(UserManager::Observer* obs) OVERRIDE;
91 virtual void NotifyLocalStateChanged() OVERRIDE; 93 virtual void NotifyLocalStateChanged() OVERRIDE;
92 94
93 // content::NotificationObserver implementation. 95 // content::NotificationObserver implementation.
94 virtual void Observe(int type, 96 virtual void Observe(int type,
95 const content::NotificationSource& source, 97 const content::NotificationSource& source,
96 const content::NotificationDetails& details) OVERRIDE; 98 const content::NotificationDetails& details) OVERRIDE;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 // Profile sync service which is observed to take actions after sync 218 // Profile sync service which is observed to take actions after sync
217 // errors appear. NOTE: there is no guarantee that it is the current sync 219 // errors appear. NOTE: there is no guarantee that it is the current sync
218 // service, so do NOT use it outside |OnStateChanged| method. 220 // service, so do NOT use it outside |OnStateChanged| method.
219 ProfileSyncService* observed_sync_service_; 221 ProfileSyncService* observed_sync_service_;
220 222
221 ObserverList<UserManager::Observer> observer_list_; 223 ObserverList<UserManager::Observer> observer_list_;
222 224
223 // User avatar manager. 225 // User avatar manager.
224 scoped_ptr<UserImageManagerImpl> user_image_manager_; 226 scoped_ptr<UserImageManagerImpl> user_image_manager_;
225 227
228 // Session length limiter.
229 scoped_ptr<SessionLengthLimiter> session_length_limiter_;
230
226 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl); 231 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl);
227 }; 232 };
228 233
229 } // namespace chromeos 234 } // namespace chromeos
230 235
231 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ 236 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/user_manager.h ('k') | chrome/browser/chromeos/login/user_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698