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

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: 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 25 matching lines...) Expand all
72 const FilePath& partition_path, 76 const FilePath& partition_path,
73 bool in_memory) OVERRIDE; 77 bool in_memory) OVERRIDE;
74 virtual content::ResourceContext* GetResourceContext() OVERRIDE; 78 virtual content::ResourceContext* GetResourceContext() OVERRIDE;
75 virtual content::GeolocationPermissionContext* 79 virtual content::GeolocationPermissionContext*
76 GetGeolocationPermissionContext() OVERRIDE; 80 GetGeolocationPermissionContext() OVERRIDE;
77 virtual content::SpeechRecognitionPreferences* 81 virtual content::SpeechRecognitionPreferences*
78 GetSpeechRecognitionPreferences() OVERRIDE; 82 GetSpeechRecognitionPreferences() OVERRIDE;
79 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; 83 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE;
80 84
81 // Profile implementation: 85 // Profile implementation:
86 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE;
82 virtual std::string GetProfileName() OVERRIDE; 87 virtual std::string GetProfileName() OVERRIDE;
83 virtual bool IsOffTheRecord() const OVERRIDE; 88 virtual bool IsOffTheRecord() const OVERRIDE;
84 virtual Profile* GetOffTheRecordProfile() OVERRIDE; 89 virtual Profile* GetOffTheRecordProfile() OVERRIDE;
85 virtual void DestroyOffTheRecordProfile() OVERRIDE; 90 virtual void DestroyOffTheRecordProfile() OVERRIDE;
86 virtual bool HasOffTheRecordProfile() OVERRIDE; 91 virtual bool HasOffTheRecordProfile() OVERRIDE;
87 virtual Profile* GetOriginalProfile() OVERRIDE; 92 virtual Profile* GetOriginalProfile() OVERRIDE;
88 virtual history::TopSites* GetTopSites() OVERRIDE; 93 virtual history::TopSites* GetTopSites() OVERRIDE;
89 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; 94 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE;
90 virtual ExtensionService* GetExtensionService() OVERRIDE; 95 virtual ExtensionService* GetExtensionService() OVERRIDE;
91 virtual ExtensionSpecialStoragePolicy* 96 virtual ExtensionSpecialStoragePolicy*
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 FRIEND_TEST_ALL_PREFIXES(ProfileBrowserTest, ProfileReadmeCreated); 147 FRIEND_TEST_ALL_PREFIXES(ProfileBrowserTest, ProfileReadmeCreated);
143 FRIEND_TEST_ALL_PREFIXES(ProfileBrowserTest, 148 FRIEND_TEST_ALL_PREFIXES(ProfileBrowserTest,
144 ProfileDeletedBeforeReadmeCreated); 149 ProfileDeletedBeforeReadmeCreated);
145 150
146 // Delay, in milliseconds, before README file is created for a new profile. 151 // Delay, in milliseconds, before README file is created for a new profile.
147 // This is non-const for testing purposes. 152 // This is non-const for testing purposes.
148 static int create_readme_delay_ms; 153 static int create_readme_delay_ms;
149 154
150 ProfileImpl(const FilePath& path, 155 ProfileImpl(const FilePath& path,
151 Delegate* delegate, 156 Delegate* delegate,
152 CreateMode create_mode); 157 CreateMode create_mode,
158 base::SequencedTaskRunner* sequenced_task_runner);
153 159
154 // Does final initialization. Should be called after prefs were loaded. 160 // Does final initialization. Should be called after prefs were loaded.
155 void DoFinalInit(bool is_new_profile); 161 void DoFinalInit(bool is_new_profile);
156 162
157 void InitHostZoomMap(); 163 void InitHostZoomMap();
158 164
159 void OnInitializationCompleted(PrefServiceBase* pref_service, 165 void OnInitializationCompleted(PrefServiceBase* pref_service,
160 bool succeeded); 166 bool succeeded);
161 167
162 // Does final prefs initialization and calls Init(). 168 // Does final prefs initialization and calls Init().
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc} 274 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc}
269 275
270 Profile::Delegate* delegate_; 276 Profile::Delegate* delegate_;
271 277
272 chrome_browser_net::Predictor* predictor_; 278 chrome_browser_net::Predictor* predictor_;
273 279
274 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 280 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
275 }; 281 };
276 282
277 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 283 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698