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 // This class gathers state related to a single user profile. | 5 // This class gathers state related to a single user profile. |
6 | 6 |
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ |
8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ | 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 enum CreateStatus { | 98 enum CreateStatus { |
99 // Profile services were not created due to a local error (e.g., disk full). | 99 // Profile services were not created due to a local error (e.g., disk full). |
100 CREATE_STATUS_LOCAL_FAIL, | 100 CREATE_STATUS_LOCAL_FAIL, |
101 // Profile services were not created due to a remote error (e.g., network | 101 // Profile services were not created due to a remote error (e.g., network |
102 // down during limited-user registration). | 102 // down during limited-user registration). |
103 CREATE_STATUS_REMOTE_FAIL, | 103 CREATE_STATUS_REMOTE_FAIL, |
104 // Profile created but before initializing extensions and promo resources. | 104 // Profile created but before initializing extensions and promo resources. |
105 CREATE_STATUS_CREATED, | 105 CREATE_STATUS_CREATED, |
106 // Profile is created, extensions and promo resources are initialized. | 106 // Profile is created, extensions and promo resources are initialized. |
107 CREATE_STATUS_INITIALIZED, | 107 CREATE_STATUS_INITIALIZED, |
108 // Profile creation (managed-user registration, generally) was canceled | 108 // Profile creation (supervised-user registration, generally) was canceled |
109 // by the user. | 109 // by the user. |
110 CREATE_STATUS_CANCELED, | 110 CREATE_STATUS_CANCELED, |
111 MAX_CREATE_STATUS // For histogram display. | 111 MAX_CREATE_STATUS // For histogram display. |
112 }; | 112 }; |
113 | 113 |
114 enum CreateMode { | 114 enum CreateMode { |
115 CREATE_MODE_SYNCHRONOUS, | 115 CREATE_MODE_SYNCHRONOUS, |
116 CREATE_MODE_ASYNCHRONOUS | 116 CREATE_MODE_ASYNCHRONOUS |
117 }; | 117 }; |
118 | 118 |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 struct hash<Profile*> { | 410 struct hash<Profile*> { |
411 std::size_t operator()(Profile* const& p) const { | 411 std::size_t operator()(Profile* const& p) const { |
412 return reinterpret_cast<std::size_t>(p); | 412 return reinterpret_cast<std::size_t>(p); |
413 } | 413 } |
414 }; | 414 }; |
415 | 415 |
416 } // namespace BASE_HASH_NAMESPACE | 416 } // namespace BASE_HASH_NAMESPACE |
417 #endif | 417 #endif |
418 | 418 |
419 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 419 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |