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
3 // found in the LICENSE file.
5 // Multiply-included file, no traditional include guard.
10 #include "base/files/file_path.h"
11 #include "base/strings/string16.h"
12 #include "base/time/time.h"
13 #include "chrome/common/common_param_traits.h"
14 #include "chrome/common/instant_types.h"
15 #include "chrome/common/ntp_logging_events.h"
16 #include "chrome/common/search_provider.h"
17 #include "chrome/common/web_application_info.h"
18 #include "components/omnibox/common/omnibox_focus_state.h"
19 #include "content/public/common/common_param_traits.h"
20 #include "content/public/common/top_controls_state.h"
21 #include "ipc/ipc_channel_handle.h"
22 #include "ipc/ipc_message_macros.h"
23 #include "ipc/ipc_platform_file.h"
24 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerPromptReply.h"
25 #include "third_party/WebKit/public/web/WebCache.h"
26 #include "third_party/WebKit/public/web/WebConsoleMessage.h"
28 // Singly-included section for enums and custom IPC traits.
29 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_
30 #define CHROME_COMMON_RENDER_MESSAGES_H_
32 enum class ChromeViewHostMsg_GetPluginInfo_Status
{
41 kPlayImportantContent
,
48 struct ParamTraits
<ContentSettingsPattern
> {
49 typedef ContentSettingsPattern param_type
;
50 static void Write(Message
* m
, const param_type
& p
);
51 static bool Read(const Message
* m
, base::PickleIterator
* iter
, param_type
* r
);
52 static void Log(const param_type
& p
, std::string
* l
);
57 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
59 #define IPC_MESSAGE_START ChromeMsgStart
61 IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status
,
62 ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized
)
63 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusChangeReason
,
64 OMNIBOX_FOCUS_CHANGE_REASON_LAST
)
65 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusState
, OMNIBOX_FOCUS_STATE_LAST
)
66 IPC_ENUM_TRAITS_MAX_VALUE(search_provider::OSDDType
,
67 search_provider::OSDD_TYPE_LAST
)
68 IPC_ENUM_TRAITS_MIN_MAX_VALUE(search_provider::InstallState
,
69 search_provider::DENIED
,
70 search_provider::INSTALLED_STATE_LAST
)
71 IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageAlignment
,
72 THEME_BKGRND_IMAGE_ALIGN_LAST
)
73 IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageTiling
, THEME_BKGRND_IMAGE_LAST
)
74 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebConsoleMessage::Level
,
75 blink::WebConsoleMessage::LevelLast
)
76 IPC_ENUM_TRAITS_MAX_VALUE(content::TopControlsState
,
77 content::TOP_CONTROLS_STATE_LAST
)
79 // Output parameters for ChromeViewHostMsg_GetPluginInfo message.
80 IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output
)
81 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status
, status
)
82 IPC_STRUCT_MEMBER(content::WebPluginInfo
, plugin
)
83 IPC_STRUCT_MEMBER(std::string
, actual_mime_type
)
84 IPC_STRUCT_MEMBER(std::string
, group_identifier
)
85 IPC_STRUCT_MEMBER(base::string16
, group_name
)
88 IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts
)
89 IPC_STRUCT_TRAITS_MEMBER(scheme
)
90 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard
)
91 IPC_STRUCT_TRAITS_MEMBER(host
)
92 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard
)
93 IPC_STRUCT_TRAITS_MEMBER(port
)
94 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard
)
95 IPC_STRUCT_TRAITS_MEMBER(path
)
96 IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard
)
97 IPC_STRUCT_TRAITS_END()
99 IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource
)
100 IPC_STRUCT_TRAITS_MEMBER(primary_pattern
)
101 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern
)
102 IPC_STRUCT_TRAITS_MEMBER(setting
)
103 IPC_STRUCT_TRAITS_MEMBER(source
)
104 IPC_STRUCT_TRAITS_MEMBER(incognito
)
105 IPC_STRUCT_TRAITS_END()
107 IPC_STRUCT_TRAITS_BEGIN(EmbeddedSearchRequestParams
)
108 IPC_STRUCT_TRAITS_MEMBER(search_query
)
109 IPC_STRUCT_TRAITS_MEMBER(original_query
)
110 IPC_STRUCT_TRAITS_MEMBER(rlz_parameter_value
)
111 IPC_STRUCT_TRAITS_MEMBER(input_encoding
)
112 IPC_STRUCT_TRAITS_MEMBER(assisted_query_stats
)
113 IPC_STRUCT_TRAITS_END()
115 IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion
)
116 IPC_STRUCT_TRAITS_MEMBER(text
)
117 IPC_STRUCT_TRAITS_MEMBER(metadata
)
118 IPC_STRUCT_TRAITS_END()
120 IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem
)
121 IPC_STRUCT_TRAITS_MEMBER(url
)
122 IPC_STRUCT_TRAITS_MEMBER(title
)
123 IPC_STRUCT_TRAITS_END()
125 IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules
)
126 IPC_STRUCT_TRAITS_MEMBER(image_rules
)
127 IPC_STRUCT_TRAITS_MEMBER(script_rules
)
128 IPC_STRUCT_TRAITS_END()
130 IPC_STRUCT_TRAITS_BEGIN(RGBAColor
)
131 IPC_STRUCT_TRAITS_MEMBER(r
)
132 IPC_STRUCT_TRAITS_MEMBER(g
)
133 IPC_STRUCT_TRAITS_MEMBER(b
)
134 IPC_STRUCT_TRAITS_MEMBER(a
)
135 IPC_STRUCT_TRAITS_END()
137 IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo
)
138 IPC_STRUCT_TRAITS_MEMBER(using_default_theme
)
139 IPC_STRUCT_TRAITS_MEMBER(background_color
)
140 IPC_STRUCT_TRAITS_MEMBER(text_color
)
141 IPC_STRUCT_TRAITS_MEMBER(link_color
)
142 IPC_STRUCT_TRAITS_MEMBER(text_color_light
)
143 IPC_STRUCT_TRAITS_MEMBER(header_color
)
144 IPC_STRUCT_TRAITS_MEMBER(section_border_color
)
145 IPC_STRUCT_TRAITS_MEMBER(theme_id
)
146 IPC_STRUCT_TRAITS_MEMBER(image_horizontal_alignment
)
147 IPC_STRUCT_TRAITS_MEMBER(image_vertical_alignment
)
148 IPC_STRUCT_TRAITS_MEMBER(image_tiling
)
149 IPC_STRUCT_TRAITS_MEMBER(image_height
)
150 IPC_STRUCT_TRAITS_MEMBER(has_attribution
)
151 IPC_STRUCT_TRAITS_MEMBER(logo_alternate
)
152 IPC_STRUCT_TRAITS_END()
154 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::UsageStats
)
155 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity
)
156 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity
)
157 IPC_STRUCT_TRAITS_MEMBER(capacity
)
158 IPC_STRUCT_TRAITS_MEMBER(liveSize
)
159 IPC_STRUCT_TRAITS_MEMBER(deadSize
)
160 IPC_STRUCT_TRAITS_END()
162 IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType
,
165 IPC_ENUM_TRAITS_MAX_VALUE(WebApplicationInfo::MobileCapable
,
166 WebApplicationInfo::MOBILE_CAPABLE_APPLE
)
168 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo
)
169 IPC_STRUCT_TRAITS_MEMBER(url
)
170 IPC_STRUCT_TRAITS_MEMBER(width
)
171 IPC_STRUCT_TRAITS_MEMBER(height
)
172 IPC_STRUCT_TRAITS_MEMBER(data
)
173 IPC_STRUCT_TRAITS_END()
175 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo
)
176 IPC_STRUCT_TRAITS_MEMBER(title
)
177 IPC_STRUCT_TRAITS_MEMBER(description
)
178 IPC_STRUCT_TRAITS_MEMBER(app_url
)
179 IPC_STRUCT_TRAITS_MEMBER(icons
)
180 IPC_STRUCT_TRAITS_MEMBER(mobile_capable
)
181 IPC_STRUCT_TRAITS_END()
183 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebAppBannerPromptReply
,
184 blink::WebAppBannerPromptReply::Cancel
)
186 //-----------------------------------------------------------------------------
187 // RenderView messages
188 // These are messages sent from the browser to the renderer process.
190 #if !defined(OS_ANDROID) && !defined(OS_IOS)
191 // For WebUI testing, this message requests JavaScript to be executed at a time
192 // which is late enough to not be thrown out, and early enough to be before
193 // onload events are fired.
194 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript
,
195 base::string16
/* javascript */)
198 // Set the content setting rules stored by the renderer.
199 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules
,
200 RendererContentSettingRules
/* rules */)
202 // Tells the renderer to create a FieldTrial, and by using a 100% probability
203 // for the FieldTrial, forces the FieldTrial to have assigned group name.
204 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup
,
205 std::string
/* field trial name */,
206 std::string
/* group name that was assigned. */)
208 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetPageSequenceNumber
,
209 int /* page_seq_no */)
211 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant
)
213 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetDisplayInstantResults
,
214 bool /* display_instant_results */)
216 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFocusChanged
,
217 OmniboxFocusState
/* new_focus_state */,
218 OmniboxFocusChangeReason
/* reason */)
220 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMarginChange
, int /* start */)
222 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged
,
223 std::vector
<InstantMostVisitedItem
> /* items */)
225 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation
,
226 bool /* is_app_launcher_enabled */)
228 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress
,
229 bool /* input_in_progress */)
231 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch
,
232 InstantSuggestion
/* suggestion */)
234 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxSubmit
,
235 base::string16
/* value */,
236 EmbeddedSearchRequestParams
/* params */)
238 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged
,
239 ThemeBackgroundInfo
/* value */)
241 IPC_MESSAGE_ROUTED1(ChromeViewMsg_HistorySyncCheckResult
,
242 bool /* sync_history */)
244 IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult
,
245 base::string16
/* identity */,
246 bool /* identity_match */)
248 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch
)
250 // Sent on process startup to indicate whether this process is running in
252 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess
,
253 bool /* is_incognito_processs */)
255 // Sent when the profile changes the kSafeBrowsingEnabled preference.
256 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection
,
257 bool /* enable_phishing_detection */)
259 // Reloads the image selected by the most recently opened context menu
260 // (if there indeed is an image at that location).
261 IPC_MESSAGE_ROUTED0(ChromeViewMsg_RequestReloadImageForContextNode
)
263 // Asks the renderer for a thumbnail of the image selected by the most
264 // recently opened context menu, if there is one. If the image's area
265 // is greater than thumbnail_min_area it will be downscaled to
266 // be within thumbnail_max_size. The possibly downsampled image will be
267 // returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message.
268 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode
,
269 int /* thumbnail_min_area_pixels */,
270 gfx::Size
/* thumbnail_max_size_pixels */)
272 // Notifies the renderer whether hiding/showing the top controls is enabled,
273 // what the current state should be, and whether or not to animate to the
275 IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState
,
276 content::TopControlsState
/* constraints */,
277 content::TopControlsState
/* current */,
281 // Updates the window features of the render view.
282 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures
,
283 blink::WebWindowFeatures
/* window_features */)
285 // Responds to the request for a thumbnail.
286 // Thumbnail data will be empty is a thumbnail could not be produced.
287 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK
,
288 std::string
/* JPEG-encoded thumbnail data */,
289 gfx::Size
/* original size of the image */)
291 // Requests application info for the page. The renderer responds back with
292 // ChromeViewHostMsg_DidGetWebApplicationInfo.
293 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetWebApplicationInfo
)
295 #if defined(OS_ANDROID)
296 // Asks the renderer to return information about the given meta tag.
297 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RetrieveMetaTagContent
,
298 GURL
/* expected_url */,
299 std::string
/* tag_name */ )
300 #endif // defined(OS_ANDROID)
302 // chrome.principals messages ------------------------------------------------
304 // Message sent from the renderer to the browser to get the list of browser
305 // managed accounts for the given origin.
306 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts
,
307 GURL
/* current URL */,
308 std::vector
<std::string
> /* managed accounts */)
310 // Message sent from the renderer to the browser to show the browser account
312 IPC_MESSAGE_CONTROL0(ChromeViewHostMsg_ShowBrowserAccountManagementUI
)
314 // JavaScript related messages -----------------------------------------------
316 // Provides the renderer with the results of the browser's investigation into
317 // why a recent main frame load failed (currently, just DNS probe result).
318 // NetErrorHelper will receive this mesage and replace or update the error
319 // page with more specific troubleshooting suggestions.
320 IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo
,
321 int /* DNS probe status */)
323 // Provides the information needed by the renderer process to contact a
324 // navigation correction service. Handled by the NetErrorHelper.
325 IPC_MESSAGE_ROUTED5(ChromeViewMsg_SetNavigationCorrectionInfo
,
326 GURL
/* Navigation correction service base URL */,
327 std::string
/* language */,
328 std::string
/* origin_country */,
329 std::string
/* API key to use */,
330 GURL
/* Google Search URL to use */)
332 //-----------------------------------------------------------------------------
334 // These are messages sent from the renderer to the browser process.
336 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats
,
337 blink::WebCache::UsageStats
/* stats */)
339 // Sent by the renderer process to check whether access to FileSystem is
340 // granted by content settings.
341 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_RequestFileSystemAccessSync
,
342 int /* render_frame_id */,
343 GURL
/* origin_url */,
344 GURL
/* top origin url */,
347 // Return information about a plugin for the given URL and MIME type.
348 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows
349 // about specific reasons why a plugin can't be used, for example because it's
351 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo
,
352 int /* render_frame_id */,
354 GURL
/* top origin url */,
355 std::string
/* mime_type */,
356 ChromeViewHostMsg_GetPluginInfo_Output
/* output */)
358 #if defined(ENABLE_PEPPER_CDMS)
359 // Returns whether any internal plugin supporting |mime_type| is registered and
360 // enabled. Does not determine whether the plugin can actually be instantiated
361 // (e.g. whether it has all its dependencies).
362 // When the returned *|is_available| is true, |additional_param_names| and
363 // |additional_param_values| contain the name-value pairs, if any, specified
364 // for the *first* non-disabled plugin found that is registered for |mime_type|.
365 IPC_SYNC_MESSAGE_CONTROL1_3(
366 ChromeViewHostMsg_IsInternalPluginAvailableForMimeType
,
367 std::string
/* mime_type */,
368 bool /* is_available */,
369 std::vector
<base::string16
> /* additional_param_names */,
370 std::vector
<base::string16
> /* additional_param_values */)
373 #if defined(ENABLE_PLUGIN_INSTALLATION)
374 // Notifies the browser that a missing plugin placeholder has been removed, so
375 // the corresponding PluginPlaceholderHost can be deleted.
376 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost
,
377 int /* placeholder_id */)
379 // Notifies a missing plugin placeholder that a plugin with name |plugin_name|
381 IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin
,
382 base::string16
/* plugin_name */)
384 // Notifies a missing plugin placeholder that no plugin has been found.
385 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin
)
387 // Notifies a missing plugin placeholder that we have started downloading
389 IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin
)
391 // Notifies a missing plugin placeholder that we have finished downloading
393 IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin
)
395 // Notifies a missing plugin placeholder that there was an error downloading
397 IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin
,
398 std::string
/* message */)
399 #endif // defined(ENABLE_PLUGIN_INSTALLATION)
401 // Notifies a missing plugin placeholder that the user cancelled downloading
403 IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin
)
405 // Tells the browser to open chrome://plugins in a new tab. We use a separate
406 // message because renderer processes aren't allowed to directly navigate to
408 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins
)
410 // Tells the browser that there was an error loading a plugin.
411 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin
,
412 base::FilePath
/* plugin_path */)
414 // Tells the browser that we blocked a plugin because NPAPI is not supported.
415 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported
,
416 std::string
/* identifer */)
418 // Asks the renderer whether an app banner should be shown. It will reply with
419 // ChromeViewHostMsg_AppBannerPromptReply.
420 IPC_MESSAGE_ROUTED2(ChromeViewMsg_AppBannerPromptRequest
,
421 int /* request_id */,
422 std::string
/* platform */)
424 // Tells the renderer that a banner has been accepted.
425 IPC_MESSAGE_ROUTED2(ChromeViewMsg_AppBannerAccepted
,
426 int32_t /* request_id */,
427 std::string
/* platform */)
429 // Tells the renderer that a banner has been dismissed.
430 IPC_MESSAGE_ROUTED1(ChromeViewMsg_AppBannerDismissed
,
431 int32_t /* request_id */)
433 // Asks the renderer to log a debug message to console regarding an
435 IPC_MESSAGE_ROUTED1(ChromeViewMsg_AppBannerDebugMessageRequest
,
436 std::string
/* message */)
438 // Notification that the page has an OpenSearch description document
439 // associated with it.
440 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD
,
443 search_provider::OSDDType
)
445 // Find out if the given url's security origin is installed as a search
447 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState
,
449 GURL
/* inquiry url */,
450 search_provider::InstallState
/* install */)
452 // Notifies when a plugin couldn't be loaded because it's outdated.
453 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin
,
454 int /* placeholder ID */,
455 std::string
/* plugin group identifier */)
457 // Notifies when a plugin couldn't be loaded because it requires
458 // user authorization.
459 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin
,
460 base::string16
/* name */,
461 std::string
/* plugin group identifier */)
463 // Message sent from the renderer to the browser to notify it of a
464 // window.print() call which should cancel the prerender. The message is sent
465 // only when the renderer is prerendering.
466 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting
)
468 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_DidGetWebApplicationInfo
,
471 #if defined(OS_ANDROID)
472 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveMetaTagContent
,
474 std::string
/* tag_name */,
475 std::string
/* tag_content */,
476 GURL
/* expected_url */)
477 #endif // defined(OS_ANDROID)
479 // Logs events from InstantExtended New Tab Pages.
480 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogEvent
,
481 int /* page_seq_no */,
482 NTPLoggingEventType
/* event */,
483 base::TimeDelta
/* time */)
485 // Logs an impression on one of the Most Visited tile on the InstantExtended
487 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedImpression
,
488 int /* page_seq_no */,
490 base::string16
/* provider */)
492 // Logs a navigation on one of the Most Visited tile on the InstantExtended
494 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedNavigation
,
495 int /* page_seq_no */,
497 base::string16
/* provider */)
499 // The Instant page asks whether the user syncs its history.
500 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_HistorySyncCheck
,
501 int /* page_seq_no */)
503 // The Instant page asks for Chrome identity check against |identity|.
504 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ChromeIdentityCheck
,
505 int /* page_seq_no */,
506 base::string16
/* identity */)
508 // Tells InstantExtended to set the omnibox focus state.
509 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FocusOmnibox
,
510 int /* page_seq_no */,
511 OmniboxFocusState
/* state */)
513 // Tells InstantExtended to paste text into the omnibox. If text is empty,
514 // the clipboard contents will be pasted. This causes the omnibox dropdown to
516 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PasteAndOpenDropdown
,
517 int /* page_seq_no */,
518 base::string16
/* text to be pasted */)
520 // Tells InstantExtended whether the embedded search API is supported.
521 // See http://dev.chromium.org/embeddedsearch
522 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined
,
523 int /* page_seq_no */,
526 // Tells InstantExtended to delete a most visited item.
527 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem
,
528 int /* page_seq_no */,
531 // Tells InstantExtended to navigate the active tab to a possibly privileged
533 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_SearchBoxNavigate
,
534 int /* page_seq_no */,
535 GURL
/* destination */,
536 WindowOpenDisposition
/* disposition */,
537 bool /*is_most_visited_item_url*/)
539 // Tells InstantExtended to undo all most visited item deletions.
540 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions
,
541 int /* page_seq_no */)
543 // Tells InstantExtended to undo one most visited item deletion.
544 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion
,
545 int /* page_seq_no */,
548 // Tells InstantExtended whether the page supports voice search.
549 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetVoiceSearchSupported
,
550 int /* page_seq_no */,
551 bool /* supported */)
553 // Tells the renderer a list of URLs which should be bounced back to the browser
554 // process so that they can be assigned to an Instant renderer.
555 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs
,
556 std::vector
<GURL
> /* search_urls */,
557 GURL
/* new_tab_page_url */)
559 #if defined(ENABLE_PLUGINS)
560 // Sent by the renderer to check if crash reporting is enabled.
561 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled
,
565 // Tells the browser process whether the web page wants the banner to be shown.
566 // This is a reply from ChromeViewMsg_AppBannerPromptRequest.
567 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_AppBannerPromptReply
,
568 int /* request_id */,
569 blink::WebAppBannerPromptReply
/* reply */)
571 // Tells the browser to restart the app banner display pipeline.
572 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RequestShowAppBanner
,
573 int32_t /* request_id */)
575 // Sent by the renderer to indicate that a fields trial has been activated.
576 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_FieldTrialActivated
,
577 std::string
/* name */)
579 // Record a sample string to a Rappor metric.
580 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor
,
581 std::string
/* metric */,
582 std::string
/* sample */)
584 // Record a domain and registry of a url to a Rappor metric.
585 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL
,
586 std::string
/* metric */,
587 GURL
/* sample url */)