| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 bool success, | 146 bool success, |
| 147 bool is_new_profile) = 0; | 147 bool is_new_profile) = 0; |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 // Key used to bind profile to the widget with which it is associated. | 150 // Key used to bind profile to the widget with which it is associated. |
| 151 static const char kProfileKey[]; | 151 static const char kProfileKey[]; |
| 152 // Value representing no hosted domain in the kProfileHostedDomain preference. | 152 // Value representing no hosted domain in the kProfileHostedDomain preference. |
| 153 static const char kNoHostedDomainFound[]; | 153 static const char kNoHostedDomainFound[]; |
| 154 | 154 |
| 155 Profile(); | 155 Profile(); |
| 156 virtual ~Profile(); | 156 ~Profile() override; |
| 157 | 157 |
| 158 // Profile prefs are registered as soon as the prefs are loaded for the first | 158 // Profile prefs are registered as soon as the prefs are loaded for the first |
| 159 // time. | 159 // time. |
| 160 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 160 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 161 | 161 |
| 162 // Create a new profile given a path. If |create_mode| is | 162 // Create a new profile given a path. If |create_mode| is |
| 163 // CREATE_MODE_ASYNCHRONOUS then the profile is initialized asynchronously. | 163 // CREATE_MODE_ASYNCHRONOUS then the profile is initialized asynchronously. |
| 164 static Profile* CreateProfile(const base::FilePath& path, | 164 static Profile* CreateProfile(const base::FilePath& path, |
| 165 Delegate* delegate, | 165 Delegate* delegate, |
| 166 CreateMode create_mode); | 166 CreateMode create_mode); |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 | 410 |
| 411 DISALLOW_COPY_AND_ASSIGN(Profile); | 411 DISALLOW_COPY_AND_ASSIGN(Profile); |
| 412 }; | 412 }; |
| 413 | 413 |
| 414 // The comparator for profile pointers as key in a map. | 414 // The comparator for profile pointers as key in a map. |
| 415 struct ProfileCompare { | 415 struct ProfileCompare { |
| 416 bool operator()(Profile* a, Profile* b) const; | 416 bool operator()(Profile* a, Profile* b) const; |
| 417 }; | 417 }; |
| 418 | 418 |
| 419 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 419 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |