Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / common / render_messages.h
blobec6025cd94e5a5b5aad25daabff1224ddf0f2d68
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.
6 #include <stdint.h>
7 #include <string>
8 #include <vector>
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 {
33 kAllowed,
34 kBlocked,
35 kBlockedByPolicy,
36 kDisabled,
37 kNotFound,
38 kNPAPINotSupported,
39 kOutdatedBlocked,
40 kOutdatedDisallowed,
41 kPlayImportantContent,
42 kUnauthorized,
45 namespace IPC {
47 template <>
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);
55 } // namespace IPC
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)
86 IPC_STRUCT_END()
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_MEMBER(thumbnail)
124 IPC_STRUCT_TRAITS_MEMBER(favicon)
125 IPC_STRUCT_TRAITS_MEMBER(impression_url)
126 IPC_STRUCT_TRAITS_MEMBER(click_url)
127 IPC_STRUCT_TRAITS_END()
129 IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules)
130 IPC_STRUCT_TRAITS_MEMBER(image_rules)
131 IPC_STRUCT_TRAITS_MEMBER(script_rules)
132 IPC_STRUCT_TRAITS_END()
134 IPC_STRUCT_TRAITS_BEGIN(RGBAColor)
135 IPC_STRUCT_TRAITS_MEMBER(r)
136 IPC_STRUCT_TRAITS_MEMBER(g)
137 IPC_STRUCT_TRAITS_MEMBER(b)
138 IPC_STRUCT_TRAITS_MEMBER(a)
139 IPC_STRUCT_TRAITS_END()
141 IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo)
142 IPC_STRUCT_TRAITS_MEMBER(using_default_theme)
143 IPC_STRUCT_TRAITS_MEMBER(background_color)
144 IPC_STRUCT_TRAITS_MEMBER(text_color)
145 IPC_STRUCT_TRAITS_MEMBER(link_color)
146 IPC_STRUCT_TRAITS_MEMBER(text_color_light)
147 IPC_STRUCT_TRAITS_MEMBER(header_color)
148 IPC_STRUCT_TRAITS_MEMBER(section_border_color)
149 IPC_STRUCT_TRAITS_MEMBER(theme_id)
150 IPC_STRUCT_TRAITS_MEMBER(image_horizontal_alignment)
151 IPC_STRUCT_TRAITS_MEMBER(image_vertical_alignment)
152 IPC_STRUCT_TRAITS_MEMBER(image_tiling)
153 IPC_STRUCT_TRAITS_MEMBER(image_height)
154 IPC_STRUCT_TRAITS_MEMBER(has_attribution)
155 IPC_STRUCT_TRAITS_MEMBER(logo_alternate)
156 IPC_STRUCT_TRAITS_END()
158 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::UsageStats)
159 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity)
160 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity)
161 IPC_STRUCT_TRAITS_MEMBER(capacity)
162 IPC_STRUCT_TRAITS_MEMBER(liveSize)
163 IPC_STRUCT_TRAITS_MEMBER(deadSize)
164 IPC_STRUCT_TRAITS_END()
166 IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType,
167 NTP_EVENT_TYPE_LAST)
169 IPC_ENUM_TRAITS_MAX_VALUE(WebApplicationInfo::MobileCapable,
170 WebApplicationInfo::MOBILE_CAPABLE_APPLE)
172 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo)
173 IPC_STRUCT_TRAITS_MEMBER(url)
174 IPC_STRUCT_TRAITS_MEMBER(width)
175 IPC_STRUCT_TRAITS_MEMBER(height)
176 IPC_STRUCT_TRAITS_MEMBER(data)
177 IPC_STRUCT_TRAITS_END()
179 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo)
180 IPC_STRUCT_TRAITS_MEMBER(title)
181 IPC_STRUCT_TRAITS_MEMBER(description)
182 IPC_STRUCT_TRAITS_MEMBER(app_url)
183 IPC_STRUCT_TRAITS_MEMBER(icons)
184 IPC_STRUCT_TRAITS_MEMBER(mobile_capable)
185 IPC_STRUCT_TRAITS_END()
187 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebAppBannerPromptReply,
188 blink::WebAppBannerPromptReply::Cancel)
190 //-----------------------------------------------------------------------------
191 // RenderView messages
192 // These are messages sent from the browser to the renderer process.
194 #if !defined(OS_ANDROID) && !defined(OS_IOS)
195 // For WebUI testing, this message requests JavaScript to be executed at a time
196 // which is late enough to not be thrown out, and early enough to be before
197 // onload events are fired.
198 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript,
199 base::string16 /* javascript */)
200 #endif
202 // Set the content setting rules stored by the renderer.
203 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules,
204 RendererContentSettingRules /* rules */)
206 // Tells the renderer to create a FieldTrial, and by using a 100% probability
207 // for the FieldTrial, forces the FieldTrial to have assigned group name.
208 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup,
209 std::string /* field trial name */,
210 std::string /* group name that was assigned. */)
212 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetPageSequenceNumber,
213 int /* page_seq_no */)
215 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant)
217 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetDisplayInstantResults,
218 bool /* display_instant_results */)
220 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFocusChanged,
221 OmniboxFocusState /* new_focus_state */,
222 OmniboxFocusChangeReason /* reason */)
224 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMarginChange, int /* start */)
226 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged,
227 std::vector<InstantMostVisitedItem> /* items */)
229 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation,
230 bool /* is_app_launcher_enabled */)
232 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress,
233 bool /* input_in_progress */)
235 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch,
236 InstantSuggestion /* suggestion */)
238 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxSubmit,
239 base::string16 /* value */,
240 EmbeddedSearchRequestParams /* params */)
242 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged,
243 ThemeBackgroundInfo /* value */)
245 IPC_MESSAGE_ROUTED1(ChromeViewMsg_HistorySyncCheckResult,
246 bool /* sync_history */)
248 IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult,
249 base::string16 /* identity */,
250 bool /* identity_match */)
252 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch)
254 // Sent on process startup to indicate whether this process is running in
255 // incognito mode.
256 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess,
257 bool /* is_incognito_processs */)
259 // Sent when the profile changes the kSafeBrowsingEnabled preference.
260 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection,
261 bool /* enable_phishing_detection */)
263 // Reloads the image selected by the most recently opened context menu
264 // (if there indeed is an image at that location).
265 IPC_MESSAGE_ROUTED0(ChromeViewMsg_RequestReloadImageForContextNode)
267 // Asks the renderer for a thumbnail of the image selected by the most
268 // recently opened context menu, if there is one. If the image's area
269 // is greater than thumbnail_min_area it will be downscaled to
270 // be within thumbnail_max_size. The possibly downsampled image will be
271 // returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message.
272 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode,
273 int /* thumbnail_min_area_pixels */,
274 gfx::Size /* thumbnail_max_size_pixels */)
276 // Notifies the renderer whether hiding/showing the top controls is enabled,
277 // what the current state should be, and whether or not to animate to the
278 // proper state.
279 IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState,
280 content::TopControlsState /* constraints */,
281 content::TopControlsState /* current */,
282 bool /* animate */)
285 // Updates the window features of the render view.
286 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures,
287 blink::WebWindowFeatures /* window_features */)
289 // Responds to the request for a thumbnail.
290 // Thumbnail data will be empty is a thumbnail could not be produced.
291 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK,
292 std::string /* JPEG-encoded thumbnail data */,
293 gfx::Size /* original size of the image */)
295 // Requests application info for the page. The renderer responds back with
296 // ChromeViewHostMsg_DidGetWebApplicationInfo.
297 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetWebApplicationInfo)
299 // chrome.principals messages ------------------------------------------------
301 // Message sent from the renderer to the browser to get the list of browser
302 // managed accounts for the given origin.
303 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts,
304 GURL /* current URL */,
305 std::vector<std::string> /* managed accounts */)
307 // Message sent from the renderer to the browser to show the browser account
308 // management UI.
309 IPC_MESSAGE_CONTROL0(ChromeViewHostMsg_ShowBrowserAccountManagementUI)
311 // JavaScript related messages -----------------------------------------------
313 // Provides the renderer with the results of the browser's investigation into
314 // why a recent main frame load failed (currently, just DNS probe result).
315 // NetErrorHelper will receive this mesage and replace or update the error
316 // page with more specific troubleshooting suggestions.
317 IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo,
318 int /* DNS probe status */)
320 // Tells the renderer whether or not there is a local diagnostics service that
321 // can be run via ChromeViewHostMsg_RunNetworkDiagnostics messages.
322 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetCanShowNetworkDiagnosticsDialog,
323 bool /* can_show_network_diagnostics_dialog */)
325 // Provides the information needed by the renderer process to contact a
326 // navigation correction service. Handled by the NetErrorHelper.
327 IPC_MESSAGE_ROUTED5(ChromeViewMsg_SetNavigationCorrectionInfo,
328 GURL /* Navigation correction service base URL */,
329 std::string /* language */,
330 std::string /* origin_country */,
331 std::string /* API key to use */,
332 GURL /* Google Search URL to use */)
334 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RunNetworkDiagnostics,
335 GURL /* failed_url */)
337 //-----------------------------------------------------------------------------
338 // Misc messages
339 // These are messages sent from the renderer to the browser process.
341 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats,
342 blink::WebCache::UsageStats /* stats */)
344 // Sent by the renderer process to check whether access to FileSystem is
345 // granted by content settings.
346 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_RequestFileSystemAccessSync,
347 int /* render_frame_id */,
348 GURL /* origin_url */,
349 GURL /* top origin url */,
350 bool /* allowed */)
352 // Return information about a plugin for the given URL and MIME type.
353 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows
354 // about specific reasons why a plugin can't be used, for example because it's
355 // disabled.
356 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo,
357 int /* render_frame_id */,
358 GURL /* url */,
359 GURL /* top origin url */,
360 std::string /* mime_type */,
361 ChromeViewHostMsg_GetPluginInfo_Output /* output */)
363 #if defined(ENABLE_PEPPER_CDMS)
364 // Returns whether any internal plugin supporting |mime_type| is registered and
365 // enabled. Does not determine whether the plugin can actually be instantiated
366 // (e.g. whether it has all its dependencies).
367 // When the returned *|is_available| is true, |additional_param_names| and
368 // |additional_param_values| contain the name-value pairs, if any, specified
369 // for the *first* non-disabled plugin found that is registered for |mime_type|.
370 IPC_SYNC_MESSAGE_CONTROL1_3(
371 ChromeViewHostMsg_IsInternalPluginAvailableForMimeType,
372 std::string /* mime_type */,
373 bool /* is_available */,
374 std::vector<base::string16> /* additional_param_names */,
375 std::vector<base::string16> /* additional_param_values */)
376 #endif
378 #if defined(ENABLE_PLUGIN_INSTALLATION)
379 // Notifies the browser that a missing plugin placeholder has been removed, so
380 // the corresponding PluginPlaceholderHost can be deleted.
381 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost,
382 int /* placeholder_id */)
384 // Notifies a missing plugin placeholder that a plugin with name |plugin_name|
385 // has been found.
386 IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin,
387 base::string16 /* plugin_name */)
389 // Notifies a missing plugin placeholder that no plugin has been found.
390 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin)
392 // Notifies a missing plugin placeholder that we have started downloading
393 // the plugin.
394 IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin)
396 // Notifies a missing plugin placeholder that we have finished downloading
397 // the plugin.
398 IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin)
400 // Notifies a missing plugin placeholder that there was an error downloading
401 // the plugin.
402 IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin,
403 std::string /* message */)
404 #endif // defined(ENABLE_PLUGIN_INSTALLATION)
406 // Notifies a missing plugin placeholder that the user cancelled downloading
407 // the plugin.
408 IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin)
410 // Tells the browser to open chrome://plugins in a new tab. We use a separate
411 // message because renderer processes aren't allowed to directly navigate to
412 // chrome:// URLs.
413 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins)
415 // Tells the browser that there was an error loading a plugin.
416 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin,
417 base::FilePath /* plugin_path */)
419 // Tells the browser that we blocked a plugin because NPAPI is not supported.
420 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported,
421 std::string /* identifer */)
423 // Asks the renderer whether an app banner should be shown. It will reply with
424 // ChromeViewHostMsg_AppBannerPromptReply.
425 IPC_MESSAGE_ROUTED2(ChromeViewMsg_AppBannerPromptRequest,
426 int /* request_id */,
427 std::string /* platform */)
429 // Tells the renderer that a banner has been accepted.
430 IPC_MESSAGE_ROUTED2(ChromeViewMsg_AppBannerAccepted,
431 int32_t /* request_id */,
432 std::string /* platform */)
434 // Tells the renderer that a banner has been dismissed.
435 IPC_MESSAGE_ROUTED1(ChromeViewMsg_AppBannerDismissed,
436 int32_t /* request_id */)
438 // Asks the renderer to log a debug message to console regarding an
439 // app banner.
440 IPC_MESSAGE_ROUTED1(ChromeViewMsg_AppBannerDebugMessageRequest,
441 std::string /* message */)
443 // Notification that the page has an OpenSearch description document
444 // associated with it.
445 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD,
446 GURL /* page_url */,
447 GURL /* osdd_url */,
448 search_provider::OSDDType)
450 // Find out if the given url's security origin is installed as a search
451 // provider.
452 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState,
453 GURL /* page url */,
454 GURL /* inquiry url */,
455 search_provider::InstallState /* install */)
457 // Notifies when a plugin couldn't be loaded because it's outdated.
458 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin,
459 int /* placeholder ID */,
460 std::string /* plugin group identifier */)
462 // Notifies when a plugin couldn't be loaded because it requires
463 // user authorization.
464 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin,
465 base::string16 /* name */,
466 std::string /* plugin group identifier */)
468 // Message sent from the renderer to the browser to notify it of a
469 // window.print() call which should cancel the prerender. The message is sent
470 // only when the renderer is prerendering.
471 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting)
473 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_DidGetWebApplicationInfo,
474 WebApplicationInfo)
476 // Logs events from InstantExtended New Tab Pages.
477 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogEvent,
478 int /* page_seq_no */,
479 NTPLoggingEventType /* event */,
480 base::TimeDelta /* time */)
482 // Logs an impression on one of the Most Visited tile on the InstantExtended
483 // New Tab Page.
484 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedImpression,
485 int /* page_seq_no */,
486 int /* position */,
487 base::string16 /* provider */)
489 // Logs a navigation on one of the Most Visited tile on the InstantExtended
490 // New Tab Page.
491 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedNavigation,
492 int /* page_seq_no */,
493 int /* position */,
494 base::string16 /* provider */)
496 // The Instant page asks whether the user syncs its history.
497 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_HistorySyncCheck,
498 int /* page_seq_no */)
500 // The Instant page asks for Chrome identity check against |identity|.
501 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ChromeIdentityCheck,
502 int /* page_seq_no */,
503 base::string16 /* identity */)
505 // Tells InstantExtended to set the omnibox focus state.
506 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FocusOmnibox,
507 int /* page_seq_no */,
508 OmniboxFocusState /* state */)
510 // Tells InstantExtended to paste text into the omnibox. If text is empty,
511 // the clipboard contents will be pasted. This causes the omnibox dropdown to
512 // open.
513 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PasteAndOpenDropdown,
514 int /* page_seq_no */,
515 base::string16 /* text to be pasted */)
517 // Tells InstantExtended whether the embedded search API is supported.
518 // See http://dev.chromium.org/embeddedsearch
519 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined,
520 int /* page_seq_no */,
521 bool /* result */)
523 // Tells InstantExtended to delete a most visited item.
524 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem,
525 int /* page_seq_no */,
526 GURL /* url */)
528 // Tells InstantExtended to navigate the active tab to a possibly privileged
529 // URL.
530 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_SearchBoxNavigate,
531 int /* page_seq_no */,
532 GURL /* destination */,
533 WindowOpenDisposition /* disposition */,
534 bool /*is_most_visited_item_url*/)
536 // Tells InstantExtended to undo all most visited item deletions.
537 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions,
538 int /* page_seq_no */)
540 // Tells InstantExtended to undo one most visited item deletion.
541 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion,
542 int /* page_seq_no */,
543 GURL /* url */)
545 // Tells InstantExtended whether the page supports voice search.
546 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetVoiceSearchSupported,
547 int /* page_seq_no */,
548 bool /* supported */)
550 // Tells the renderer a list of URLs which should be bounced back to the browser
551 // process so that they can be assigned to an Instant renderer.
552 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs,
553 std::vector<GURL> /* search_urls */,
554 GURL /* new_tab_page_url */)
556 #if defined(ENABLE_PLUGINS)
557 // Sent by the renderer to check if crash reporting is enabled.
558 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled,
559 bool /* enabled */)
560 #endif
562 // Tells the browser process whether the web page wants the banner to be shown.
563 // This is a reply from ChromeViewMsg_AppBannerPromptRequest.
564 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_AppBannerPromptReply,
565 int /* request_id */,
566 blink::WebAppBannerPromptReply /* reply */,
567 std::string /* referrer */)
569 // Tells the browser to restart the app banner display pipeline.
570 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RequestShowAppBanner,
571 int32_t /* request_id */)
573 // Sent by the renderer to indicate that a fields trial has been activated.
574 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_FieldTrialActivated,
575 std::string /* name */)
577 // Record a sample string to a Rappor metric.
578 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor,
579 std::string /* metric */,
580 std::string /* sample */)
582 // Record a domain and registry of a url to a Rappor metric.
583 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL,
584 std::string /* metric */,
585 GURL /* sample url */)