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

Side by Side Diff: chrome/common/render_messages.h

Issue 609493002: Propagate the search request params from the browser to the Instant search base page to fix the embe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Multiply-included file, no traditional include guard. 5 // Multiply-included file, no traditional include guard.
6 #include <stdint.h> 6 #include <stdint.h>
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 IPC_STRUCT_TRAITS_END() 118 IPC_STRUCT_TRAITS_END()
119 119
120 IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource) 120 IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource)
121 IPC_STRUCT_TRAITS_MEMBER(primary_pattern) 121 IPC_STRUCT_TRAITS_MEMBER(primary_pattern)
122 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern) 122 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern)
123 IPC_STRUCT_TRAITS_MEMBER(setting) 123 IPC_STRUCT_TRAITS_MEMBER(setting)
124 IPC_STRUCT_TRAITS_MEMBER(source) 124 IPC_STRUCT_TRAITS_MEMBER(source)
125 IPC_STRUCT_TRAITS_MEMBER(incognito) 125 IPC_STRUCT_TRAITS_MEMBER(incognito)
126 IPC_STRUCT_TRAITS_END() 126 IPC_STRUCT_TRAITS_END()
127 127
128 IPC_STRUCT_TRAITS_BEGIN(EmbeddedSearchRequestParams)
129 IPC_STRUCT_TRAITS_MEMBER(search_query)
130 IPC_STRUCT_TRAITS_MEMBER(original_query)
131 IPC_STRUCT_TRAITS_MEMBER(rlz_parameter_value)
132 IPC_STRUCT_TRAITS_MEMBER(input_encoding)
133 IPC_STRUCT_TRAITS_MEMBER(assisted_query_stats)
134 IPC_STRUCT_TRAITS_END()
135
128 IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion) 136 IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion)
129 IPC_STRUCT_TRAITS_MEMBER(text) 137 IPC_STRUCT_TRAITS_MEMBER(text)
130 IPC_STRUCT_TRAITS_MEMBER(metadata) 138 IPC_STRUCT_TRAITS_MEMBER(metadata)
131 IPC_STRUCT_TRAITS_END() 139 IPC_STRUCT_TRAITS_END()
132 140
133 IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem) 141 IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem)
134 IPC_STRUCT_TRAITS_MEMBER(url) 142 IPC_STRUCT_TRAITS_MEMBER(url)
135 IPC_STRUCT_TRAITS_MEMBER(title) 143 IPC_STRUCT_TRAITS_MEMBER(title)
136 IPC_STRUCT_TRAITS_END() 144 IPC_STRUCT_TRAITS_END()
137 145
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 268
261 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation, 269 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation,
262 bool /* is_app_launcher_enabled */) 270 bool /* is_app_launcher_enabled */)
263 271
264 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress, 272 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress,
265 bool /* input_in_progress */) 273 bool /* input_in_progress */)
266 274
267 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch, 275 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch,
268 InstantSuggestion /* suggestion */) 276 InstantSuggestion /* suggestion */)
269 277
270 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSubmit, 278 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxSubmit,
271 base::string16 /* value */) 279 base::string16 /* value */,
280 EmbeddedSearchRequestParams /* params */)
272 281
273 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged, 282 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged,
274 ThemeBackgroundInfo /* value */) 283 ThemeBackgroundInfo /* value */)
275 284
276 IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult, 285 IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult,
277 base::string16 /* identity */, 286 base::string16 /* identity */,
278 bool /* identity_match */) 287 bool /* identity_match */)
279 288
280 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch) 289 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch)
281 290
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 // process so that they can be assigned to an Instant renderer. 655 // process so that they can be assigned to an Instant renderer.
647 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, 656 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs,
648 std::vector<GURL> /* search_urls */, 657 std::vector<GURL> /* search_urls */,
649 GURL /* new_tab_page_url */) 658 GURL /* new_tab_page_url */)
650 659
651 #if defined(ENABLE_PLUGINS) 660 #if defined(ENABLE_PLUGINS)
652 // Sent by the renderer to check if crash reporting is enabled. 661 // Sent by the renderer to check if crash reporting is enabled.
653 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, 662 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled,
654 bool /* enabled */) 663 bool /* enabled */)
655 #endif 664 #endif
OLDNEW
« no previous file with comments | « chrome/common/instant_types_unittest.cc ('k') | chrome/renderer/resources/extensions/searchbox_api.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698