Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: chrome/browser/profiles/profile_impl.h

Issue 11027070: Moved JsonPrefStore to use SequencedWorkerPool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes for LoginUtils* test flakes Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
27 class SSLConfigServiceManager; 27 class SSLConfigServiceManager;
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 FRIEND_TEST_ALL_PREFIXES(ProfileBrowserTest, ProfileReadmeCreated); 144 FRIEND_TEST_ALL_PREFIXES(ProfileBrowserTest, ProfileReadmeCreated);
141 FRIEND_TEST_ALL_PREFIXES(ProfileBrowserTest, 145 FRIEND_TEST_ALL_PREFIXES(ProfileBrowserTest,
142 ProfileDeletedBeforeReadmeCreated); 146 ProfileDeletedBeforeReadmeCreated);
143 147
144 // Delay, in milliseconds, before README file is created for a new profile. 148 // Delay, in milliseconds, before README file is created for a new profile.
145 // This is non-const for testing purposes. 149 // This is non-const for testing purposes.
146 static int create_readme_delay_ms; 150 static int create_readme_delay_ms;
147 151
148 ProfileImpl(const FilePath& path, 152 ProfileImpl(const FilePath& path,
149 Delegate* delegate, 153 Delegate* delegate,
150 CreateMode create_mode); 154 CreateMode create_mode,
155 base::SequencedTaskRunner* sequenced_task_runner);
151 156
152 // Does final initialization. Should be called after prefs were loaded. 157 // Does final initialization. Should be called after prefs were loaded.
153 void DoFinalInit(bool is_new_profile); 158 void DoFinalInit(bool is_new_profile);
154 159
155 void InitHostZoomMap(); 160 void InitHostZoomMap();
156 161
157 void OnInitializationCompleted(PrefServiceBase* pref_service, 162 void OnInitializationCompleted(PrefServiceBase* pref_service,
158 bool succeeded); 163 bool succeeded);
159 164
160 // Does final prefs initialization and calls Init(). 165 // Does final prefs initialization and calls Init().
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc} 271 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc}
267 272
268 Profile::Delegate* delegate_; 273 Profile::Delegate* delegate_;
269 274
270 chrome_browser_net::Predictor* predictor_; 275 chrome_browser_net::Predictor* predictor_;
271 276
272 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 277 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
273 }; 278 };
274 279
275 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 280 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698