| 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_IMPL_H_ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| 8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 class VisitedLinkEventListener; | 27 class VisitedLinkEventListener; |
| 28 | 28 |
| 29 #if defined(OS_CHROMEOS) | 29 #if defined(OS_CHROMEOS) |
| 30 namespace chromeos { | 30 namespace chromeos { |
| 31 class EnterpriseExtensionObserver; | 31 class EnterpriseExtensionObserver; |
| 32 class LocaleChangeGuard; | 32 class LocaleChangeGuard; |
| 33 class Preferences; | 33 class Preferences; |
| 34 } | 34 } |
| 35 #endif | 35 #endif |
| 36 | 36 |
| 37 namespace base { |
| 38 class SequencedTaskRunner; |
| 39 } |
| 40 |
| 37 namespace content { | 41 namespace content { |
| 38 class SpeechRecognitionPreferences; | 42 class SpeechRecognitionPreferences; |
| 39 } | 43 } |
| 40 | 44 |
| 41 namespace extensions { | 45 namespace extensions { |
| 42 class ExtensionSystem; | 46 class ExtensionSystem; |
| 43 } | 47 } |
| 44 | 48 |
| 45 // The default profile implementation. | 49 // The default profile implementation. |
| 46 class ProfileImpl : public Profile, | 50 class ProfileImpl : public Profile, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 FRIEND_TEST_ALL_PREFIXES(ProfileBrowserTest, ProfileReadmeCreated); | 141 FRIEND_TEST_ALL_PREFIXES(ProfileBrowserTest, ProfileReadmeCreated); |
| 138 FRIEND_TEST_ALL_PREFIXES(ProfileBrowserTest, | 142 FRIEND_TEST_ALL_PREFIXES(ProfileBrowserTest, |
| 139 ProfileDeletedBeforeReadmeCreated); | 143 ProfileDeletedBeforeReadmeCreated); |
| 140 | 144 |
| 141 // Delay, in milliseconds, before README file is created for a new profile. | 145 // Delay, in milliseconds, before README file is created for a new profile. |
| 142 // This is non-const for testing purposes. | 146 // This is non-const for testing purposes. |
| 143 static int create_readme_delay_ms; | 147 static int create_readme_delay_ms; |
| 144 | 148 |
| 145 ProfileImpl(const FilePath& path, | 149 ProfileImpl(const FilePath& path, |
| 146 Delegate* delegate, | 150 Delegate* delegate, |
| 147 CreateMode create_mode); | 151 CreateMode create_mode, |
| 152 base::SequencedTaskRunner* sequenced_task_runner); |
| 148 | 153 |
| 149 // Does final initialization. Should be called after prefs were loaded. | 154 // Does final initialization. Should be called after prefs were loaded. |
| 150 void DoFinalInit(bool is_new_profile); | 155 void DoFinalInit(bool is_new_profile); |
| 151 | 156 |
| 152 void InitHostZoomMap(); | 157 void InitHostZoomMap(); |
| 153 | 158 |
| 154 // Does final prefs initialization and calls Init(). | 159 // Does final prefs initialization and calls Init(). |
| 155 void OnPrefsLoaded(bool success); | 160 void OnPrefsLoaded(bool success); |
| 156 | 161 |
| 157 FilePath GetPrefFilePath(); | 162 FilePath GetPrefFilePath(); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc} | 267 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc} |
| 263 | 268 |
| 264 Profile::Delegate* delegate_; | 269 Profile::Delegate* delegate_; |
| 265 | 270 |
| 266 chrome_browser_net::Predictor* predictor_; | 271 chrome_browser_net::Predictor* predictor_; |
| 267 | 272 |
| 268 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 273 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
| 269 }; | 274 }; |
| 270 | 275 |
| 271 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 276 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| OLD | NEW |