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
, base::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 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetPageSequenceNumber
,
242 int /* page_seq_no */)
244 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant
)
246 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetDisplayInstantResults
,
247 bool /* display_instant_results */)
249 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFocusChanged
,
250 OmniboxFocusState
/* new_focus_state */,
251 OmniboxFocusChangeReason
/* reason */)
253 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMarginChange
, int /* start */)
255 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged
,
256 std::vector
<InstantMostVisitedItem
> /* items */)
258 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation
,
259 bool /* is_app_launcher_enabled */)
261 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress
,
262 bool /* input_in_progress */)
264 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch
,
265 InstantSuggestion
/* suggestion */)
267 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxSubmit
,
268 base::string16
/* value */,
269 EmbeddedSearchRequestParams
/* params */)
271 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged
,
272 ThemeBackgroundInfo
/* value */)
274 IPC_MESSAGE_ROUTED1(ChromeViewMsg_HistorySyncCheckResult
,
275 bool /* sync_history */)
277 IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult
,
278 base::string16
/* identity */,
279 bool /* identity_match */)
281 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch
)
283 // Sent on process startup to indicate whether this process is running in
285 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess
,
286 bool /* is_incognito_processs */)
288 // Sent when the profile changes the kSafeBrowsingEnabled preference.
289 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection
,
290 bool /* enable_phishing_detection */)
292 // Reloads the image selected by the most recently opened context menu
293 // (if there indeed is an image at that location).
294 IPC_MESSAGE_ROUTED0(ChromeViewMsg_RequestReloadImageForContextNode
)
296 // Asks the renderer for a thumbnail of the image selected by the most
297 // recently opened context menu, if there is one. If the image's area
298 // is greater than thumbnail_min_area it will be downscaled to
299 // be within thumbnail_max_size. The possibly downsampled image will be
300 // returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message.
301 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode
,
302 int /* thumbnail_min_area_pixels */,
303 gfx::Size
/* thumbnail_max_size_pixels */)
305 // Notifies the renderer whether hiding/showing the top controls is enabled,
306 // what the current state should be, and whether or not to animate to the
308 IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState
,
309 content::TopControlsState
/* constraints */,
310 content::TopControlsState
/* current */,
314 // Updates the window features of the render view.
315 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures
,
316 blink::WebWindowFeatures
/* window_features */)
318 // Responds to the request for a thumbnail.
319 // Thumbnail data will be empty is a thumbnail could not be produced.
320 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK
,
321 std::string
/* JPEG-encoded thumbnail data */,
322 gfx::Size
/* original size of the image */)
324 // Requests application info for the page. The renderer responds back with
325 // ChromeViewHostMsg_DidGetWebApplicationInfo.
326 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetWebApplicationInfo
)
328 #if defined(OS_ANDROID)
329 // Asks the renderer to return information about the given meta tag.
330 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RetrieveMetaTagContent
,
331 GURL
/* expected_url */,
332 std::string
/* tag_name */ )
333 #endif // defined(OS_ANDROID)
335 // chrome.principals messages ------------------------------------------------
337 // Message sent from the renderer to the browser to get the list of browser
338 // managed accounts for the given origin.
339 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts
,
340 GURL
/* current URL */,
341 std::vector
<std::string
> /* managed accounts */)
343 // Message sent from the renderer to the browser to show the browser account
345 IPC_MESSAGE_CONTROL0(ChromeViewHostMsg_ShowBrowserAccountManagementUI
)
347 // JavaScript related messages -----------------------------------------------
349 // Provides the renderer with the results of the browser's investigation into
350 // why a recent main frame load failed (currently, just DNS probe result).
351 // NetErrorHelper will receive this mesage and replace or update the error
352 // page with more specific troubleshooting suggestions.
353 IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo
,
354 int /* DNS probe status */)
356 // Provides the information needed by the renderer process to contact a
357 // navigation correction service. Handled by the NetErrorHelper.
358 IPC_MESSAGE_ROUTED5(ChromeViewMsg_SetNavigationCorrectionInfo
,
359 GURL
/* Navigation correction service base URL */,
360 std::string
/* language */,
361 std::string
/* origin_country */,
362 std::string
/* API key to use */,
363 GURL
/* Google Search URL to use */)
365 //-----------------------------------------------------------------------------
367 // These are messages sent from the renderer to the browser process.
369 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats
,
370 blink::WebCache::UsageStats
/* stats */)
372 // Sent by the renderer process to check whether access to FileSystem is
373 // granted by content settings.
374 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_RequestFileSystemAccessSync
,
375 int /* render_frame_id */,
376 GURL
/* origin_url */,
377 GURL
/* top origin url */,
380 // Return information about a plugin for the given URL and MIME type.
381 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows
382 // about specific reasons why a plugin can't be used, for example because it's
384 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo
,
385 int /* render_frame_id */,
387 GURL
/* top origin url */,
388 std::string
/* mime_type */,
389 ChromeViewHostMsg_GetPluginInfo_Output
/* output */)
391 #if defined(ENABLE_PEPPER_CDMS)
392 // Returns whether any internal plugin supporting |mime_type| is registered and
393 // enabled. Does not determine whether the plugin can actually be instantiated
394 // (e.g. whether it has all its dependencies).
395 // When the returned *|is_available| is true, |additional_param_names| and
396 // |additional_param_values| contain the name-value pairs, if any, specified
397 // for the *first* non-disabled plugin found that is registered for |mime_type|.
398 IPC_SYNC_MESSAGE_CONTROL1_3(
399 ChromeViewHostMsg_IsInternalPluginAvailableForMimeType
,
400 std::string
/* mime_type */,
401 bool /* is_available */,
402 std::vector
<base::string16
> /* additional_param_names */,
403 std::vector
<base::string16
> /* additional_param_values */)
406 #if defined(ENABLE_PLUGIN_INSTALLATION)
407 // Notifies the browser that a missing plugin placeholder has been removed, so
408 // the corresponding PluginPlaceholderHost can be deleted.
409 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost
,
410 int /* placeholder_id */)
412 // Notifies a missing plugin placeholder that a plugin with name |plugin_name|
414 IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin
,
415 base::string16
/* plugin_name */)
417 // Notifies a missing plugin placeholder that no plugin has been found.
418 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin
)
420 // Notifies a missing plugin placeholder that we have started downloading
422 IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin
)
424 // Notifies a missing plugin placeholder that we have finished downloading
426 IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin
)
428 // Notifies a missing plugin placeholder that there was an error downloading
430 IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin
,
431 std::string
/* message */)
432 #endif // defined(ENABLE_PLUGIN_INSTALLATION)
434 // Notifies a missing plugin placeholder that the user cancelled downloading
436 IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin
)
438 // Tells the browser to open chrome://plugins in a new tab. We use a separate
439 // message because renderer processes aren't allowed to directly navigate to
441 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins
)
443 // Tells the browser that there was an error loading a plugin.
444 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin
,
445 base::FilePath
/* plugin_path */)
447 // Tells the browser that we blocked a plugin because NPAPI is not supported.
448 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported
,
449 std::string
/* identifer */)
451 // Asks the renderer whether an app banner should be shown. It will reply with
452 // ChromeViewHostMsg_AppBannerPromptReply.
453 IPC_MESSAGE_ROUTED2(ChromeViewMsg_AppBannerPromptRequest
,
454 int /* request_id */,
455 std::string
/* platform */)
457 // Tells the renderer that a banner has been accepted.
458 IPC_MESSAGE_ROUTED2(ChromeViewMsg_AppBannerAccepted
,
459 int32_t /* request_id */,
460 std::string
/* platform */)
462 // Tells the renderer that a banner has been dismissed.
463 IPC_MESSAGE_ROUTED1(ChromeViewMsg_AppBannerDismissed
,
464 int32_t /* request_id */)
466 // Asks the renderer to log a debug message to console regarding an
468 IPC_MESSAGE_ROUTED1(ChromeViewMsg_AppBannerDebugMessageRequest
,
469 std::string
/* message */)
471 // Notification that the page has an OpenSearch description document
472 // associated with it.
473 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD
,
476 search_provider::OSDDType
)
478 // Find out if the given url's security origin is installed as a search
480 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState
,
482 GURL
/* inquiry url */,
483 search_provider::InstallState
/* install */)
485 // Notifies when a plugin couldn't be loaded because it's outdated.
486 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin
,
487 int /* placeholder ID */,
488 std::string
/* plugin group identifier */)
490 // Notifies when a plugin couldn't be loaded because it requires
491 // user authorization.
492 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin
,
493 base::string16
/* name */,
494 std::string
/* plugin group identifier */)
496 // Provide the browser process with information about the WebCore resource
497 // cache and current renderer framerate.
498 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats
,
499 blink::WebCache::ResourceTypeStats
)
501 // Message sent from the renderer to the browser to notify it of a
502 // window.print() call which should cancel the prerender. The message is sent
503 // only when the renderer is prerendering.
504 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting
)
506 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_DidGetWebApplicationInfo
,
509 #if defined(OS_ANDROID)
510 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveMetaTagContent
,
512 std::string
/* tag_name */,
513 std::string
/* tag_content */,
514 GURL
/* expected_url */)
515 #endif // defined(OS_ANDROID)
517 // Logs events from InstantExtended New Tab Pages.
518 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogEvent
,
519 int /* page_seq_no */,
520 NTPLoggingEventType
/* event */,
521 base::TimeDelta
/* time */)
523 // Logs an impression on one of the Most Visited tile on the InstantExtended
525 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedImpression
,
526 int /* page_seq_no */,
528 base::string16
/* provider */)
530 // Logs a navigation on one of the Most Visited tile on the InstantExtended
532 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedNavigation
,
533 int /* page_seq_no */,
535 base::string16
/* provider */)
537 // The Instant page asks whether the user syncs its history.
538 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_HistorySyncCheck
,
539 int /* page_seq_no */)
541 // The Instant page asks for Chrome identity check against |identity|.
542 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ChromeIdentityCheck
,
543 int /* page_seq_no */,
544 base::string16
/* identity */)
546 // Tells InstantExtended to set the omnibox focus state.
547 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FocusOmnibox
,
548 int /* page_seq_no */,
549 OmniboxFocusState
/* state */)
551 // Tells InstantExtended to paste text into the omnibox. If text is empty,
552 // the clipboard contents will be pasted. This causes the omnibox dropdown to
554 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PasteAndOpenDropdown
,
555 int /* page_seq_no */,
556 base::string16
/* text to be pasted */)
558 // Tells InstantExtended whether the embedded search API is supported.
559 // See http://dev.chromium.org/embeddedsearch
560 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined
,
561 int /* page_seq_no */,
564 // Tells InstantExtended to delete a most visited item.
565 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem
,
566 int /* page_seq_no */,
569 // Tells InstantExtended to navigate the active tab to a possibly privileged
571 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_SearchBoxNavigate
,
572 int /* page_seq_no */,
573 GURL
/* destination */,
574 WindowOpenDisposition
/* disposition */,
575 bool /*is_most_visited_item_url*/)
577 // Tells InstantExtended to undo all most visited item deletions.
578 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions
,
579 int /* page_seq_no */)
581 // Tells InstantExtended to undo one most visited item deletion.
582 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion
,
583 int /* page_seq_no */,
586 // Tells InstantExtended whether the page supports voice search.
587 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetVoiceSearchSupported
,
588 int /* page_seq_no */,
589 bool /* supported */)
591 // Tells the renderer a list of URLs which should be bounced back to the browser
592 // process so that they can be assigned to an Instant renderer.
593 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs
,
594 std::vector
<GURL
> /* search_urls */,
595 GURL
/* new_tab_page_url */)
597 #if defined(ENABLE_PLUGINS)
598 // Sent by the renderer to check if crash reporting is enabled.
599 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled
,
603 // Tells the browser process whether the web page wants the banner to be shown.
604 // This is a reply from ChromeViewMsg_AppBannerPromptRequest.
605 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_AppBannerPromptReply
,
606 int /* request_id */,
607 blink::WebAppBannerPromptReply
/* reply */)
609 // Sent by the renderer to indicate that a fields trial has been activated.
610 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_FieldTrialActivated
,
611 std::string
/* name */)
613 // Record a sample string to a Rappor metric.
614 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor
,
615 std::string
/* metric */,
616 std::string
/* sample */)
618 // Record a domain and registry of a url to a Rappor metric.
619 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL
,
620 std::string
/* metric */,
621 GURL
/* sample url */)