| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SUPERVISED_USER_LEGACY_SUPERVISED_USER_REGISTRATION_UTILI
TY_H_ | 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_LEGACY_SUPERVISED_USER_REGISTRATION_UTILI
TY_H_ |
| 6 #define CHROME_BROWSER_SUPERVISED_USER_LEGACY_SUPERVISED_USER_REGISTRATION_UTILI
TY_H_ | 6 #define CHROME_BROWSER_SUPERVISED_USER_LEGACY_SUPERVISED_USER_REGISTRATION_UTILI
TY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" | 15 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" |
| 16 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service_obs
erver.h" | 16 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service_obs
erver.h" |
| 17 #include "chrome/browser/supervised_user/supervised_users.h" | 17 #include "chrome/browser/supervised_user/supervised_users.h" |
| 18 #include "components/keyed_service/core/keyed_service.h" | 18 #include "components/keyed_service/core/keyed_service.h" |
| 19 #include "components/prefs/pref_change_registrar.h" | 19 #include "components/prefs/pref_change_registrar.h" |
| 20 | 20 |
| 21 class GoogleServiceAuthError; | 21 class GoogleServiceAuthError; |
| 22 class PrefService; | 22 class PrefService; |
| 23 class Profile; | 23 class Profile; |
| 24 class SupervisedUserRefreshTokenFetcher; | 24 class SupervisedUserRefreshTokenFetcher; |
| 25 class SupervisedUserRegistrationUtilityTest; | 25 class SupervisedUserRegistrationUtilityTest; |
| 26 class SupervisedUserSharedSettingsService; | 26 class SupervisedUserSharedSettingsService; |
| 27 | 27 |
| 28 namespace browser_sync { | |
| 29 class DeviceInfo; | |
| 30 } | |
| 31 | |
| 32 // Structure to store registration information. | 28 // Structure to store registration information. |
| 33 struct SupervisedUserRegistrationInfo { | 29 struct SupervisedUserRegistrationInfo { |
| 34 SupervisedUserRegistrationInfo(const base::string16& name, int avatar_index); | 30 SupervisedUserRegistrationInfo(const base::string16& name, int avatar_index); |
| 35 ~SupervisedUserRegistrationInfo(); | 31 ~SupervisedUserRegistrationInfo(); |
| 36 int avatar_index; | 32 int avatar_index; |
| 37 base::string16 name; | 33 base::string16 name; |
| 38 std::string master_key; | 34 std::string master_key; |
| 39 std::string password_signature_key; | 35 std::string password_signature_key; |
| 40 std::string password_encryption_key; | 36 std::string password_encryption_key; |
| 41 base::DictionaryValue password_data; | 37 base::DictionaryValue password_data; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 class ScopedTestingSupervisedUserRegistrationUtility { | 96 class ScopedTestingSupervisedUserRegistrationUtility { |
| 101 public: | 97 public: |
| 102 // Delegates ownership of the |instance| to SupervisedUserRegistrationUtility. | 98 // Delegates ownership of the |instance| to SupervisedUserRegistrationUtility. |
| 103 ScopedTestingSupervisedUserRegistrationUtility( | 99 ScopedTestingSupervisedUserRegistrationUtility( |
| 104 SupervisedUserRegistrationUtility* instance); | 100 SupervisedUserRegistrationUtility* instance); |
| 105 | 101 |
| 106 ~ScopedTestingSupervisedUserRegistrationUtility(); | 102 ~ScopedTestingSupervisedUserRegistrationUtility(); |
| 107 }; | 103 }; |
| 108 | 104 |
| 109 #endif // CHROME_BROWSER_SUPERVISED_USER_LEGACY_SUPERVISED_USER_REGISTRATION_UT
ILITY_H_ | 105 #endif // CHROME_BROWSER_SUPERVISED_USER_LEGACY_SUPERVISED_USER_REGISTRATION_UT
ILITY_H_ |
| OLD | NEW |