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

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

Issue 12952005: Delay bookmarks load while the profile is loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix testing_profile.h Created 7 years, 9 months 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
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 18 matching lines...) Expand all
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 { 37 namespace base {
38 class SequencedTaskRunner; 38 class SequencedTaskRunner;
39 class DeferredSequencedTaskRunner;
39 } 40 }
40 41
41 namespace content { 42 namespace content {
42 class SpeechRecognitionPreferences; 43 class SpeechRecognitionPreferences;
43 } 44 }
44 45
45 namespace extensions { 46 namespace extensions {
46 class ExtensionSystem; 47 class ExtensionSystem;
47 } 48 }
48 49
(...skipping 27 matching lines...) Expand all
76 bool in_memory) OVERRIDE; 77 bool in_memory) OVERRIDE;
77 virtual content::ResourceContext* GetResourceContext() OVERRIDE; 78 virtual content::ResourceContext* GetResourceContext() OVERRIDE;
78 virtual content::GeolocationPermissionContext* 79 virtual content::GeolocationPermissionContext*
79 GetGeolocationPermissionContext() OVERRIDE; 80 GetGeolocationPermissionContext() OVERRIDE;
80 virtual content::SpeechRecognitionPreferences* 81 virtual content::SpeechRecognitionPreferences*
81 GetSpeechRecognitionPreferences() OVERRIDE; 82 GetSpeechRecognitionPreferences() OVERRIDE;
82 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; 83 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE;
83 84
84 // Profile implementation: 85 // Profile implementation:
85 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; 86 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE;
87 virtual scoped_refptr<base::DeferredSequencedTaskRunner>
88 GetBookmarksTaskRunner() OVERRIDE;
86 virtual std::string GetProfileName() OVERRIDE; 89 virtual std::string GetProfileName() OVERRIDE;
87 virtual bool IsOffTheRecord() const OVERRIDE; 90 virtual bool IsOffTheRecord() const OVERRIDE;
88 virtual Profile* GetOffTheRecordProfile() OVERRIDE; 91 virtual Profile* GetOffTheRecordProfile() OVERRIDE;
89 virtual void DestroyOffTheRecordProfile() OVERRIDE; 92 virtual void DestroyOffTheRecordProfile() OVERRIDE;
90 virtual bool HasOffTheRecordProfile() OVERRIDE; 93 virtual bool HasOffTheRecordProfile() OVERRIDE;
91 virtual Profile* GetOriginalProfile() OVERRIDE; 94 virtual Profile* GetOriginalProfile() OVERRIDE;
92 virtual history::TopSites* GetTopSites() OVERRIDE; 95 virtual history::TopSites* GetTopSites() OVERRIDE;
93 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; 96 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE;
94 virtual ExtensionService* GetExtensionService() OVERRIDE; 97 virtual ExtensionService* GetExtensionService() OVERRIDE;
95 virtual ExtensionSpecialStoragePolicy* 98 virtual ExtensionSpecialStoragePolicy*
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 extension_special_storage_policy_; 227 extension_special_storage_policy_;
225 scoped_ptr<NetPrefObserver> net_pref_observer_; 228 scoped_ptr<NetPrefObserver> net_pref_observer_;
226 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; 229 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_;
227 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 230 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
228 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; 231 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_;
229 232
230 // Exit type the last time the profile was opened. This is set only once from 233 // Exit type the last time the profile was opened. This is set only once from
231 // prefs. 234 // prefs.
232 ExitType last_session_exit_type_; 235 ExitType last_session_exit_type_;
233 236
237 scoped_refptr<base::DeferredSequencedTaskRunner> bookmarks_task_runner_;
238
234 #if defined(ENABLE_SESSION_SERVICE) 239 #if defined(ENABLE_SESSION_SERVICE)
235 base::OneShotTimer<ProfileImpl> create_session_service_timer_; 240 base::OneShotTimer<ProfileImpl> create_session_service_timer_;
236 #endif 241 #endif
237 242
238 scoped_ptr<Profile> off_the_record_profile_; 243 scoped_ptr<Profile> off_the_record_profile_;
239 244
240 // See GetStartTime for details. 245 // See GetStartTime for details.
241 base::Time start_time_; 246 base::Time start_time_;
242 247
243 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. 248 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails.
(...skipping 24 matching lines...) Expand all
268 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc} 273 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc}
269 274
270 Profile::Delegate* delegate_; 275 Profile::Delegate* delegate_;
271 276
272 chrome_browser_net::Predictor* predictor_; 277 chrome_browser_net::Predictor* predictor_;
273 278
274 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 279 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
275 }; 280 };
276 281
277 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 282 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698