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

Unified Diff: chrome/renderer/searchbox/searchbox.h

Issue 12319108: Prevent querying of restricted query values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove query_state_ from SearchBox. 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/renderer/searchbox/searchbox.h
diff --git a/chrome/renderer/searchbox/searchbox.h b/chrome/renderer/searchbox/searchbox.h
index 445d4dcc3700d7577adaf56454a2722c9ca4f9ea..173706b6a6e529d49124e3e9ecd3c93b7538a524 100644
--- a/chrome/renderer/searchbox/searchbox.h
+++ b/chrome/renderer/searchbox/searchbox.h
@@ -28,8 +28,15 @@ class SearchBox : public content::RenderViewObserver,
virtual ~SearchBox();
// Sends ChromeViewHostMsg_SetSuggestions to the browser.
+ // If |suggestions| is non-empty and the first element in |suggestions| is of
+ // type INSTANT_COMPLETE_REPLACE then this method will also update the current
+ // query text.
void SetSuggestions(const std::vector<InstantSuggestion>& suggestions);
+ // Clears the current query text, used to ensure that restricted query strings
+ // are not retained.
+ void ClearQuery();
+
// Sends ChromeViewHostMsg_ShowInstantOverlay to the browser.
void ShowInstantOverlay(InstantShownReason reason,
int height,

Powered by Google App Engine
This is Rietveld 408576698