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

Side by Side Diff: chrome/browser/managed_mode/managed_user_registration_utility.h

Issue 23653007: Avatar syncing for supervised users (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: strings 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_MANAGED_MODE_MANAGED_USER_REGISTRATION_UTILITY_H_ 5 #ifndef CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_REGISTRATION_UTILITY_H_
6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_REGISTRATION_UTILITY_H_ 6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_REGISTRATION_UTILITY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 13 matching lines...) Expand all
24 class ManagedUserRefreshTokenFetcher; 24 class ManagedUserRefreshTokenFetcher;
25 class ManagedUserRegistrationUtilityTest; 25 class ManagedUserRegistrationUtilityTest;
26 class PrefService; 26 class PrefService;
27 27
28 namespace browser_sync { 28 namespace browser_sync {
29 class DeviceInfo; 29 class DeviceInfo;
30 } 30 }
31 31
32 // Structure to store registration information. 32 // Structure to store registration information.
33 struct ManagedUserRegistrationInfo { 33 struct ManagedUserRegistrationInfo {
34 explicit ManagedUserRegistrationInfo(const string16& name); 34 explicit ManagedUserRegistrationInfo(const string16& name, int avatar_index);
Bernhard Bauer 2013/09/04 12:28:33 If you have more than one constructor argument, "e
ibra 2013/09/04 16:19:45 Done.
35 int avatar_index;
35 string16 name; 36 string16 name;
36 std::string master_key; 37 std::string master_key;
37 }; 38 };
38 39
39 // Holds the state necessary for registering a new managed user with the 40 // Holds the state necessary for registering a new managed user with the
40 // management server and associating it with its custodian. Each instance 41 // management server and associating it with its custodian. Each instance
41 // of this class handles registering a single managed user and should not 42 // of this class handles registering a single managed user and should not
42 // be used afterwards. 43 // be used afterwards.
43 class ManagedUserRegistrationUtility { 44 class ManagedUserRegistrationUtility {
44 public: 45 public:
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 class ScopedTestingManagedUserRegistrationUtility { 93 class ScopedTestingManagedUserRegistrationUtility {
93 public: 94 public:
94 // Delegates ownership of the |instance| to ManagedUserRegistrationUtility. 95 // Delegates ownership of the |instance| to ManagedUserRegistrationUtility.
95 ScopedTestingManagedUserRegistrationUtility( 96 ScopedTestingManagedUserRegistrationUtility(
96 ManagedUserRegistrationUtility* instance); 97 ManagedUserRegistrationUtility* instance);
97 98
98 ~ScopedTestingManagedUserRegistrationUtility(); 99 ~ScopedTestingManagedUserRegistrationUtility();
99 }; 100 };
100 101
101 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_REGISTRATION_UTILITY_H_ 102 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_REGISTRATION_UTILITY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698