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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 EXPLICIT_ACCESS, | 88 EXPLICIT_ACCESS, |
89 | 89 |
90 // The caller plans to call a method that will permanently change some data | 90 // The caller plans to call a method that will permanently change some data |
91 // in the profile, as part of Chrome's implicit data logging. Use this flag | 91 // in the profile, as part of Chrome's implicit data logging. Use this flag |
92 // when you are about to perform an operation which is incompatible with the | 92 // when you are about to perform an operation which is incompatible with the |
93 // incognito mode. | 93 // incognito mode. |
94 IMPLICIT_ACCESS | 94 IMPLICIT_ACCESS |
95 }; | 95 }; |
96 | 96 |
97 enum CreateStatus { | 97 enum CreateStatus { |
98 // Profile services were not created. | 98 // Profile services were not created due to a local error (e.g., disk full). |
99 CREATE_STATUS_FAIL, | 99 CREATE_STATUS_LOCAL_FAIL, |
| 100 // Profile services were not created due to a remote error (e.g., network |
| 101 // down during limited-user registration). |
| 102 CREATE_STATUS_REMOTE_FAIL, |
100 // Profile created but before initializing extensions and promo resources. | 103 // Profile created but before initializing extensions and promo resources. |
101 CREATE_STATUS_CREATED, | 104 CREATE_STATUS_CREATED, |
102 // Profile is created, extensions and promo resources are initialized. | 105 // Profile is created, extensions and promo resources are initialized. |
103 CREATE_STATUS_INITIALIZED, | 106 CREATE_STATUS_INITIALIZED, |
| 107 MAX_CREATE_STATUS // For histogram display. |
104 }; | 108 }; |
105 | 109 |
106 enum CreateMode { | 110 enum CreateMode { |
107 CREATE_MODE_SYNCHRONOUS, | 111 CREATE_MODE_SYNCHRONOUS, |
108 CREATE_MODE_ASYNCHRONOUS | 112 CREATE_MODE_ASYNCHRONOUS |
109 }; | 113 }; |
110 | 114 |
111 enum ExitType { | 115 enum ExitType { |
112 // A normal shutdown. The user clicked exit/closed last window of the | 116 // A normal shutdown. The user clicked exit/closed last window of the |
113 // profile. | 117 // profile. |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 struct hash<Profile*> { | 397 struct hash<Profile*> { |
394 std::size_t operator()(Profile* const& p) const { | 398 std::size_t operator()(Profile* const& p) const { |
395 return reinterpret_cast<std::size_t>(p); | 399 return reinterpret_cast<std::size_t>(p); |
396 } | 400 } |
397 }; | 401 }; |
398 | 402 |
399 } // namespace BASE_HASH_NAMESPACE | 403 } // namespace BASE_HASH_NAMESPACE |
400 #endif | 404 #endif |
401 | 405 |
402 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 406 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |