| 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 // Returns true when the browser has crashed and restarted during the current | 248 // Returns true when the browser has crashed and restarted during the current |
| 249 // user's session. | 249 // user's session. |
| 250 virtual bool HasBrowserRestarted() const = 0; | 250 virtual bool HasBrowserRestarted() const = 0; |
| 251 | 251 |
| 252 // Returns true if data stored or cached for the user with the given email | 252 // Returns true if data stored or cached for the user with the given email |
| 253 // address outside that user's cryptohome (wallpaper, avatar, OAuth token | 253 // address outside that user's cryptohome (wallpaper, avatar, OAuth token |
| 254 // status, display name, display email) is to be treated as ephemeral. | 254 // status, display name, display email) is to be treated as ephemeral. |
| 255 virtual bool IsUserNonCryptohomeDataEphemeral( | 255 virtual bool IsUserNonCryptohomeDataEphemeral( |
| 256 const std::string& email) const = 0; | 256 const std::string& email) const = 0; |
| 257 | 257 |
| 258 // Returns manager user ID for given |managed_user_id|. |
| 259 virtual std::string GetManagerForManagedUser( |
| 260 const std::string& managed_user_id) const = 0; |
| 261 |
| 258 // Create a record about starting locally managed user creation transaction. | 262 // Create a record about starting locally managed user creation transaction. |
| 259 virtual void StartLocallyManagedUserCreationTransaction( | 263 virtual void StartLocallyManagedUserCreationTransaction( |
| 260 const string16& display_name) = 0; | 264 const string16& display_name) = 0; |
| 261 | 265 |
| 262 // Add user id to locally managed user creation transaction record. | 266 // Add user id to locally managed user creation transaction record. |
| 263 virtual void SetLocallyManagedUserCreationTransactionUserId( | 267 virtual void SetLocallyManagedUserCreationTransactionUserId( |
| 264 const std::string& email) = 0; | 268 const std::string& email) = 0; |
| 265 | 269 |
| 266 // Remove locally managed user creation transaction record. | 270 // Remove locally managed user creation transaction record. |
| 267 virtual void CommitLocallyManagedUserCreationTransaction() = 0; | 271 virtual void CommitLocallyManagedUserCreationTransaction() = 0; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 ScopedTestUserManager(); | 337 ScopedTestUserManager(); |
| 334 ~ScopedTestUserManager(); | 338 ~ScopedTestUserManager(); |
| 335 | 339 |
| 336 private: | 340 private: |
| 337 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); | 341 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); |
| 338 }; | 342 }; |
| 339 | 343 |
| 340 } // namespace chromeos | 344 } // namespace chromeos |
| 341 | 345 |
| 342 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 346 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
| OLD | NEW |