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

Side by Side Diff: chrome/browser/ui/search/search_ipc_router.h

Issue 1543203002: Remove a variety of no-longer-used query params. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_
6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_ 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 virtual bool ShouldProcessDeleteMostVisitedItem() = 0; 102 virtual bool ShouldProcessDeleteMostVisitedItem() = 0;
103 virtual bool ShouldProcessUndoMostVisitedDeletion() = 0; 103 virtual bool ShouldProcessUndoMostVisitedDeletion() = 0;
104 virtual bool ShouldProcessUndoAllMostVisitedDeletions() = 0; 104 virtual bool ShouldProcessUndoAllMostVisitedDeletions() = 0;
105 virtual bool ShouldProcessLogEvent() = 0; 105 virtual bool ShouldProcessLogEvent() = 0;
106 virtual bool ShouldProcessPasteIntoOmnibox(bool is_active_tab) = 0; 106 virtual bool ShouldProcessPasteIntoOmnibox(bool is_active_tab) = 0;
107 virtual bool ShouldProcessChromeIdentityCheck() = 0; 107 virtual bool ShouldProcessChromeIdentityCheck() = 0;
108 virtual bool ShouldProcessHistorySyncCheck() = 0; 108 virtual bool ShouldProcessHistorySyncCheck() = 0;
109 virtual bool ShouldSendSetPromoInformation() = 0; 109 virtual bool ShouldSendSetPromoInformation() = 0;
110 virtual bool ShouldSendSetDisplayInstantResults() = 0; 110 virtual bool ShouldSendSetDisplayInstantResults() = 0;
111 virtual bool ShouldSendSetSuggestionToPrefetch() = 0; 111 virtual bool ShouldSendSetSuggestionToPrefetch() = 0;
112 virtual bool ShouldSendSetOmniboxStartMargin() = 0;
113 virtual bool ShouldSendSetInputInProgress(bool is_active_tab) = 0; 112 virtual bool ShouldSendSetInputInProgress(bool is_active_tab) = 0;
114 virtual bool ShouldSendOmniboxFocusChanged() = 0; 113 virtual bool ShouldSendOmniboxFocusChanged() = 0;
115 virtual bool ShouldSendMostVisitedItems() = 0; 114 virtual bool ShouldSendMostVisitedItems() = 0;
116 virtual bool ShouldSendThemeBackgroundInfo() = 0; 115 virtual bool ShouldSendThemeBackgroundInfo() = 0;
117 virtual bool ShouldSubmitQuery() = 0; 116 virtual bool ShouldSubmitQuery() = 0;
118 }; 117 };
119 118
120 SearchIPCRouter(content::WebContents* web_contents, Delegate* delegate, 119 SearchIPCRouter(content::WebContents* web_contents, Delegate* delegate,
121 scoped_ptr<Policy> policy); 120 scoped_ptr<Policy> policy);
122 ~SearchIPCRouter() override; 121 ~SearchIPCRouter() override;
(...skipping 15 matching lines...) Expand all
138 137
139 // Tells the renderer information it needs to display promos. 138 // Tells the renderer information it needs to display promos.
140 void SetPromoInformation(bool is_app_launcher_enabled); 139 void SetPromoInformation(bool is_app_launcher_enabled);
141 140
142 // Tells the renderer whether to display the Instant results. 141 // Tells the renderer whether to display the Instant results.
143 void SetDisplayInstantResults(); 142 void SetDisplayInstantResults();
144 143
145 // Tells the page the suggestion to be prefetched if any. 144 // Tells the page the suggestion to be prefetched if any.
146 void SetSuggestionToPrefetch(const InstantSuggestion& suggestion); 145 void SetSuggestionToPrefetch(const InstantSuggestion& suggestion);
147 146
148 // Tells the page the left margin of the omnibox. This is used by the page to
149 // align text or assets properly with the omnibox.
150 void SetOmniboxStartMargin(int start_margin);
151
152 // Tells the page that user input started or stopped. 147 // Tells the page that user input started or stopped.
153 void SetInputInProgress(bool input_in_progress); 148 void SetInputInProgress(bool input_in_progress);
154 149
155 // Tells the page that the omnibox focus has changed. 150 // Tells the page that the omnibox focus has changed.
156 void OmniboxFocusChanged(OmniboxFocusState state, 151 void OmniboxFocusChanged(OmniboxFocusState state,
157 OmniboxFocusChangeReason reason); 152 OmniboxFocusChangeReason reason);
158 153
159 // Tells the renderer about the most visited items. 154 // Tells the renderer about the most visited items.
160 void SendMostVisitedItems(const std::vector<InstantMostVisitedItem>& items); 155 void SendMostVisitedItems(const std::vector<InstantMostVisitedItem>& items);
161 156
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 // SearchIPCRouter to ensure that delayed IPC replies are ignored. 228 // SearchIPCRouter to ensure that delayed IPC replies are ignored.
234 int commit_counter_; 229 int commit_counter_;
235 230
236 // Set to true, when the tab corresponding to |this| instance is active. 231 // Set to true, when the tab corresponding to |this| instance is active.
237 bool is_active_tab_; 232 bool is_active_tab_;
238 233
239 DISALLOW_COPY_AND_ASSIGN(SearchIPCRouter); 234 DISALLOW_COPY_AND_ASSIGN(SearchIPCRouter);
240 }; 235 };
241 236
242 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_ 237 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698