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

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

Issue 24940002: Send ChromeViewMsg_SearchBoxSetSuggestionToPrefetch IPC message from SearchIPCRouter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comment Created 7 years, 3 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 2d181f76a4748965e248fd012e1b003f9cbcbbb9..0850209da2055fab3516f9cf10aa539de26811d0 100644
--- a/chrome/browser/ui/search/search_tab_helper.h
+++ b/chrome/browser/ui/search/search_tab_helper.h
@@ -66,6 +66,9 @@ class SearchTabHelper : public content::NotificationObserver,
// not determined or if the page does not support instant returns false.
bool SupportsInstant() const;
+ // Sends the current SearchProvider suggestion to the Instant page if any.
+ void SetSuggestionToPrefetch(const InstantSuggestion& suggestion);
+
private:
friend class content::WebContentsUserData<SearchTabHelper>;
friend class InstantPageTest;
@@ -81,7 +84,9 @@ class SearchTabHelper : public content::NotificationObserver,
FRIEND_TEST_ALL_PREFIXES(SearchIPCRouterPolicyTest,
SendSetDisplayInstantResults);
FRIEND_TEST_ALL_PREFIXES(SearchIPCRouterPolicyTest,
- DoNotSetDisplayInstantResultsForIncognitoPage);
+ SendSetSuggestionToPrefetch);
+ FRIEND_TEST_ALL_PREFIXES(SearchIPCRouterPolicyTest,
+ DoNotSendSetMessagesForIncognitoPage);
FRIEND_TEST_ALL_PREFIXES(SearchIPCRouterPolicyTest, SendMostVisitedItems);
FRIEND_TEST_ALL_PREFIXES(SearchIPCRouterPolicyTest,
DoNotSendMostVisitedItems);
« no previous file with comments | « chrome/browser/ui/search/search_ipc_router_unittest.cc ('k') | chrome/browser/ui/search/search_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698