From 4038e6e270171286189b2cd54fcb45a7e9c08222 Mon Sep 17 00:00:00 2001 From: "tony@chromium.org" Date: Thu, 17 Dec 2009 21:15:37 +0000 Subject: Preload the visited link db on the file thread if the file exists. Otherwise, just load like normal on the UI thread. BUG=24163 Review URL: http://codereview.chromium.org/502005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34874 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/profile.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'chrome/browser/profile.h') diff --git a/chrome/browser/profile.h b/chrome/browser/profile.h index 815dc22..e72dbd7 100644 --- a/chrome/browser/profile.h +++ b/chrome/browser/profile.h @@ -64,8 +64,8 @@ class ThemeProvider; class ThumbnailStore; class URLRequestContextGetter; class UserScriptMaster; +class VisitedLinkCreator; class VisitedLinkMaster; -class VisitedLinkEventListener; class WebDataService; class WebKitContext; class WebResourceService; @@ -148,6 +148,10 @@ class Profile { // that this method is called. virtual VisitedLinkMaster* GetVisitedLinkMaster() = 0; + // Loads the visited link master on the file thread. It's safe to call + // GetVisitedLinkMaster without calling this in advance. + virtual void PreloadVisitedLinkMaster() = 0; + // Retrieves a pointer to the ExtensionsService associated with this // profile. The ExtensionsService is created at startup. virtual ExtensionsService* GetExtensionsService() = 0; @@ -406,6 +410,7 @@ class ProfileImpl : public Profile, virtual Profile* GetOriginalProfile(); virtual webkit_database::DatabaseTracker* GetDatabaseTracker(); virtual VisitedLinkMaster* GetVisitedLinkMaster(); + virtual void PreloadVisitedLinkMaster(); virtual UserScriptMaster* GetUserScriptMaster(); virtual SSLHostState* GetSSLHostState(); virtual net::TransportSecurityState* GetTransportSecurityState(); @@ -491,8 +496,7 @@ class ProfileImpl : public Profile, FilePath path_; FilePath base_cache_path_; - scoped_ptr visited_link_event_listener_; - scoped_ptr visited_link_master_; + scoped_refptr visited_link_creator_; scoped_refptr extensions_service_; scoped_refptr user_script_master_; scoped_refptr extension_devtools_manager_; -- cgit v1.1