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.
12 #include "base/files/file_path.h"
13 #include "base/memory/shared_memory.h"
14 #include "base/process/process.h"
15 #include "base/strings/string16.h"
16 #include "base/strings/stringprintf.h"
17 #include "base/time/time.h"
18 #include "base/values.h"
19 #include "build/build_config.h"
20 #include "chrome/common/common_param_traits.h"
21 #include "chrome/common/instant_types.h"
22 #include "chrome/common/ntp_logging_events.h"
23 #include "chrome/common/omnibox_focus_state.h"
24 #include "chrome/common/search_provider.h"
25 #include "chrome/common/web_application_info.h"
26 #include "components/content_settings/core/common/content_settings.h"
27 #include "components/content_settings/core/common/content_settings_pattern.h"
28 #include "components/nacl/common/nacl_types.h"
29 #include "content/public/common/common_param_traits.h"
30 #include "content/public/common/referrer.h"
31 #include "content/public/common/top_controls_state.h"
32 #include "ipc/ipc_channel_handle.h"
33 #include "ipc/ipc_message_macros.h"
34 #include "ipc/ipc_platform_file.h"
35 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerPromptReply.h"
36 #include "third_party/WebKit/public/web/WebCache.h"
37 #include "third_party/WebKit/public/web/WebConsoleMessage.h"
38 #include "third_party/skia/include/core/SkBitmap.h"
39 #include "ui/base/window_open_disposition.h"
40 #include "ui/gfx/geometry/rect.h"
41 #include "ui/gfx/ipc/gfx_param_traits.h"
43 // Singly-included section for enums and custom IPC traits.
44 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_
45 #define CHROME_COMMON_RENDER_MESSAGES_H_
47 enum class ChromeViewHostMsg_GetPluginInfo_Status
{
56 kPlayImportantContent
,
63 struct ParamTraits
<ContentSettingsPattern
> {
64 typedef ContentSettingsPattern param_type
;
65 static void Write(Message
* m
, const param_type
& p
);
66 static bool Read(const Message
* m
, PickleIterator
* iter
, param_type
* r
);
67 static void Log(const param_type
& p
, std::string
* l
);
72 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
74 #define IPC_MESSAGE_START ChromeMsgStart
76 IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status
,
77 ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized
)
78 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusChangeReason
,
79 OMNIBOX_FOCUS_CHANGE_REASON_LAST
)
80 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusState
, OMNIBOX_FOCUS_STATE_LAST
)
81 IPC_ENUM_TRAITS_MAX_VALUE(search_provider::OSDDType
,
82 search_provider::OSDD_TYPE_LAST
)
83 IPC_ENUM_TRAITS_MAX_VALUE(search_provider::InstallState
,
84 search_provider::INSTALLED_STATE_LAST
)
85 IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageAlignment
,
86 THEME_BKGRND_IMAGE_ALIGN_LAST
)
87 IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageTiling
, THEME_BKGRND_IMAGE_LAST
)
88 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebConsoleMessage::Level
,
89 blink::WebConsoleMessage::LevelLast
)
90 IPC_ENUM_TRAITS_MAX_VALUE(content::TopControlsState
,
91 content::TOP_CONTROLS_STATE_LAST
)
93 // Output parameters for ChromeViewHostMsg_GetPluginInfo message.
94 IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output
)
95 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status
, status
)
96 IPC_STRUCT_MEMBER(content::WebPluginInfo
, plugin
)
97 IPC_STRUCT_MEMBER(std::string
, actual_mime_type
)
98 IPC_STRUCT_MEMBER(std::string
, group_identifier
)
99 IPC_STRUCT_MEMBER(base::string16
, group_name
)
102 IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts
)
103 IPC_STRUCT_TRAITS_MEMBER(scheme
)
104 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard
)
105 IPC_STRUCT_TRAITS_MEMBER(host
)
106 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard
)
107 IPC_STRUCT_TRAITS_MEMBER(port
)
108 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard
)
109 IPC_STRUCT_TRAITS_MEMBER(path
)
110 IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard
)
111 IPC_STRUCT_TRAITS_END()
113 IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource
)
114 IPC_STRUCT_TRAITS_MEMBER(primary_pattern
)
115 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern
)
116 IPC_STRUCT_TRAITS_MEMBER(setting
)
117 IPC_STRUCT_TRAITS_MEMBER(source
)
118 IPC_STRUCT_TRAITS_MEMBER(incognito
)
119 IPC_STRUCT_TRAITS_END()
121 IPC_STRUCT_TRAITS_BEGIN(EmbeddedSearchRequestParams
)
122 IPC_STRUCT_TRAITS_MEMBER(search_query
)
123 IPC_STRUCT_TRAITS_MEMBER(original_query
)
124 IPC_STRUCT_TRAITS_MEMBER(rlz_parameter_value
)
125 IPC_STRUCT_TRAITS_MEMBER(input_encoding
)
126 IPC_STRUCT_TRAITS_MEMBER(assisted_query_stats
)
127 IPC_STRUCT_TRAITS_END()
129 IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion
)
130 IPC_STRUCT_TRAITS_MEMBER(text
)
131 IPC_STRUCT_TRAITS_MEMBER(metadata
)
132 IPC_STRUCT_TRAITS_END()
134 IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem
)
135 IPC_STRUCT_TRAITS_MEMBER(url
)
136 IPC_STRUCT_TRAITS_MEMBER(title
)
137 IPC_STRUCT_TRAITS_END()
139 IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules
)
140 IPC_STRUCT_TRAITS_MEMBER(image_rules
)
141 IPC_STRUCT_TRAITS_MEMBER(script_rules
)
142 IPC_STRUCT_TRAITS_END()
144 IPC_STRUCT_TRAITS_BEGIN(RGBAColor
)
145 IPC_STRUCT_TRAITS_MEMBER(r
)
146 IPC_STRUCT_TRAITS_MEMBER(g
)
147 IPC_STRUCT_TRAITS_MEMBER(b
)
148 IPC_STRUCT_TRAITS_MEMBER(a
)
149 IPC_STRUCT_TRAITS_END()
151 IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo
)
152 IPC_STRUCT_TRAITS_MEMBER(using_default_theme
)
153 IPC_STRUCT_TRAITS_MEMBER(background_color
)
154 IPC_STRUCT_TRAITS_MEMBER(text_color
)
155 IPC_STRUCT_TRAITS_MEMBER(link_color
)
156 IPC_STRUCT_TRAITS_MEMBER(text_color_light
)
157 IPC_STRUCT_TRAITS_MEMBER(header_color
)
158 IPC_STRUCT_TRAITS_MEMBER(section_border_color
)
159 IPC_STRUCT_TRAITS_MEMBER(theme_id
)
160 IPC_STRUCT_TRAITS_MEMBER(image_horizontal_alignment
)
161 IPC_STRUCT_TRAITS_MEMBER(image_vertical_alignment
)
162 IPC_STRUCT_TRAITS_MEMBER(image_tiling
)
163 IPC_STRUCT_TRAITS_MEMBER(image_height
)
164 IPC_STRUCT_TRAITS_MEMBER(has_attribution
)
165 IPC_STRUCT_TRAITS_MEMBER(logo_alternate
)
166 IPC_STRUCT_TRAITS_END()
168 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStat
)
169 IPC_STRUCT_TRAITS_MEMBER(count
)
170 IPC_STRUCT_TRAITS_MEMBER(size
)
171 IPC_STRUCT_TRAITS_MEMBER(liveSize
)
172 IPC_STRUCT_TRAITS_MEMBER(decodedSize
)
173 IPC_STRUCT_TRAITS_END()
175 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStats
)
176 IPC_STRUCT_TRAITS_MEMBER(images
)
177 IPC_STRUCT_TRAITS_MEMBER(cssStyleSheets
)
178 IPC_STRUCT_TRAITS_MEMBER(scripts
)
179 IPC_STRUCT_TRAITS_MEMBER(xslStyleSheets
)
180 IPC_STRUCT_TRAITS_MEMBER(fonts
)
181 IPC_STRUCT_TRAITS_END()
183 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::UsageStats
)
184 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity
)
185 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity
)
186 IPC_STRUCT_TRAITS_MEMBER(capacity
)
187 IPC_STRUCT_TRAITS_MEMBER(liveSize
)
188 IPC_STRUCT_TRAITS_MEMBER(deadSize
)
189 IPC_STRUCT_TRAITS_END()
191 IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType
,
194 IPC_ENUM_TRAITS_MAX_VALUE(WebApplicationInfo::MobileCapable
,
195 WebApplicationInfo::MOBILE_CAPABLE_APPLE
)
197 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo
)
198 IPC_STRUCT_TRAITS_MEMBER(url
)
199 IPC_STRUCT_TRAITS_MEMBER(width
)
200 IPC_STRUCT_TRAITS_MEMBER(height
)
201 IPC_STRUCT_TRAITS_MEMBER(data
)
202 IPC_STRUCT_TRAITS_END()
204 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo
)
205 IPC_STRUCT_TRAITS_MEMBER(title
)
206 IPC_STRUCT_TRAITS_MEMBER(description
)
207 IPC_STRUCT_TRAITS_MEMBER(app_url
)
208 IPC_STRUCT_TRAITS_MEMBER(icons
)
209 IPC_STRUCT_TRAITS_MEMBER(mobile_capable
)
210 IPC_STRUCT_TRAITS_END()
212 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebAppBannerPromptReply
,
213 blink::WebAppBannerPromptReply::Cancel
)
215 //-----------------------------------------------------------------------------
216 // RenderView messages
217 // These are messages sent from the browser to the renderer process.
219 #if !defined(OS_ANDROID) && !defined(OS_IOS)
220 // For WebUI testing, this message requests JavaScript to be executed at a time
221 // which is late enough to not be thrown out, and early enough to be before
222 // onload events are fired.
223 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript
,
224 base::string16
/* javascript */)
227 // Set the content setting rules stored by the renderer.
228 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules
,
229 RendererContentSettingRules
/* rules */)
231 // Asks the renderer to send back stats on the WebCore cache broken down by
233 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats
)
235 // Tells the renderer to create a FieldTrial, and by using a 100% probability
236 // for the FieldTrial, forces the FieldTrial to have assigned group name.
237 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup
,
238 std::string
/* field trial name */,
239 std::string
/* group name that was assigned. */)
241 // Asks the renderer to send back V8 heap stats.
242 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats
)
244 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetPageSequenceNumber
,
245 int /* page_seq_no */)
247 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant
)
249 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetDisplayInstantResults
,
250 bool /* display_instant_results */)
252 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFocusChanged
,
253 OmniboxFocusState
/* new_focus_state */,
254 OmniboxFocusChangeReason
/* reason */)
256 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMarginChange
, int /* start */)
258 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged
,
259 std::vector
<InstantMostVisitedItem
> /* items */)
261 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation
,
262 bool /* is_app_launcher_enabled */)
264 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress
,
265 bool /* input_in_progress */)
267 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch
,
268 InstantSuggestion
/* suggestion */)
270 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxSubmit
,
271 base::string16
/* value */,
272 EmbeddedSearchRequestParams
/* params */)
274 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged
,
275 ThemeBackgroundInfo
/* value */)
277 IPC_MESSAGE_ROUTED1(ChromeViewMsg_HistorySyncCheckResult
,
278 bool /* sync_history */)
280 IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult
,
281 base::string16
/* identity */,
282 bool /* identity_match */)
284 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch
)
286 // Sent on process startup to indicate whether this process is running in
288 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess
,
289 bool /* is_incognito_processs */)
291 // Sent when the profile changes the kSafeBrowsingEnabled preference.
292 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection
,
293 bool /* enable_phishing_detection */)
295 // Asks the renderer for a thumbnail of the image selected by the most
296 // recently opened context menu, if there is one. If the image's area
297 // is greater than thumbnail_min_area it will be downscaled to
298 // be within thumbnail_max_size. The possibly downsampled image will be
299 // returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message.
300 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode
,
301 int /* thumbnail_min_area_pixels */,
302 gfx::Size
/* thumbnail_max_size_pixels */)
304 // Notifies the renderer whether hiding/showing the top controls is enabled,
305 // what the current state should be, and whether or not to animate to the
307 IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState
,
308 content::TopControlsState
/* constraints */,
309 content::TopControlsState
/* current */,
313 // Updates the window features of the render view.
314 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures
,
315 blink::WebWindowFeatures
/* window_features */)
317 // Responds to the request for a thumbnail.
318 // Thumbnail data will be empty is a thumbnail could not be produced.
319 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK
,
320 std::string
/* JPEG-encoded thumbnail data */,
321 gfx::Size
/* original size of the image */)
323 // Requests application info for the page. The renderer responds back with
324 // ChromeViewHostMsg_DidGetWebApplicationInfo.
325 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetWebApplicationInfo
)
327 #if defined(OS_ANDROID)
328 // Asks the renderer to return information about the given meta tag.
329 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RetrieveMetaTagContent
,
330 GURL
/* expected_url */,
331 std::string
/* tag_name */ )
332 #endif // defined(OS_ANDROID)
334 // chrome.principals messages ------------------------------------------------
336 // Message sent from the renderer to the browser to get the list of browser
337 // managed accounts for the given origin.
338 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts
,
339 GURL
/* current URL */,
340 std::vector
<std::string
> /* managed accounts */)
342 // Message sent from the renderer to the browser to show the browser account
344 IPC_MESSAGE_CONTROL0(ChromeViewHostMsg_ShowBrowserAccountManagementUI
)
346 // JavaScript related messages -----------------------------------------------
348 // Provides the renderer with the results of the browser's investigation into
349 // why a recent main frame load failed (currently, just DNS probe result).
350 // NetErrorHelper will receive this mesage and replace or update the error
351 // page with more specific troubleshooting suggestions.
352 IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo
,
353 int /* DNS probe status */)
355 // Provides the information needed by the renderer process to contact a
356 // navigation correction service. Handled by the NetErrorHelper.
357 IPC_MESSAGE_ROUTED5(ChromeViewMsg_SetNavigationCorrectionInfo
,
358 GURL
/* Navigation correction service base URL */,
359 std::string
/* language */,
360 std::string
/* origin_country */,
361 std::string
/* API key to use */,
362 GURL
/* Google Search URL to use */)
364 //-----------------------------------------------------------------------------
366 // These are messages sent from the renderer to the browser process.
368 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats
,
369 blink::WebCache::UsageStats
/* stats */)
371 // Sent by the renderer process to check whether access to FileSystem is
372 // granted by content settings.
373 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_RequestFileSystemAccessSync
,
374 int /* render_frame_id */,
375 GURL
/* origin_url */,
376 GURL
/* top origin url */,
379 // Return information about a plugin for the given URL and MIME type.
380 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows
381 // about specific reasons why a plugin can't be used, for example because it's
383 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo
,
384 int /* render_frame_id */,
386 GURL
/* top origin url */,
387 std::string
/* mime_type */,
388 ChromeViewHostMsg_GetPluginInfo_Output
/* output */)
390 #if defined(ENABLE_PEPPER_CDMS)
391 // Returns whether any internal plugin supporting |mime_type| is registered and
392 // enabled. Does not determine whether the plugin can actually be instantiated
393 // (e.g. whether it has all its dependencies).
394 // When the returned *|is_available| is true, |additional_param_names| and
395 // |additional_param_values| contain the name-value pairs, if any, specified
396 // for the *first* non-disabled plugin found that is registered for |mime_type|.
397 IPC_SYNC_MESSAGE_CONTROL1_3(
398 ChromeViewHostMsg_IsInternalPluginAvailableForMimeType
,
399 std::string
/* mime_type */,
400 bool /* is_available */,
401 std::vector
<base::string16
> /* additional_param_names */,
402 std::vector
<base::string16
> /* additional_param_values */)
405 #if defined(ENABLE_PLUGIN_INSTALLATION)
406 // Notifies the browser that a missing plugin placeholder has been removed, so
407 // the corresponding PluginPlaceholderHost can be deleted.
408 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost
,
409 int /* placeholder_id */)
411 // Notifies a missing plugin placeholder that a plugin with name |plugin_name|
413 IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin
,
414 base::string16
/* plugin_name */)
416 // Notifies a missing plugin placeholder that no plugin has been found.
417 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin
)
419 // Notifies a missing plugin placeholder that we have started downloading
421 IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin
)
423 // Notifies a missing plugin placeholder that we have finished downloading
425 IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin
)
427 // Notifies a missing plugin placeholder that there was an error downloading
429 IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin
,
430 std::string
/* message */)
431 #endif // defined(ENABLE_PLUGIN_INSTALLATION)
433 // Notifies a missing plugin placeholder that the user cancelled downloading
435 IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin
)
437 // Tells the browser to open chrome://plugins in a new tab. We use a separate
438 // message because renderer processes aren't allowed to directly navigate to
440 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins
)
442 // Tells the browser that there was an error loading a plugin.
443 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin
,
444 base::FilePath
/* plugin_path */)
446 // Tells the browser that we blocked a plugin because NPAPI is not supported.
447 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported
,
448 std::string
/* identifer */)
450 // Asks the renderer whether an app banner should be shown. It will reply with
451 // ChromeViewHostMsg_AppBannerPromptReply.
452 IPC_MESSAGE_ROUTED2(ChromeViewMsg_AppBannerPromptRequest
,
453 int /* request_id */,
454 std::string
/* platform */)
456 // Tells the renderer that a banner has been accepted.
457 IPC_MESSAGE_ROUTED2(ChromeViewMsg_AppBannerAccepted
,
458 int32_t /* request_id */,
459 std::string
/* platform */)
461 // Tells the renderer that a banner has been dismissed.
462 IPC_MESSAGE_ROUTED1(ChromeViewMsg_AppBannerDismissed
,
463 int32_t /* request_id */)
465 // Notification that the page has an OpenSearch description document
466 // associated with it.
467 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD
,
470 search_provider::OSDDType
)
472 // Find out if the given url's security origin is installed as a search
474 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState
,
476 GURL
/* inquiry url */,
477 search_provider::InstallState
/* install */)
479 // Sends back stats about the V8 heap.
480 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats
,
481 int /* size of heap (allocated from the OS) */,
482 int /* bytes in use */)
484 // Notifies when a plugin couldn't be loaded because it's outdated.
485 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin
,
486 int /* placeholder ID */,
487 std::string
/* plugin group identifier */)
489 // Notifies when a plugin couldn't be loaded because it requires
490 // user authorization.
491 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin
,
492 base::string16
/* name */,
493 std::string
/* plugin group identifier */)
495 // Provide the browser process with information about the WebCore resource
496 // cache and current renderer framerate.
497 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats
,
498 blink::WebCache::ResourceTypeStats
)
500 // Message sent from the renderer to the browser to notify it of a
501 // window.print() call which should cancel the prerender. The message is sent
502 // only when the renderer is prerendering.
503 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting
)
505 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_DidGetWebApplicationInfo
,
508 #if defined(OS_ANDROID)
509 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveMetaTagContent
,
511 std::string
/* tag_name */,
512 std::string
/* tag_content */,
513 GURL
/* expected_url */)
514 #endif // defined(OS_ANDROID)
516 // Logs events from InstantExtended New Tab Pages.
517 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogEvent
,
518 int /* page_seq_no */,
519 NTPLoggingEventType
/* event */,
520 base::TimeDelta
/* time */)
522 // Logs an impression on one of the Most Visited tile on the InstantExtended
524 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedImpression
,
525 int /* page_seq_no */,
527 base::string16
/* provider */)
529 // Logs a navigation on one of the Most Visited tile on the InstantExtended
531 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedNavigation
,
532 int /* page_seq_no */,
534 base::string16
/* provider */)
536 // The Instant page asks whether the user syncs its history.
537 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_HistorySyncCheck
,
538 int /* page_seq_no */)
540 // The Instant page asks for Chrome identity check against |identity|.
541 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ChromeIdentityCheck
,
542 int /* page_seq_no */,
543 base::string16
/* identity */)
545 // Tells InstantExtended to set the omnibox focus state.
546 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FocusOmnibox
,
547 int /* page_seq_no */,
548 OmniboxFocusState
/* state */)
550 // Tells InstantExtended to paste text into the omnibox. If text is empty,
551 // the clipboard contents will be pasted. This causes the omnibox dropdown to
553 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PasteAndOpenDropdown
,
554 int /* page_seq_no */,
555 base::string16
/* text to be pasted */)
557 // Tells InstantExtended whether the embedded search API is supported.
558 // See http://dev.chromium.org/embeddedsearch
559 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined
,
560 int /* page_seq_no */,
563 // Tells InstantExtended to delete a most visited item.
564 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem
,
565 int /* page_seq_no */,
568 // Tells InstantExtended to navigate the active tab to a possibly privileged
570 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_SearchBoxNavigate
,
571 int /* page_seq_no */,
572 GURL
/* destination */,
573 WindowOpenDisposition
/* disposition */,
574 bool /*is_most_visited_item_url*/)
576 // Tells InstantExtended to undo all most visited item deletions.
577 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions
,
578 int /* page_seq_no */)
580 // Tells InstantExtended to undo one most visited item deletion.
581 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion
,
582 int /* page_seq_no */,
585 // Tells InstantExtended whether the page supports voice search.
586 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetVoiceSearchSupported
,
587 int /* page_seq_no */,
588 bool /* supported */)
590 // Tells the renderer a list of URLs which should be bounced back to the browser
591 // process so that they can be assigned to an Instant renderer.
592 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs
,
593 std::vector
<GURL
> /* search_urls */,
594 GURL
/* new_tab_page_url */)
596 #if defined(ENABLE_PLUGINS)
597 // Sent by the renderer to check if crash reporting is enabled.
598 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled
,
602 // Tells the browser process whether the web page wants the banner to be shown.
603 // This is a reply from ChromeViewMsg_AppBannerPromptRequest.
604 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_AppBannerPromptReply
,
605 int /* request_id */,
606 blink::WebAppBannerPromptReply
/* reply */)
608 // Sent by the renderer to indicate that a fields trial has been activated.
609 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_FieldTrialActivated
,
610 std::string
/* name */)
612 // Record a sample string to a Rappor metric.
613 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor
,
614 std::string
/* metric */,
615 std::string
/* sample */)
617 // Record a domain and registry of a url to a Rappor metric.
618 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL
,
619 std::string
/* metric */,
620 GURL
/* sample url */)