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

Side by Side Diff: chrome/browser/profile.h

Issue 502005: Preload the visited link db on the file thread. (Closed)
Patch Set: comments Created 11 years 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
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_PROFILE_H_ 7 #ifndef CHROME_BROWSER_PROFILE_H_
8 #define CHROME_BROWSER_PROFILE_H_ 8 #define CHROME_BROWSER_PROFILE_H_
9 9
10 #include <set> 10 #include <set>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 class SSLHostState; 57 class SSLHostState;
58 class TransportSecurityPersister; 58 class TransportSecurityPersister;
59 class SQLitePersistentCookieStore; 59 class SQLitePersistentCookieStore;
60 class TabRestoreService; 60 class TabRestoreService;
61 class TemplateURLFetcher; 61 class TemplateURLFetcher;
62 class TemplateURLModel; 62 class TemplateURLModel;
63 class ThemeProvider; 63 class ThemeProvider;
64 class ThumbnailStore; 64 class ThumbnailStore;
65 class URLRequestContextGetter; 65 class URLRequestContextGetter;
66 class UserScriptMaster; 66 class UserScriptMaster;
67 class VisitedLinkCreator;
67 class VisitedLinkMaster; 68 class VisitedLinkMaster;
68 class VisitedLinkEventListener;
69 class WebDataService; 69 class WebDataService;
70 class WebKitContext; 70 class WebKitContext;
71 class WebResourceService; 71 class WebResourceService;
72 72
73 typedef intptr_t ProfileId; 73 typedef intptr_t ProfileId;
74 74
75 class Profile { 75 class Profile {
76 public: 76 public:
77 // Profile services are accessed with the following parameter. This parameter 77 // Profile services are accessed with the following parameter. This parameter
78 // defines what the caller plans to do with the service. 78 // defines what the caller plans to do with the service.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 virtual Profile* GetOriginalProfile() = 0; 141 virtual Profile* GetOriginalProfile() = 0;
142 142
143 // Returns a pointer to the DatabaseTracker instance for this profile. 143 // Returns a pointer to the DatabaseTracker instance for this profile.
144 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; 144 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0;
145 145
146 // Retrieves a pointer to the VisitedLinkMaster associated with this 146 // Retrieves a pointer to the VisitedLinkMaster associated with this
147 // profile. The VisitedLinkMaster is lazily created the first time 147 // profile. The VisitedLinkMaster is lazily created the first time
148 // that this method is called. 148 // that this method is called.
149 virtual VisitedLinkMaster* GetVisitedLinkMaster() = 0; 149 virtual VisitedLinkMaster* GetVisitedLinkMaster() = 0;
150 150
151 // Loads the visited link master on the file thread. It's safe to call
152 // GetVisitedLinkMaster without calling this in advance.
153 virtual void PreloadVisitedLinkMaster() = 0;
154
151 // Retrieves a pointer to the ExtensionsService associated with this 155 // Retrieves a pointer to the ExtensionsService associated with this
152 // profile. The ExtensionsService is created at startup. 156 // profile. The ExtensionsService is created at startup.
153 virtual ExtensionsService* GetExtensionsService() = 0; 157 virtual ExtensionsService* GetExtensionsService() = 0;
154 158
155 // Retrieves a pointer to the UserScriptMaster associated with this 159 // Retrieves a pointer to the UserScriptMaster associated with this
156 // profile. The UserScriptMaster is lazily created the first time 160 // profile. The UserScriptMaster is lazily created the first time
157 // that this method is called. 161 // that this method is called.
158 virtual UserScriptMaster* GetUserScriptMaster() = 0; 162 virtual UserScriptMaster* GetUserScriptMaster() = 0;
159 163
160 // Retrieves a pointer to the ExtensionDevToolsManager associated with this 164 // Retrieves a pointer to the ExtensionDevToolsManager associated with this
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 403
400 // Profile implementation. 404 // Profile implementation.
401 virtual ProfileId GetRuntimeId(); 405 virtual ProfileId GetRuntimeId();
402 virtual FilePath GetPath(); 406 virtual FilePath GetPath();
403 virtual bool IsOffTheRecord(); 407 virtual bool IsOffTheRecord();
404 virtual Profile* GetOffTheRecordProfile(); 408 virtual Profile* GetOffTheRecordProfile();
405 virtual void DestroyOffTheRecordProfile(); 409 virtual void DestroyOffTheRecordProfile();
406 virtual Profile* GetOriginalProfile(); 410 virtual Profile* GetOriginalProfile();
407 virtual webkit_database::DatabaseTracker* GetDatabaseTracker(); 411 virtual webkit_database::DatabaseTracker* GetDatabaseTracker();
408 virtual VisitedLinkMaster* GetVisitedLinkMaster(); 412 virtual VisitedLinkMaster* GetVisitedLinkMaster();
413 virtual void PreloadVisitedLinkMaster();
409 virtual UserScriptMaster* GetUserScriptMaster(); 414 virtual UserScriptMaster* GetUserScriptMaster();
410 virtual SSLHostState* GetSSLHostState(); 415 virtual SSLHostState* GetSSLHostState();
411 virtual net::TransportSecurityState* GetTransportSecurityState(); 416 virtual net::TransportSecurityState* GetTransportSecurityState();
412 virtual ExtensionsService* GetExtensionsService(); 417 virtual ExtensionsService* GetExtensionsService();
413 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager(); 418 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager();
414 virtual ExtensionProcessManager* GetExtensionProcessManager(); 419 virtual ExtensionProcessManager* GetExtensionProcessManager();
415 virtual ExtensionMessageService* GetExtensionMessageService(); 420 virtual ExtensionMessageService* GetExtensionMessageService();
416 virtual FaviconService* GetFaviconService(ServiceAccessType sat); 421 virtual FaviconService* GetFaviconService(ServiceAccessType sat);
417 virtual HistoryService* GetHistoryService(ServiceAccessType sat); 422 virtual HistoryService* GetHistoryService(ServiceAccessType sat);
418 virtual HistoryService* GetHistoryServiceWithoutCreating(); 423 virtual HistoryService* GetHistoryServiceWithoutCreating();
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 } 489 }
485 490
486 void EnsureSessionServiceCreated() { 491 void EnsureSessionServiceCreated() {
487 GetSessionService(); 492 GetSessionService();
488 } 493 }
489 494
490 NotificationRegistrar registrar_; 495 NotificationRegistrar registrar_;
491 496
492 FilePath path_; 497 FilePath path_;
493 FilePath base_cache_path_; 498 FilePath base_cache_path_;
494 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_; 499 scoped_refptr<VisitedLinkCreator> visited_link_creator_;
495 scoped_ptr<VisitedLinkMaster> visited_link_master_;
496 scoped_refptr<ExtensionsService> extensions_service_; 500 scoped_refptr<ExtensionsService> extensions_service_;
497 scoped_refptr<UserScriptMaster> user_script_master_; 501 scoped_refptr<UserScriptMaster> user_script_master_;
498 scoped_refptr<ExtensionDevToolsManager> extension_devtools_manager_; 502 scoped_refptr<ExtensionDevToolsManager> extension_devtools_manager_;
499 scoped_ptr<ExtensionProcessManager> extension_process_manager_; 503 scoped_ptr<ExtensionProcessManager> extension_process_manager_;
500 scoped_refptr<ExtensionMessageService> extension_message_service_; 504 scoped_refptr<ExtensionMessageService> extension_message_service_;
501 scoped_ptr<SSLHostState> ssl_host_state_; 505 scoped_ptr<SSLHostState> ssl_host_state_;
502 scoped_refptr<net::TransportSecurityState> 506 scoped_refptr<net::TransportSecurityState>
503 transport_security_state_; 507 transport_security_state_;
504 scoped_refptr<TransportSecurityPersister> 508 scoped_refptr<TransportSecurityPersister>
505 transport_security_persister_; 509 transport_security_persister_;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; 572 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_;
569 573
570 #if defined(OS_CHROMEOS) 574 #if defined(OS_CHROMEOS)
571 chromeos::Preferences chromeos_preferences_; 575 chromeos::Preferences chromeos_preferences_;
572 #endif 576 #endif
573 577
574 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 578 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
575 }; 579 };
576 580
577 #endif // CHROME_BROWSER_PROFILE_H_ 581 #endif // CHROME_BROWSER_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698