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/values.h"
18 #include "build/build_config.h"
19 #include "chrome/common/common_param_traits.h"
20 #include "chrome/common/instant_types.h"
21 #include "chrome/common/ntp_logging_events.h"
22 #include "chrome/common/omnibox_focus_state.h"
23 #include "chrome/common/search_provider.h"
24 #include "chrome/common/web_application_info.h"
25 #include "components/content_settings/core/common/content_settings.h"
26 #include "components/content_settings/core/common/content_settings_pattern.h"
27 #include "components/content_settings/core/common/content_settings_types.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/web/WebCache.h"
36 #include "third_party/WebKit/public/web/WebConsoleMessage.h"
37 #include "third_party/skia/include/core/SkBitmap.h"
38 #include "ui/base/window_open_disposition.h"
39 #include "ui/gfx/geometry/rect.h"
40 #include "ui/gfx/ipc/gfx_param_traits.h"
42 // Singly-included section for enums and custom IPC traits.
43 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_
44 #define CHROME_COMMON_RENDER_MESSAGES_H_
46 // This enum is inside a struct so that we can forward-declare the struct in
47 // others headers without having to include this one.
48 struct ChromeViewHostMsg_GetPluginInfo_Status
{
58 kPlayImportantContent
,
62 ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed
) {}
70 struct ParamTraits
<ContentSettingsPattern
> {
71 typedef ContentSettingsPattern param_type
;
72 static void Write(Message
* m
, const param_type
& p
);
73 static bool Read(const Message
* m
, PickleIterator
* iter
, param_type
* r
);
74 static void Log(const param_type
& p
, std::string
* l
);
79 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
81 #define IPC_MESSAGE_START ChromeMsgStart
83 IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status::Value
,
84 ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized
)
85 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusChangeReason
,
86 OMNIBOX_FOCUS_CHANGE_REASON_LAST
)
87 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusState
, OMNIBOX_FOCUS_STATE_LAST
)
88 IPC_ENUM_TRAITS_MAX_VALUE(search_provider::OSDDType
,
89 search_provider::OSDD_TYPE_LAST
)
90 IPC_ENUM_TRAITS(search_provider::InstallState
)
91 IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment
)
92 IPC_ENUM_TRAITS(ThemeBackgroundImageTiling
)
93 IPC_ENUM_TRAITS(blink::WebConsoleMessage::Level
)
94 IPC_ENUM_TRAITS(content::TopControlsState
)
96 IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status
)
97 IPC_STRUCT_TRAITS_MEMBER(value
)
98 IPC_STRUCT_TRAITS_END()
100 // Output parameters for ChromeViewHostMsg_GetPluginInfo message.
101 IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output
)
102 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status
, status
)
103 IPC_STRUCT_MEMBER(content::WebPluginInfo
, plugin
)
104 IPC_STRUCT_MEMBER(std::string
, actual_mime_type
)
105 IPC_STRUCT_MEMBER(std::string
, group_identifier
)
106 IPC_STRUCT_MEMBER(base::string16
, group_name
)
109 IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts
)
110 IPC_STRUCT_TRAITS_MEMBER(scheme
)
111 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard
)
112 IPC_STRUCT_TRAITS_MEMBER(host
)
113 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard
)
114 IPC_STRUCT_TRAITS_MEMBER(port
)
115 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard
)
116 IPC_STRUCT_TRAITS_MEMBER(path
)
117 IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard
)
118 IPC_STRUCT_TRAITS_END()
120 IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource
)
121 IPC_STRUCT_TRAITS_MEMBER(primary_pattern
)
122 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern
)
123 IPC_STRUCT_TRAITS_MEMBER(setting
)
124 IPC_STRUCT_TRAITS_MEMBER(source
)
125 IPC_STRUCT_TRAITS_MEMBER(incognito
)
126 IPC_STRUCT_TRAITS_END()
128 IPC_STRUCT_TRAITS_BEGIN(EmbeddedSearchRequestParams
)
129 IPC_STRUCT_TRAITS_MEMBER(search_query
)
130 IPC_STRUCT_TRAITS_MEMBER(original_query
)
131 IPC_STRUCT_TRAITS_MEMBER(rlz_parameter_value
)
132 IPC_STRUCT_TRAITS_MEMBER(input_encoding
)
133 IPC_STRUCT_TRAITS_MEMBER(assisted_query_stats
)
134 IPC_STRUCT_TRAITS_END()
136 IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion
)
137 IPC_STRUCT_TRAITS_MEMBER(text
)
138 IPC_STRUCT_TRAITS_MEMBER(metadata
)
139 IPC_STRUCT_TRAITS_END()
141 IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem
)
142 IPC_STRUCT_TRAITS_MEMBER(url
)
143 IPC_STRUCT_TRAITS_MEMBER(title
)
144 IPC_STRUCT_TRAITS_END()
146 IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules
)
147 IPC_STRUCT_TRAITS_MEMBER(image_rules
)
148 IPC_STRUCT_TRAITS_MEMBER(script_rules
)
149 IPC_STRUCT_TRAITS_END()
151 IPC_STRUCT_TRAITS_BEGIN(RGBAColor
)
152 IPC_STRUCT_TRAITS_MEMBER(r
)
153 IPC_STRUCT_TRAITS_MEMBER(g
)
154 IPC_STRUCT_TRAITS_MEMBER(b
)
155 IPC_STRUCT_TRAITS_MEMBER(a
)
156 IPC_STRUCT_TRAITS_END()
158 IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo
)
159 IPC_STRUCT_TRAITS_MEMBER(using_default_theme
)
160 IPC_STRUCT_TRAITS_MEMBER(background_color
)
161 IPC_STRUCT_TRAITS_MEMBER(text_color
)
162 IPC_STRUCT_TRAITS_MEMBER(link_color
)
163 IPC_STRUCT_TRAITS_MEMBER(text_color_light
)
164 IPC_STRUCT_TRAITS_MEMBER(header_color
)
165 IPC_STRUCT_TRAITS_MEMBER(section_border_color
)
166 IPC_STRUCT_TRAITS_MEMBER(theme_id
)
167 IPC_STRUCT_TRAITS_MEMBER(image_horizontal_alignment
)
168 IPC_STRUCT_TRAITS_MEMBER(image_vertical_alignment
)
169 IPC_STRUCT_TRAITS_MEMBER(image_tiling
)
170 IPC_STRUCT_TRAITS_MEMBER(image_height
)
171 IPC_STRUCT_TRAITS_MEMBER(has_attribution
)
172 IPC_STRUCT_TRAITS_MEMBER(logo_alternate
)
173 IPC_STRUCT_TRAITS_END()
175 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStat
)
176 IPC_STRUCT_TRAITS_MEMBER(count
)
177 IPC_STRUCT_TRAITS_MEMBER(size
)
178 IPC_STRUCT_TRAITS_MEMBER(liveSize
)
179 IPC_STRUCT_TRAITS_MEMBER(decodedSize
)
180 IPC_STRUCT_TRAITS_END()
182 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStats
)
183 IPC_STRUCT_TRAITS_MEMBER(images
)
184 IPC_STRUCT_TRAITS_MEMBER(cssStyleSheets
)
185 IPC_STRUCT_TRAITS_MEMBER(scripts
)
186 IPC_STRUCT_TRAITS_MEMBER(xslStyleSheets
)
187 IPC_STRUCT_TRAITS_MEMBER(fonts
)
188 IPC_STRUCT_TRAITS_END()
190 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::UsageStats
)
191 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity
)
192 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity
)
193 IPC_STRUCT_TRAITS_MEMBER(capacity
)
194 IPC_STRUCT_TRAITS_MEMBER(liveSize
)
195 IPC_STRUCT_TRAITS_MEMBER(deadSize
)
196 IPC_STRUCT_TRAITS_END()
198 IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType
,
201 IPC_ENUM_TRAITS_MAX_VALUE(WebApplicationInfo::MobileCapable
,
202 WebApplicationInfo::MOBILE_CAPABLE_APPLE
)
204 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo
)
205 IPC_STRUCT_TRAITS_MEMBER(url
)
206 IPC_STRUCT_TRAITS_MEMBER(width
)
207 IPC_STRUCT_TRAITS_MEMBER(height
)
208 IPC_STRUCT_TRAITS_MEMBER(data
)
209 IPC_STRUCT_TRAITS_END()
211 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo
)
212 IPC_STRUCT_TRAITS_MEMBER(title
)
213 IPC_STRUCT_TRAITS_MEMBER(description
)
214 IPC_STRUCT_TRAITS_MEMBER(app_url
)
215 IPC_STRUCT_TRAITS_MEMBER(icons
)
216 IPC_STRUCT_TRAITS_MEMBER(mobile_capable
)
217 IPC_STRUCT_TRAITS_END()
219 //-----------------------------------------------------------------------------
220 // RenderView messages
221 // These are messages sent from the browser to the renderer process.
223 #if !defined(OS_ANDROID) && !defined(OS_IOS)
224 // For WebUI testing, this message requests JavaScript to be executed at a time
225 // which is late enough to not be thrown out, and early enough to be before
226 // onload events are fired.
227 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript
,
228 base::string16
/* javascript */)
231 // Set the content setting rules stored by the renderer.
232 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules
,
233 RendererContentSettingRules
/* rules */)
235 // Tells the render frame to load all blocked plugins with the given identifier.
236 IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins
,
237 std::string
/* identifier */)
239 // Asks the renderer to send back stats on the WebCore cache broken down by
241 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats
)
243 // Tells the renderer to create a FieldTrial, and by using a 100% probability
244 // for the FieldTrial, forces the FieldTrial to have assigned group name.
245 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup
,
246 std::string
/* field trial name */,
247 std::string
/* group name that was assigned. */)
249 // Asks the renderer to send back V8 heap stats.
250 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats
)
252 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetPageSequenceNumber
,
253 int /* page_seq_no */)
255 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant
)
257 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetDisplayInstantResults
,
258 bool /* display_instant_results */)
260 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFocusChanged
,
261 OmniboxFocusState
/* new_focus_state */,
262 OmniboxFocusChangeReason
/* reason */)
264 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMarginChange
, int /* start */)
266 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged
,
267 std::vector
<InstantMostVisitedItem
> /* items */)
269 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation
,
270 bool /* is_app_launcher_enabled */)
272 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress
,
273 bool /* input_in_progress */)
275 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch
,
276 InstantSuggestion
/* suggestion */)
278 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxSubmit
,
279 base::string16
/* value */,
280 EmbeddedSearchRequestParams
/* params */)
282 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged
,
283 ThemeBackgroundInfo
/* value */)
285 IPC_MESSAGE_ROUTED1(ChromeViewMsg_HistorySyncCheckResult
,
286 bool /* sync_history */)
288 IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult
,
289 base::string16
/* identity */,
290 bool /* identity_match */)
292 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch
)
294 // Sent on process startup to indicate whether this process is running in
296 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess
,
297 bool /* is_incognito_processs */)
299 // Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent.
300 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent
,
303 // Sent in response to ViewHostMsg_DidBlockRunningInsecureContent.
304 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent
,
307 IPC_MESSAGE_ROUTED0(ChromeViewMsg_ReloadFrame
)
309 // Tells the renderer whether or not a file system access has been allowed.
310 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestFileSystemAccessAsyncResponse
,
311 int /* request_id */,
314 // Sent when the profile changes the kSafeBrowsingEnabled preference.
315 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection
,
316 bool /* enable_phishing_detection */)
318 // Asks the renderer for a thumbnail of the image selected by the most
319 // recently opened context menu, if there is one. If the image's area
320 // is greater than thumbnail_min_area it will be downscaled to
321 // be within thumbnail_max_size. The possibly downsampled image will be
322 // returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message.
323 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode
,
324 int /* thumbnail_min_area_pixels */,
325 gfx::Size
/* thumbnail_max_size_pixels */)
327 // Notifies the renderer whether hiding/showing the top controls is enabled,
328 // what the current state should be, and whether or not to animate to the
330 IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState
,
331 content::TopControlsState
/* constraints */,
332 content::TopControlsState
/* current */,
336 // Updates the window features of the render view.
337 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures
,
338 blink::WebWindowFeatures
/* window_features */)
340 // Responds to the request for a thumbnail.
341 // Thumbnail data will be empty is a thumbnail could not be produced.
342 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK
,
343 std::string
/* JPEG-encoded thumbnail data */,
344 gfx::Size
/* original size of the image */)
346 // Requests application info for the page. The renderer responds back with
347 // ChromeViewHostMsg_DidGetWebApplicationInfo.
348 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetWebApplicationInfo
)
350 #if defined(OS_ANDROID)
351 // Asks the renderer to return information about the given meta tag.
352 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RetrieveMetaTagContent
,
353 GURL
/* expected_url */,
354 std::string
/* tag_name */ )
355 #endif // defined(OS_ANDROID)
357 // chrome.principals messages ------------------------------------------------
359 // Message sent from the renderer to the browser to get the list of browser
360 // managed accounts for the given origin.
361 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts
,
362 GURL
/* current URL */,
363 std::vector
<std::string
> /* managed accounts */)
365 // Message sent from the renderer to the browser to show the browser account
367 IPC_MESSAGE_CONTROL0(ChromeViewHostMsg_ShowBrowserAccountManagementUI
)
369 // JavaScript related messages -----------------------------------------------
371 // Tells the frame it is displaying an interstitial page.
372 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial
)
374 // Provides the renderer with the results of the browser's investigation into
375 // why a recent main frame load failed (currently, just DNS probe result).
376 // NetErrorHelper will receive this mesage and replace or update the error
377 // page with more specific troubleshooting suggestions.
378 IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo
,
379 int /* DNS probe status */)
381 // Provides the information needed by the renderer process to contact a
382 // navigation correction service. Handled by the NetErrorHelper.
383 IPC_MESSAGE_ROUTED5(ChromeViewMsg_SetNavigationCorrectionInfo
,
384 GURL
/* Navigation correction service base URL */,
385 std::string
/* language */,
386 std::string
/* origin_country */,
387 std::string
/* API key to use */,
388 GURL
/* Google Search URL to use */)
390 //-----------------------------------------------------------------------------
392 // These are messages sent from the renderer to the browser process.
394 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats
,
395 blink::WebCache::UsageStats
/* stats */)
397 // Tells the browser that content in the current page was blocked due to the
398 // user's content settings.
399 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ContentBlocked
,
400 ContentSettingsType
/* type of blocked content */,
401 base::string16
/* details on blocked content */)
403 // Sent by the renderer process to check whether access to web databases is
404 // granted by content settings.
405 IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase
,
406 int /* render_frame_id */,
407 GURL
/* origin_url */,
408 GURL
/* top origin url */,
409 base::string16
/* database name */,
410 base::string16
/* database display name */,
413 // Sent by the renderer process to check whether access to DOM Storage is
414 // granted by content settings.
415 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage
,
416 int /* render_frame_id */,
417 GURL
/* origin_url */,
418 GURL
/* top origin url */,
419 bool /* if true local storage, otherwise session */,
422 // Sent by the renderer process to check whether access to FileSystem is
423 // granted by content settings.
424 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_RequestFileSystemAccessSync
,
425 int /* render_frame_id */,
426 GURL
/* origin_url */,
427 GURL
/* top origin url */,
430 // Sent by the renderer process to check whether access to FileSystem is
431 // granted by content settings.
432 IPC_MESSAGE_CONTROL4(ChromeViewHostMsg_RequestFileSystemAccessAsync
,
433 int /* render_frame_id */,
434 int /* request_id */,
435 GURL
/* origin_url */,
436 GURL
/* top origin url */)
438 // Sent by the renderer process to check whether access to Indexed DBis
439 // granted by content settings.
440 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB
,
441 int /* render_frame_id */,
442 GURL
/* origin_url */,
443 GURL
/* top origin url */,
444 base::string16
/* database name */,
447 // Return information about a plugin for the given URL and MIME type.
448 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows
449 // about specific reasons why a plug-in can't be used, for example because it's
451 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo
,
452 int /* render_frame_id */,
454 GURL
/* top origin url */,
455 std::string
/* mime_type */,
456 ChromeViewHostMsg_GetPluginInfo_Output
/* output */)
458 #if defined(ENABLE_PEPPER_CDMS)
459 // Returns whether any internal plugin supporting |mime_type| is registered and
460 // enabled. Does not determine whether the plugin can actually be instantiated
461 // (e.g. whether it has all its dependencies).
462 // When the returned *|is_available| is true, |additional_param_names| and
463 // |additional_param_values| contain the name-value pairs, if any, specified
464 // for the *first* non-disabled plugin found that is registered for |mime_type|.
465 IPC_SYNC_MESSAGE_CONTROL1_3(
466 ChromeViewHostMsg_IsInternalPluginAvailableForMimeType
,
467 std::string
/* mime_type */,
468 bool /* is_available */,
469 std::vector
<base::string16
> /* additional_param_names */,
470 std::vector
<base::string16
> /* additional_param_values */)
473 #if defined(ENABLE_PLUGIN_INSTALLATION)
474 // Tells the browser to search for a plug-in that can handle the given MIME
475 // type. The result will be sent asynchronously to the routing ID
477 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin
,
478 int /* placeholder_id */,
479 std::string
/* mime_type */)
481 // Notifies the browser that a missing plug-in placeholder has been removed, so
482 // the corresponding PluginPlaceholderHost can be deleted.
483 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost
,
484 int /* placeholder_id */)
486 // Notifies a missing plug-in placeholder that a plug-in with name |plugin_name|
488 IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin
,
489 base::string16
/* plugin_name */)
491 // Notifies a missing plug-in placeholder that no plug-in has been found.
492 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin
)
494 // Notifies a missing plug-in placeholder that we have started downloading
496 IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin
)
498 // Notifies a missing plug-in placeholder that we have finished downloading
500 IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin
)
502 // Notifies a missing plug-in placeholder that there was an error downloading
504 IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin
,
505 std::string
/* message */)
506 #endif // defined(ENABLE_PLUGIN_INSTALLATION)
508 // Notifies a missing plug-in placeholder that the user cancelled downloading
510 IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin
)
512 // Tells the browser to open chrome://plugins in a new tab. We use a separate
513 // message because renderer processes aren't allowed to directly navigate to
515 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins
)
517 // Tells the browser that there was an error loading a plug-in.
518 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin
,
519 base::FilePath
/* plugin_path */)
521 // Tells the browser that we blocked a plug-in because NPAPI is not supported.
522 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported
,
523 std::string
/* identifer */)
525 // Tells the renderer that the NPAPI cannot be used. For example Ash on windows.
526 IPC_MESSAGE_ROUTED0(ChromeViewMsg_NPAPINotSupported
)
528 // Notification that the page has an OpenSearch description document
529 // associated with it.
530 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD
,
533 search_provider::OSDDType
)
535 // Find out if the given url's security origin is installed as a search
537 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState
,
539 GURL
/* inquiry url */,
540 search_provider::InstallState
/* install */)
542 // Sends back stats about the V8 heap.
543 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats
,
544 int /* size of heap (allocated from the OS) */,
545 int /* bytes in use */)
547 // Notifies when a plugin couldn't be loaded because it's outdated.
548 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin
,
549 int /* placeholder ID */,
550 std::string
/* plug-in group identifier */)
552 // Notifies when a plugin couldn't be loaded because it requires
553 // user authorization.
554 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin
,
555 base::string16
/* name */,
556 std::string
/* plug-in group identifier */)
558 // Provide the browser process with information about the WebCore resource
559 // cache and current renderer framerate.
560 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats
,
561 blink::WebCache::ResourceTypeStats
)
563 // Message sent from the renderer to the browser to notify it of a
564 // window.print() call which should cancel the prerender. The message is sent
565 // only when the renderer is prerendering.
566 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting
)
568 // Sent when the renderer was prevented from displaying insecure content in
569 // a secure page by a security policy. The page may appear incomplete.
570 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent
)
572 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_DidGetWebApplicationInfo
,
575 #if defined(OS_ANDROID)
576 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveMetaTagContent
,
578 std::string
/* tag_name */,
579 std::string
/* tag_content */,
580 GURL
/* expected_url */)
581 #endif // defined(OS_ANDROID)
583 // Logs events from InstantExtended New Tab Pages.
584 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_LogEvent
,
585 int /* page_seq_no */,
586 NTPLoggingEventType
/* event */)
588 // Logs an impression on one of the Most Visited tile on the InstantExtended
590 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedImpression
,
591 int /* page_seq_no */,
593 base::string16
/* provider */)
595 // Logs a navigation on one of the Most Visited tile on the InstantExtended
597 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedNavigation
,
598 int /* page_seq_no */,
600 base::string16
/* provider */)
602 // The Instant page asks whether the user syncs its history.
603 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_HistorySyncCheck
,
604 int /* page_seq_no */)
606 // The Instant page asks for Chrome identity check against |identity|.
607 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ChromeIdentityCheck
,
608 int /* page_seq_no */,
609 base::string16
/* identity */)
611 // Tells InstantExtended to set the omnibox focus state.
612 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FocusOmnibox
,
613 int /* page_seq_no */,
614 OmniboxFocusState
/* state */)
616 // Tells InstantExtended to paste text into the omnibox. If text is empty,
617 // the clipboard contents will be pasted. This causes the omnibox dropdown to
619 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PasteAndOpenDropdown
,
620 int /* page_seq_no */,
621 base::string16
/* text to be pasted */)
623 // Tells InstantExtended whether the embedded search API is supported.
624 // See http://dev.chromium.org/embeddedsearch
625 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined
,
626 int /* page_seq_no */,
629 // Tells InstantExtended to delete a most visited item.
630 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem
,
631 int /* page_seq_no */,
634 // Tells InstantExtended to navigate the active tab to a possibly privileged
636 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_SearchBoxNavigate
,
637 int /* page_seq_no */,
638 GURL
/* destination */,
639 WindowOpenDisposition
/* disposition */,
640 bool /*is_most_visited_item_url*/)
642 // Tells InstantExtended to undo all most visited item deletions.
643 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions
,
644 int /* page_seq_no */)
646 // Tells InstantExtended to undo one most visited item deletion.
647 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion
,
648 int /* page_seq_no */,
651 // Tells InstantExtended whether the page supports voice search.
652 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetVoiceSearchSupported
,
653 int /* page_seq_no */,
654 bool /* supported */)
656 // Tells the renderer a list of URLs which should be bounced back to the browser
657 // process so that they can be assigned to an Instant renderer.
658 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs
,
659 std::vector
<GURL
> /* search_urls */,
660 GURL
/* new_tab_page_url */)
662 #if defined(ENABLE_PLUGINS)
663 // Sent by the renderer to check if crash reporting is enabled.
664 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled
,
668 // Sent by the renderer to indicate that a fields trial has been activated.
669 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_FieldTrialActivated
,
670 std::string
/* name */)