Update CrOS OOBE throbber to MD throbber; delete old asset
[chromium-blink-merge.git] / chrome / common / render_messages.h
blobd2601aa8efad2a5f683dd18b7c9f94301bed296e
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_END()
127 IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules)
128 IPC_STRUCT_TRAITS_MEMBER(image_rules)
129 IPC_STRUCT_TRAITS_MEMBER(script_rules)
130 IPC_STRUCT_TRAITS_END()
132 IPC_STRUCT_TRAITS_BEGIN(RGBAColor)
133 IPC_STRUCT_TRAITS_MEMBER(r)
134 IPC_STRUCT_TRAITS_MEMBER(g)
135 IPC_STRUCT_TRAITS_MEMBER(b)
136 IPC_STRUCT_TRAITS_MEMBER(a)
137 IPC_STRUCT_TRAITS_END()
139 IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo)
140 IPC_STRUCT_TRAITS_MEMBER(using_default_theme)
141 IPC_STRUCT_TRAITS_MEMBER(background_color)
142 IPC_STRUCT_TRAITS_MEMBER(text_color)
143 IPC_STRUCT_TRAITS_MEMBER(link_color)
144 IPC_STRUCT_TRAITS_MEMBER(text_color_light)
145 IPC_STRUCT_TRAITS_MEMBER(header_color)
146 IPC_STRUCT_TRAITS_MEMBER(section_border_color)
147 IPC_STRUCT_TRAITS_MEMBER(theme_id)
148 IPC_STRUCT_TRAITS_MEMBER(image_horizontal_alignment)
149 IPC_STRUCT_TRAITS_MEMBER(image_vertical_alignment)
150 IPC_STRUCT_TRAITS_MEMBER(image_tiling)
151 IPC_STRUCT_TRAITS_MEMBER(image_height)
152 IPC_STRUCT_TRAITS_MEMBER(has_attribution)
153 IPC_STRUCT_TRAITS_MEMBER(logo_alternate)
154 IPC_STRUCT_TRAITS_END()
156 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::UsageStats)
157 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity)
158 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity)
159 IPC_STRUCT_TRAITS_MEMBER(capacity)
160 IPC_STRUCT_TRAITS_MEMBER(liveSize)
161 IPC_STRUCT_TRAITS_MEMBER(deadSize)
162 IPC_STRUCT_TRAITS_END()
164 IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType,
165 NTP_EVENT_TYPE_LAST)
167 IPC_ENUM_TRAITS_MAX_VALUE(WebApplicationInfo::MobileCapable,
168 WebApplicationInfo::MOBILE_CAPABLE_APPLE)
170 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo)
171 IPC_STRUCT_TRAITS_MEMBER(url)
172 IPC_STRUCT_TRAITS_MEMBER(width)
173 IPC_STRUCT_TRAITS_MEMBER(height)
174 IPC_STRUCT_TRAITS_MEMBER(data)
175 IPC_STRUCT_TRAITS_END()
177 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo)
178 IPC_STRUCT_TRAITS_MEMBER(title)
179 IPC_STRUCT_TRAITS_MEMBER(description)
180 IPC_STRUCT_TRAITS_MEMBER(app_url)
181 IPC_STRUCT_TRAITS_MEMBER(icons)
182 IPC_STRUCT_TRAITS_MEMBER(mobile_capable)
183 IPC_STRUCT_TRAITS_END()
185 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebAppBannerPromptReply,
186 blink::WebAppBannerPromptReply::Cancel)
188 //-----------------------------------------------------------------------------
189 // RenderView messages
190 // These are messages sent from the browser to the renderer process.
192 #if !defined(OS_ANDROID) && !defined(OS_IOS)
193 // For WebUI testing, this message requests JavaScript to be executed at a time
194 // which is late enough to not be thrown out, and early enough to be before
195 // onload events are fired.
196 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript,
197 base::string16 /* javascript */)
198 #endif
200 // Set the content setting rules stored by the renderer.
201 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules,
202 RendererContentSettingRules /* rules */)
204 // Tells the renderer to create a FieldTrial, and by using a 100% probability
205 // for the FieldTrial, forces the FieldTrial to have assigned group name.
206 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup,
207 std::string /* field trial name */,
208 std::string /* group name that was assigned. */)
210 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetPageSequenceNumber,
211 int /* page_seq_no */)
213 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant)
215 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetDisplayInstantResults,
216 bool /* display_instant_results */)
218 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFocusChanged,
219 OmniboxFocusState /* new_focus_state */,
220 OmniboxFocusChangeReason /* reason */)
222 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMarginChange, int /* start */)
224 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged,
225 std::vector<InstantMostVisitedItem> /* items */)
227 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation,
228 bool /* is_app_launcher_enabled */)
230 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress,
231 bool /* input_in_progress */)
233 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch,
234 InstantSuggestion /* suggestion */)
236 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxSubmit,
237 base::string16 /* value */,
238 EmbeddedSearchRequestParams /* params */)
240 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged,
241 ThemeBackgroundInfo /* value */)
243 IPC_MESSAGE_ROUTED1(ChromeViewMsg_HistorySyncCheckResult,
244 bool /* sync_history */)
246 IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult,
247 base::string16 /* identity */,
248 bool /* identity_match */)
250 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch)
252 // Sent on process startup to indicate whether this process is running in
253 // incognito mode.
254 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess,
255 bool /* is_incognito_processs */)
257 // Sent when the profile changes the kSafeBrowsingEnabled preference.
258 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection,
259 bool /* enable_phishing_detection */)
261 // Reloads the image selected by the most recently opened context menu
262 // (if there indeed is an image at that location).
263 IPC_MESSAGE_ROUTED0(ChromeViewMsg_RequestReloadImageForContextNode)
265 // Asks the renderer for a thumbnail of the image selected by the most
266 // recently opened context menu, if there is one. If the image's area
267 // is greater than thumbnail_min_area it will be downscaled to
268 // be within thumbnail_max_size. The possibly downsampled image will be
269 // returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message.
270 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode,
271 int /* thumbnail_min_area_pixels */,
272 gfx::Size /* thumbnail_max_size_pixels */)
274 // Notifies the renderer whether hiding/showing the top controls is enabled,
275 // what the current state should be, and whether or not to animate to the
276 // proper state.
277 IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState,
278 content::TopControlsState /* constraints */,
279 content::TopControlsState /* current */,
280 bool /* animate */)
283 // Updates the window features of the render view.
284 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures,
285 blink::WebWindowFeatures /* window_features */)
287 // Responds to the request for a thumbnail.
288 // Thumbnail data will be empty is a thumbnail could not be produced.
289 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK,
290 std::string /* JPEG-encoded thumbnail data */,
291 gfx::Size /* original size of the image */)
293 // Requests application info for the page. The renderer responds back with
294 // ChromeViewHostMsg_DidGetWebApplicationInfo.
295 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetWebApplicationInfo)
297 // chrome.principals messages ------------------------------------------------
299 // Message sent from the renderer to the browser to get the list of browser
300 // managed accounts for the given origin.
301 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts,
302 GURL /* current URL */,
303 std::vector<std::string> /* managed accounts */)
305 // Message sent from the renderer to the browser to show the browser account
306 // management UI.
307 IPC_MESSAGE_CONTROL0(ChromeViewHostMsg_ShowBrowserAccountManagementUI)
309 // JavaScript related messages -----------------------------------------------
311 // Provides the renderer with the results of the browser's investigation into
312 // why a recent main frame load failed (currently, just DNS probe result).
313 // NetErrorHelper will receive this mesage and replace or update the error
314 // page with more specific troubleshooting suggestions.
315 IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo,
316 int /* DNS probe status */)
318 // Tells the renderer whether or not there is a local diagnostics service that
319 // can be run via ChromeViewHostMsg_RunNetworkDiagnostics messages.
320 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetCanShowNetworkDiagnosticsDialog,
321 bool /* can_show_network_diagnostics_dialog */)
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 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RunNetworkDiagnostics,
333 GURL /* failed_url */)
335 //-----------------------------------------------------------------------------
336 // Misc messages
337 // These are messages sent from the renderer to the browser process.
339 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats,
340 blink::WebCache::UsageStats /* stats */)
342 // Sent by the renderer process to check whether access to FileSystem is
343 // granted by content settings.
344 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_RequestFileSystemAccessSync,
345 int /* render_frame_id */,
346 GURL /* origin_url */,
347 GURL /* top origin url */,
348 bool /* allowed */)
350 // Return information about a plugin for the given URL and MIME type.
351 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows
352 // about specific reasons why a plugin can't be used, for example because it's
353 // disabled.
354 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo,
355 int /* render_frame_id */,
356 GURL /* url */,
357 GURL /* top origin url */,
358 std::string /* mime_type */,
359 ChromeViewHostMsg_GetPluginInfo_Output /* output */)
361 #if defined(ENABLE_PEPPER_CDMS)
362 // Returns whether any internal plugin supporting |mime_type| is registered and
363 // enabled. Does not determine whether the plugin can actually be instantiated
364 // (e.g. whether it has all its dependencies).
365 // When the returned *|is_available| is true, |additional_param_names| and
366 // |additional_param_values| contain the name-value pairs, if any, specified
367 // for the *first* non-disabled plugin found that is registered for |mime_type|.
368 IPC_SYNC_MESSAGE_CONTROL1_3(
369 ChromeViewHostMsg_IsInternalPluginAvailableForMimeType,
370 std::string /* mime_type */,
371 bool /* is_available */,
372 std::vector<base::string16> /* additional_param_names */,
373 std::vector<base::string16> /* additional_param_values */)
374 #endif
376 #if defined(ENABLE_PLUGIN_INSTALLATION)
377 // Notifies the browser that a missing plugin placeholder has been removed, so
378 // the corresponding PluginPlaceholderHost can be deleted.
379 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost,
380 int /* placeholder_id */)
382 // Notifies a missing plugin placeholder that a plugin with name |plugin_name|
383 // has been found.
384 IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin,
385 base::string16 /* plugin_name */)
387 // Notifies a missing plugin placeholder that no plugin has been found.
388 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin)
390 // Notifies a missing plugin placeholder that we have started downloading
391 // the plugin.
392 IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin)
394 // Notifies a missing plugin placeholder that we have finished downloading
395 // the plugin.
396 IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin)
398 // Notifies a missing plugin placeholder that there was an error downloading
399 // the plugin.
400 IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin,
401 std::string /* message */)
402 #endif // defined(ENABLE_PLUGIN_INSTALLATION)
404 // Notifies a missing plugin placeholder that the user cancelled downloading
405 // the plugin.
406 IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin)
408 // Tells the browser to open chrome://plugins in a new tab. We use a separate
409 // message because renderer processes aren't allowed to directly navigate to
410 // chrome:// URLs.
411 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins)
413 // Tells the browser that there was an error loading a plugin.
414 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin,
415 base::FilePath /* plugin_path */)
417 // Tells the browser that we blocked a plugin because NPAPI is not supported.
418 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported,
419 std::string /* identifer */)
421 // Asks the renderer whether an app banner should be shown. It will reply with
422 // ChromeViewHostMsg_AppBannerPromptReply.
423 IPC_MESSAGE_ROUTED2(ChromeViewMsg_AppBannerPromptRequest,
424 int /* request_id */,
425 std::string /* platform */)
427 // Tells the renderer that a banner has been accepted.
428 IPC_MESSAGE_ROUTED2(ChromeViewMsg_AppBannerAccepted,
429 int32_t /* request_id */,
430 std::string /* platform */)
432 // Tells the renderer that a banner has been dismissed.
433 IPC_MESSAGE_ROUTED1(ChromeViewMsg_AppBannerDismissed,
434 int32_t /* request_id */)
436 // Asks the renderer to log a debug message to console regarding an
437 // app banner.
438 IPC_MESSAGE_ROUTED1(ChromeViewMsg_AppBannerDebugMessageRequest,
439 std::string /* message */)
441 // Notification that the page has an OpenSearch description document
442 // associated with it.
443 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD,
444 GURL /* page_url */,
445 GURL /* osdd_url */,
446 search_provider::OSDDType)
448 // Find out if the given url's security origin is installed as a search
449 // provider.
450 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState,
451 GURL /* page url */,
452 GURL /* inquiry url */,
453 search_provider::InstallState /* install */)
455 // Notifies when a plugin couldn't be loaded because it's outdated.
456 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin,
457 int /* placeholder ID */,
458 std::string /* plugin group identifier */)
460 // Notifies when a plugin couldn't be loaded because it requires
461 // user authorization.
462 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin,
463 base::string16 /* name */,
464 std::string /* plugin group identifier */)
466 // Message sent from the renderer to the browser to notify it of a
467 // window.print() call which should cancel the prerender. The message is sent
468 // only when the renderer is prerendering.
469 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting)
471 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_DidGetWebApplicationInfo,
472 WebApplicationInfo)
474 // Logs events from InstantExtended New Tab Pages.
475 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogEvent,
476 int /* page_seq_no */,
477 NTPLoggingEventType /* event */,
478 base::TimeDelta /* time */)
480 // Logs an impression on one of the Most Visited tile on the InstantExtended
481 // New Tab Page.
482 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedImpression,
483 int /* page_seq_no */,
484 int /* position */,
485 base::string16 /* provider */)
487 // Logs a navigation on one of the Most Visited tile on the InstantExtended
488 // New Tab Page.
489 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedNavigation,
490 int /* page_seq_no */,
491 int /* position */,
492 base::string16 /* provider */)
494 // The Instant page asks whether the user syncs its history.
495 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_HistorySyncCheck,
496 int /* page_seq_no */)
498 // The Instant page asks for Chrome identity check against |identity|.
499 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ChromeIdentityCheck,
500 int /* page_seq_no */,
501 base::string16 /* identity */)
503 // Tells InstantExtended to set the omnibox focus state.
504 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FocusOmnibox,
505 int /* page_seq_no */,
506 OmniboxFocusState /* state */)
508 // Tells InstantExtended to paste text into the omnibox. If text is empty,
509 // the clipboard contents will be pasted. This causes the omnibox dropdown to
510 // open.
511 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PasteAndOpenDropdown,
512 int /* page_seq_no */,
513 base::string16 /* text to be pasted */)
515 // Tells InstantExtended whether the embedded search API is supported.
516 // See http://dev.chromium.org/embeddedsearch
517 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined,
518 int /* page_seq_no */,
519 bool /* result */)
521 // Tells InstantExtended to delete a most visited item.
522 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem,
523 int /* page_seq_no */,
524 GURL /* url */)
526 // Tells InstantExtended to navigate the active tab to a possibly privileged
527 // URL.
528 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_SearchBoxNavigate,
529 int /* page_seq_no */,
530 GURL /* destination */,
531 WindowOpenDisposition /* disposition */,
532 bool /*is_most_visited_item_url*/)
534 // Tells InstantExtended to undo all most visited item deletions.
535 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions,
536 int /* page_seq_no */)
538 // Tells InstantExtended to undo one most visited item deletion.
539 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion,
540 int /* page_seq_no */,
541 GURL /* url */)
543 // Tells InstantExtended whether the page supports voice search.
544 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetVoiceSearchSupported,
545 int /* page_seq_no */,
546 bool /* supported */)
548 // Tells the renderer a list of URLs which should be bounced back to the browser
549 // process so that they can be assigned to an Instant renderer.
550 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs,
551 std::vector<GURL> /* search_urls */,
552 GURL /* new_tab_page_url */)
554 #if defined(ENABLE_PLUGINS)
555 // Sent by the renderer to check if crash reporting is enabled.
556 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled,
557 bool /* enabled */)
558 #endif
560 // Tells the browser process whether the web page wants the banner to be shown.
561 // This is a reply from ChromeViewMsg_AppBannerPromptRequest.
562 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_AppBannerPromptReply,
563 int /* request_id */,
564 blink::WebAppBannerPromptReply /* reply */)
566 // Tells the browser to restart the app banner display pipeline.
567 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RequestShowAppBanner,
568 int32_t /* request_id */)
570 // Sent by the renderer to indicate that a fields trial has been activated.
571 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_FieldTrialActivated,
572 std::string /* name */)
574 // Record a sample string to a Rappor metric.
575 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor,
576 std::string /* metric */,
577 std::string /* sample */)
579 // Record a domain and registry of a url to a Rappor metric.
580 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL,
581 std::string /* metric */,
582 GURL /* sample url */)