| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 FRIEND_TEST_ALL_PREFIXES(ProfileBrowserTest, ProfileReadmeCreated); | 137 FRIEND_TEST_ALL_PREFIXES(ProfileBrowserTest, ProfileReadmeCreated); |
| 138 FRIEND_TEST_ALL_PREFIXES(ProfileBrowserTest, | 138 FRIEND_TEST_ALL_PREFIXES(ProfileBrowserTest, |
| 139 ProfileDeletedBeforeReadmeCreated); | 139 ProfileDeletedBeforeReadmeCreated); |
| 140 | 140 |
| 141 // Delay, in milliseconds, before README file is created for a new profile. | 141 // Delay, in milliseconds, before README file is created for a new profile. |
| 142 // This is non-const for testing purposes. | 142 // This is non-const for testing purposes. |
| 143 static int create_readme_delay_ms; | 143 static int create_readme_delay_ms; |
| 144 | 144 |
| 145 ProfileImpl(const FilePath& path, | 145 ProfileImpl(const FilePath& path, |
| 146 Delegate* delegate, | 146 Delegate* delegate, |
| 147 CreateMode create_mode); | 147 CreateMode create_mode, |
| 148 scoped_refptr<base::SequencedTaskRunner> sequenced_task_runner); |
| 148 | 149 |
| 149 // Does final initialization. Should be called after prefs were loaded. | 150 // Does final initialization. Should be called after prefs were loaded. |
| 150 void DoFinalInit(bool is_new_profile); | 151 void DoFinalInit(bool is_new_profile); |
| 151 | 152 |
| 152 void InitHostZoomMap(); | 153 void InitHostZoomMap(); |
| 153 | 154 |
| 154 // Does final prefs initialization and calls Init(). | 155 // Does final prefs initialization and calls Init(). |
| 155 void OnPrefsLoaded(bool success); | 156 void OnPrefsLoaded(bool success); |
| 156 | 157 |
| 157 FilePath GetPrefFilePath(); | 158 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} | 263 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc} |
| 263 | 264 |
| 264 Profile::Delegate* delegate_; | 265 Profile::Delegate* delegate_; |
| 265 | 266 |
| 266 chrome_browser_net::Predictor* predictor_; | 267 chrome_browser_net::Predictor* predictor_; |
| 267 | 268 |
| 268 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 269 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
| 269 }; | 270 }; |
| 270 | 271 |
| 271 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 272 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| OLD | NEW |