OLD | NEW |
---|---|
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_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/chromeos/login/user.h" | 10 #include "chrome/browser/chromeos/login/user.h" |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
342 const std::string& chrome_client_secret) = 0; | 342 const std::string& chrome_client_secret) = 0; |
343 | 343 |
344 virtual void AddObserver(Observer* obs) = 0; | 344 virtual void AddObserver(Observer* obs) = 0; |
345 virtual void RemoveObserver(Observer* obs) = 0; | 345 virtual void RemoveObserver(Observer* obs) = 0; |
346 | 346 |
347 virtual void AddSessionStateObserver(UserSessionStateObserver* obs) = 0; | 347 virtual void AddSessionStateObserver(UserSessionStateObserver* obs) = 0; |
348 virtual void RemoveSessionStateObserver(UserSessionStateObserver* obs) = 0; | 348 virtual void RemoveSessionStateObserver(UserSessionStateObserver* obs) = 0; |
349 | 349 |
350 virtual void NotifyLocalStateChanged() = 0; | 350 virtual void NotifyLocalStateChanged() = 0; |
351 | 351 |
352 // Returns true if locally managed users allowed. | |
353 virtual bool AreLocallyManagedUsersAllowed() const = 0; | |
Bernhard Bauer
2013/06/21 11:59:25
Nit: new line before private section.
dzhioev (left Google)
2013/06/21 13:42:29
Done.
| |
352 private: | 354 private: |
353 friend class ScopedUserManagerEnabler; | 355 friend class ScopedUserManagerEnabler; |
354 | 356 |
355 // Sets the singleton to the given |user_manager|, taking ownership. Returns | 357 // Sets the singleton to the given |user_manager|, taking ownership. Returns |
356 // the previous value of the singleton, passing ownership. | 358 // the previous value of the singleton, passing ownership. |
357 static UserManager* SetForTesting(UserManager* user_manager); | 359 static UserManager* SetForTesting(UserManager* user_manager); |
358 }; | 360 }; |
359 | 361 |
360 // Helper class for unit tests. Initializes the UserManager singleton to the | 362 // Helper class for unit tests. Initializes the UserManager singleton to the |
361 // given |user_manager| and tears it down again on destruction. If the singleton | 363 // given |user_manager| and tears it down again on destruction. If the singleton |
(...skipping 18 matching lines...) Expand all Loading... | |
380 ScopedTestUserManager(); | 382 ScopedTestUserManager(); |
381 ~ScopedTestUserManager(); | 383 ~ScopedTestUserManager(); |
382 | 384 |
383 private: | 385 private: |
384 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); | 386 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); |
385 }; | 387 }; |
386 | 388 |
387 } // namespace chromeos | 389 } // namespace chromeos |
388 | 390 |
389 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 391 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
OLD | NEW |