| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // always succeeds. | 105 // always succeeds. |
| 106 EXPLICIT_ACCESS, | 106 EXPLICIT_ACCESS, |
| 107 | 107 |
| 108 // The caller plans to call a method that will permanently change some data | 108 // The caller plans to call a method that will permanently change some data |
| 109 // in the profile, as part of Chrome's implicit data logging. Use this flag | 109 // in the profile, as part of Chrome's implicit data logging. Use this flag |
| 110 // when you are about to perform an operation which is incompatible with the | 110 // when you are about to perform an operation which is incompatible with the |
| 111 // incognito mode. | 111 // incognito mode. |
| 112 IMPLICIT_ACCESS | 112 IMPLICIT_ACCESS |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 enum CreateStatus { |
| 116 // Profile services were not created. |
| 117 CREATE_STATUS_FAIL, |
| 118 // Profile created but before initializing extensions and promo resources. |
| 119 CREATE_STATUS_CREATED, |
| 120 // Profile is created, extensions and promo resources are initialized. |
| 121 CREATE_STATUS_INITIALIZED, |
| 122 }; |
| 123 |
| 115 class Delegate { | 124 class Delegate { |
| 116 public: | 125 public: |
| 117 // Called when creation of the profile is finished. | 126 // Called when creation of the profile is finished. |
| 118 virtual void OnProfileCreated(Profile* profile, bool success) = 0; | 127 virtual void OnProfileCreated(Profile* profile, bool success) = 0; |
| 119 }; | 128 }; |
| 120 | 129 |
| 121 // Whitelist access to deprecated API in order to prevent new regressions. | 130 // Whitelist access to deprecated API in order to prevent new regressions. |
| 122 class Deprecated { | 131 class Deprecated { |
| 123 private: | 132 private: |
| 124 friend bool IsGoogleGAIACookieInstalled(); | 133 friend bool IsGoogleGAIACookieInstalled(); |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 struct hash<Profile*> { | 580 struct hash<Profile*> { |
| 572 std::size_t operator()(Profile* const& p) const { | 581 std::size_t operator()(Profile* const& p) const { |
| 573 return reinterpret_cast<std::size_t>(p); | 582 return reinterpret_cast<std::size_t>(p); |
| 574 } | 583 } |
| 575 }; | 584 }; |
| 576 | 585 |
| 577 } // namespace __gnu_cxx | 586 } // namespace __gnu_cxx |
| 578 #endif | 587 #endif |
| 579 | 588 |
| 580 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 589 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |