diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-29 17:53:21 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-29 17:53:21 +0000 |
commit | 90085af068d552aa301e2ea7408cb6847cdc591e (patch) | |
tree | e7ed2538a78794a32a5bcce47ab7505e7b4bf4c1 /chrome/browser/profile.h | |
parent | ebdc76943e8909d261b6d776ed973a16c0086341 (diff) | |
download | chromium_src-90085af068d552aa301e2ea7408cb6847cdc591e.zip chromium_src-90085af068d552aa301e2ea7408cb6847cdc591e.tar.gz chromium_src-90085af068d552aa301e2ea7408cb6847cdc591e.tar.bz2 |
Factor search vs. navigate classification into its own file to make it more broadly usable. Patch by Thiago Farina (see http://codereview.chromium.org/328031 ), r=me.
BUG=21317
TEST=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30473 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.h')
-rw-r--r-- | chrome/browser/profile.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/profile.h b/chrome/browser/profile.h index 116310d..78d2c9a 100644 --- a/chrome/browser/profile.h +++ b/chrome/browser/profile.h @@ -43,6 +43,7 @@ class NavigationController; class PasswordStore; class PrefService; class ProfileSyncService; +class SearchVersusNavigateClassifier; class SessionService; class SpellChecker; class SSLConfigServiceManager; @@ -201,6 +202,12 @@ class Profile { // doesn't already exist. virtual HistoryService* GetHistoryServiceWithoutCreating() = 0; + // Retrieves a pointer to the SearchVersusNavigateClassifier associated with + // this profile. The SearchVersusNavigateClassifier is lazily created the + // first time that this method is called. + virtual SearchVersusNavigateClassifier* + GetSearchVersusNavigateClassifier() = 0; + // Returns the WebDataService for this profile. This is owned by // the Profile. Callers that outlive the life of this profile need to be // sure they refcount the returned value. @@ -405,6 +412,7 @@ class ProfileImpl : public Profile, virtual FaviconService* GetFaviconService(ServiceAccessType sat); virtual HistoryService* GetHistoryService(ServiceAccessType sat); virtual HistoryService* GetHistoryServiceWithoutCreating(); + virtual SearchVersusNavigateClassifier* GetSearchVersusNavigateClassifier(); virtual WebDataService* GetWebDataService(ServiceAccessType sat); virtual WebDataService* GetWebDataServiceWithoutCreating(); virtual PasswordStore* GetPasswordStore(ServiceAccessType sat); @@ -515,6 +523,7 @@ class ProfileImpl : public Profile, scoped_refptr<DownloadManager> download_manager_; scoped_refptr<HistoryService> history_service_; scoped_refptr<FaviconService> favicon_service_; + scoped_ptr<SearchVersusNavigateClassifier> search_versus_navigate_classifier_; scoped_refptr<WebDataService> web_data_service_; scoped_refptr<PasswordStore> password_store_; scoped_refptr<SessionService> session_service_; |