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

Unified Diff: chrome/browser/ui/search/search_tab_helper.h

Issue 12250033: Consolidate search terms extraction and Instant process determination. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed build/tests Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/search/search_tab_helper.h
diff --git a/chrome/browser/ui/search/search_tab_helper.h b/chrome/browser/ui/search/search_tab_helper.h
index 114cc6698e09c19ad52872364d69254142691f6e..ceb27ab4df0e585d7e000f1395bb8c39640e927b 100644
--- a/chrome/browser/ui/search/search_tab_helper.h
+++ b/chrome/browser/ui/search/search_tab_helper.h
@@ -6,13 +6,12 @@
#define CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_
#include "base/basictypes.h"
+#include "base/compiler_specific.h"
#include "chrome/browser/ui/search/search_model.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/web_contents_user_data.h"
-class OmniboxEditModel;
-
namespace content {
class WebContents;
}
@@ -41,17 +40,18 @@ class SearchTabHelper : public content::NotificationObserver,
// the notification system and shouldn't call this method.
void NavigationEntryUpdated();
+ private:
+ friend class content::WebContentsUserData<SearchTabHelper>;
+
+ explicit SearchTabHelper(content::WebContents* web_contents);
+
// Overridden from content::NotificationObserver:
virtual void Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
- private:
- explicit SearchTabHelper(content::WebContents* web_contents);
- friend class content::WebContentsUserData<SearchTabHelper>;
-
- // Sets the mode of the model based on |url|.
- void UpdateModelBasedOnURL(const GURL& url);
+ // Sets the mode of the model based on the current URL of web_contents().
+ void UpdateModel();
// Returns the web contents associated with the tab that owns this helper.
const content::WebContents* web_contents() const;

Powered by Google App Engine
This is Rietveld 408576698