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

Unified Diff: chrome/browser/ui/search/search_ipc_router.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
« no previous file with comments | « chrome/browser/ui/search/instant_ipc_sender.cc ('k') | chrome/browser/ui/search/search_ipc_router.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/search_ipc_router.h
diff --git a/chrome/browser/ui/search/search_ipc_router.h b/chrome/browser/ui/search/search_ipc_router.h
index b6f79be8eab24123de5f57fa6e6ad6168ad4527f..057dc08e0746b0ae68e1b08abc7b51a7771011bc 100644
--- a/chrome/browser/ui/search/search_ipc_router.h
+++ b/chrome/browser/ui/search/search_ipc_router.h
@@ -45,6 +45,7 @@ class SearchIPCRouter : public content::WebContentsObserver {
// to/from the page.
virtual bool ShouldProcessSetVoiceSearchSupport() = 0;
virtual bool ShouldSendSetDisplayInstantResults() = 0;
+ virtual bool ShouldSendSetSuggestionToPrefetch() = 0;
virtual bool ShouldSendMostVisitedItems() = 0;
virtual bool ShouldSendThemeBackgroundInfo() = 0;
};
@@ -67,6 +68,9 @@ class SearchIPCRouter : public content::WebContentsObserver {
// Tells the renderer about the current theme background.
void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info);
+ // Tells the page the suggestion to be prefetched if any.
+ void SetSuggestionToPrefetch(const InstantSuggestion& suggestion);
+
private:
friend class SearchIPCRouterTest;
FRIEND_TEST_ALL_PREFIXES(SearchTabHelperTest,
@@ -80,7 +84,9 @@ class SearchIPCRouter : public content::WebContentsObserver {
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/instant_ipc_sender.cc ('k') | chrome/browser/ui/search/search_ipc_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698