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

Unified Diff: chrome/browser/ui/toolbar/toolbar_model.h

Issue 11876045: [Search] Store and recall search terms using NavigationEntry to improve search term extraction (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed comments Created 7 years, 11 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/toolbar/toolbar_model.h
diff --git a/chrome/browser/ui/toolbar/toolbar_model.h b/chrome/browser/ui/toolbar/toolbar_model.h
index e25e66ed73de3639a2abef574f9dfebe7707b883..b436136f45c1307331f212574942bcf98a99a4b6 100644
--- a/chrome/browser/ui/toolbar/toolbar_model.h
+++ b/chrome/browser/ui/toolbar/toolbar_model.h
@@ -51,6 +51,10 @@ class ToolbarModel {
// with search terms.
virtual bool WouldReplaceSearchURLWithSearchTerms() const = 0;
+ // Returns search terms if they were set on the NavigationEntry, or empty
+ // string otherwise.
+ virtual string16 GetSearchTermsFromNavigationEntry() const = 0;
+
// Returns the security level that the toolbar should display.
virtual SecurityLevel GetSecurityLevel() const = 0;

Powered by Google App Engine
This is Rietveld 408576698