diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-17 03:09:42 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-17 03:09:42 +0000 |
commit | b5a1d11cc70ab12c69e579d132204863a780eb75 (patch) | |
tree | a9300148dd2434b645ad7fe1716cce2f9e42e064 /chrome/browser/autocomplete_history_manager.h | |
parent | cd124097edce07ef5e0a7f80105e81c7982b81a1 (diff) | |
download | chromium_src-b5a1d11cc70ab12c69e579d132204863a780eb75.zip chromium_src-b5a1d11cc70ab12c69e579d132204863a780eb75.tar.gz chromium_src-b5a1d11cc70ab12c69e579d132204863a780eb75.tar.bz2 |
Make TabContentsObserver handle registration automatically, as well as exposing getters for TC, routing_id, and sending messages.
Review URL: http://codereview.chromium.org/6537004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75226 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete_history_manager.h')
-rw-r--r-- | chrome/browser/autocomplete_history_manager.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/autocomplete_history_manager.h b/chrome/browser/autocomplete_history_manager.h index fd4387f..796e610 100644 --- a/chrome/browser/autocomplete_history_manager.h +++ b/chrome/browser/autocomplete_history_manager.h @@ -51,7 +51,9 @@ class AutocompleteHistoryManager : public TabContentsObserver, friend class AutoFillManagerTest; // For tests. - AutocompleteHistoryManager(Profile* profile, WebDataService* wds); + AutocompleteHistoryManager(TabContents* tab_contents, + Profile* profile, + WebDataService* wds); void SendSuggestions(const std::vector<string16>* suggestions); void CancelPendingQuery(); @@ -59,7 +61,6 @@ class AutocompleteHistoryManager : public TabContentsObserver, private: void OnRemoveAutocompleteEntry(const string16& name, const string16& value); - TabContents* tab_contents_; Profile* profile_; scoped_refptr<WebDataService> web_data_service_; |