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/content_settings/core/common/content_settings_types.h"
29 #include "components/nacl/common/nacl_types.h"
30 #include "content/public/common/common_param_traits.h"
31 #include "content/public/common/referrer.h"
32 #include "content/public/common/top_controls_state.h"
33 #include "ipc/ipc_channel_handle.h"
34 #include "ipc/ipc_message_macros.h"
35 #include "ipc/ipc_platform_file.h"
36 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerPromptReply.h"
37 #include "third_party/WebKit/public/web/WebCache.h"
38 #include "third_party/WebKit/public/web/WebConsoleMessage.h"
39 #include "third_party/skia/include/core/SkBitmap.h"
40 #include "ui/base/window_open_disposition.h"
41 #include "ui/gfx/geometry/rect.h"
42 #include "ui/gfx/ipc/gfx_param_traits.h"
44 // Singly-included section for enums and custom IPC traits.
45 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_
46 #define CHROME_COMMON_RENDER_MESSAGES_H_
48 // This enum is inside a struct so that we can forward-declare the struct in
49 // others headers without having to include this one.
50 struct ChromeViewHostMsg_GetPluginInfo_Status
{
60 kPlayImportantContent
,
64 ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed
) {}
72 struct ParamTraits
<ContentSettingsPattern
> {
73 typedef ContentSettingsPattern param_type
;
74 static void Write(Message
* m
, const param_type
& p
);
75 static bool Read(const Message
* m
, PickleIterator
* iter
, param_type
* r
);
76 static void Log(const param_type
& p
, std::string
* l
);
81 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
83 #define IPC_MESSAGE_START ChromeMsgStart
85 IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status::Value
,
86 ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized
)
87 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusChangeReason
,
88 OMNIBOX_FOCUS_CHANGE_REASON_LAST
)
89 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusState
, OMNIBOX_FOCUS_STATE_LAST
)
90 IPC_ENUM_TRAITS_MAX_VALUE(search_provider::OSDDType
,
91 search_provider::OSDD_TYPE_LAST
)
92 IPC_ENUM_TRAITS(search_provider::InstallState
)
93 IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment
)
94 IPC_ENUM_TRAITS(ThemeBackgroundImageTiling
)
95 IPC_ENUM_TRAITS(blink::WebConsoleMessage::Level
)
96 IPC_ENUM_TRAITS(content::TopControlsState
)
98 IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status
)
99 IPC_STRUCT_TRAITS_MEMBER(value
)
100 IPC_STRUCT_TRAITS_END()
102 // Output parameters for ChromeViewHostMsg_GetPluginInfo message.
103 IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output
)
104 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status
, status
)
105 IPC_STRUCT_MEMBER(content::WebPluginInfo
, plugin
)
106 IPC_STRUCT_MEMBER(std::string
, actual_mime_type
)
107 IPC_STRUCT_MEMBER(std::string
, group_identifier
)
108 IPC_STRUCT_MEMBER(base::string16
, group_name
)
111 IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts
)
112 IPC_STRUCT_TRAITS_MEMBER(scheme
)
113 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard
)
114 IPC_STRUCT_TRAITS_MEMBER(host
)
115 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard
)
116 IPC_STRUCT_TRAITS_MEMBER(port
)
117 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard
)
118 IPC_STRUCT_TRAITS_MEMBER(path
)
119 IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard
)
120 IPC_STRUCT_TRAITS_END()
122 IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource
)
123 IPC_STRUCT_TRAITS_MEMBER(primary_pattern
)
124 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern
)
125 IPC_STRUCT_TRAITS_MEMBER(setting
)
126 IPC_STRUCT_TRAITS_MEMBER(source
)
127 IPC_STRUCT_TRAITS_MEMBER(incognito
)
128 IPC_STRUCT_TRAITS_END()
130 IPC_STRUCT_TRAITS_BEGIN(EmbeddedSearchRequestParams
)
131 IPC_STRUCT_TRAITS_MEMBER(search_query
)
132 IPC_STRUCT_TRAITS_MEMBER(original_query
)
133 IPC_STRUCT_TRAITS_MEMBER(rlz_parameter_value
)
134 IPC_STRUCT_TRAITS_MEMBER(input_encoding
)
135 IPC_STRUCT_TRAITS_MEMBER(assisted_query_stats
)
136 IPC_STRUCT_TRAITS_END()
138 IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion
)
139 IPC_STRUCT_TRAITS_MEMBER(text
)
140 IPC_STRUCT_TRAITS_MEMBER(metadata
)
141 IPC_STRUCT_TRAITS_END()
143 IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem
)
144 IPC_STRUCT_TRAITS_MEMBER(url
)
145 IPC_STRUCT_TRAITS_MEMBER(title
)
146 IPC_STRUCT_TRAITS_END()
148 IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules
)
149 IPC_STRUCT_TRAITS_MEMBER(image_rules
)
150 IPC_STRUCT_TRAITS_MEMBER(script_rules
)
151 IPC_STRUCT_TRAITS_END()
153 IPC_STRUCT_TRAITS_BEGIN(RGBAColor
)
154 IPC_STRUCT_TRAITS_MEMBER(r
)
155 IPC_STRUCT_TRAITS_MEMBER(g
)
156 IPC_STRUCT_TRAITS_MEMBER(b
)
157 IPC_STRUCT_TRAITS_MEMBER(a
)
158 IPC_STRUCT_TRAITS_END()
160 IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo
)
161 IPC_STRUCT_TRAITS_MEMBER(using_default_theme
)
162 IPC_STRUCT_TRAITS_MEMBER(background_color
)
163 IPC_STRUCT_TRAITS_MEMBER(text_color
)
164 IPC_STRUCT_TRAITS_MEMBER(link_color
)
165 IPC_STRUCT_TRAITS_MEMBER(text_color_light
)
166 IPC_STRUCT_TRAITS_MEMBER(header_color
)
167 IPC_STRUCT_TRAITS_MEMBER(section_border_color
)
168 IPC_STRUCT_TRAITS_MEMBER(theme_id
)
169 IPC_STRUCT_TRAITS_MEMBER(image_horizontal_alignment
)
170 IPC_STRUCT_TRAITS_MEMBER(image_vertical_alignment
)
171 IPC_STRUCT_TRAITS_MEMBER(image_tiling
)
172 IPC_STRUCT_TRAITS_MEMBER(image_height
)
173 IPC_STRUCT_TRAITS_MEMBER(has_attribution
)
174 IPC_STRUCT_TRAITS_MEMBER(logo_alternate
)
175 IPC_STRUCT_TRAITS_END()
177 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStat
)
178 IPC_STRUCT_TRAITS_MEMBER(count
)
179 IPC_STRUCT_TRAITS_MEMBER(size
)
180 IPC_STRUCT_TRAITS_MEMBER(liveSize
)
181 IPC_STRUCT_TRAITS_MEMBER(decodedSize
)
182 IPC_STRUCT_TRAITS_END()
184 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStats
)
185 IPC_STRUCT_TRAITS_MEMBER(images
)
186 IPC_STRUCT_TRAITS_MEMBER(cssStyleSheets
)
187 IPC_STRUCT_TRAITS_MEMBER(scripts
)
188 IPC_STRUCT_TRAITS_MEMBER(xslStyleSheets
)
189 IPC_STRUCT_TRAITS_MEMBER(fonts
)
190 IPC_STRUCT_TRAITS_END()
192 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::UsageStats
)
193 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity
)
194 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity
)
195 IPC_STRUCT_TRAITS_MEMBER(capacity
)
196 IPC_STRUCT_TRAITS_MEMBER(liveSize
)
197 IPC_STRUCT_TRAITS_MEMBER(deadSize
)
198 IPC_STRUCT_TRAITS_END()
200 IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType
,
203 IPC_ENUM_TRAITS_MAX_VALUE(WebApplicationInfo::MobileCapable
,
204 WebApplicationInfo::MOBILE_CAPABLE_APPLE
)
206 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo
)
207 IPC_STRUCT_TRAITS_MEMBER(url
)
208 IPC_STRUCT_TRAITS_MEMBER(width
)
209 IPC_STRUCT_TRAITS_MEMBER(height
)
210 IPC_STRUCT_TRAITS_MEMBER(data
)
211 IPC_STRUCT_TRAITS_END()
213 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo
)
214 IPC_STRUCT_TRAITS_MEMBER(title
)
215 IPC_STRUCT_TRAITS_MEMBER(description
)
216 IPC_STRUCT_TRAITS_MEMBER(app_url
)
217 IPC_STRUCT_TRAITS_MEMBER(icons
)
218 IPC_STRUCT_TRAITS_MEMBER(mobile_capable
)
219 IPC_STRUCT_TRAITS_END()
221 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebAppBannerPromptReply
,
222 blink::WebAppBannerPromptReply::Cancel
)
224 //-----------------------------------------------------------------------------
225 // RenderView messages
226 // These are messages sent from the browser to the renderer process.
228 #if !defined(OS_ANDROID) && !defined(OS_IOS)
229 // For WebUI testing, this message requests JavaScript to be executed at a time
230 // which is late enough to not be thrown out, and early enough to be before
231 // onload events are fired.
232 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript
,
233 base::string16
/* javascript */)
236 // Set the content setting rules stored by the renderer.
237 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules
,
238 RendererContentSettingRules
/* rules */)
240 // Tells the render frame to load all blocked plugins with the given identifier.
241 IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins
,
242 std::string
/* identifier */)
244 // Asks the renderer to send back stats on the WebCore cache broken down by
246 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats
)
248 // Tells the renderer to create a FieldTrial, and by using a 100% probability
249 // for the FieldTrial, forces the FieldTrial to have assigned group name.
250 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup
,
251 std::string
/* field trial name */,
252 std::string
/* group name that was assigned. */)
254 // Asks the renderer to send back V8 heap stats.
255 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats
)
257 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetPageSequenceNumber
,
258 int /* page_seq_no */)
260 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant
)
262 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetDisplayInstantResults
,
263 bool /* display_instant_results */)
265 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFocusChanged
,
266 OmniboxFocusState
/* new_focus_state */,
267 OmniboxFocusChangeReason
/* reason */)
269 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMarginChange
, int /* start */)
271 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged
,
272 std::vector
<InstantMostVisitedItem
> /* items */)
274 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation
,
275 bool /* is_app_launcher_enabled */)
277 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress
,
278 bool /* input_in_progress */)
280 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch
,
281 InstantSuggestion
/* suggestion */)
283 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxSubmit
,
284 base::string16
/* value */,
285 EmbeddedSearchRequestParams
/* params */)
287 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged
,
288 ThemeBackgroundInfo
/* value */)
290 IPC_MESSAGE_ROUTED1(ChromeViewMsg_HistorySyncCheckResult
,
291 bool /* sync_history */)
293 IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult
,
294 base::string16
/* identity */,
295 bool /* identity_match */)
297 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch
)
299 // Sent on process startup to indicate whether this process is running in
301 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess
,
302 bool /* is_incognito_processs */)
304 // Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent.
305 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent
,
308 // Sent in response to ViewHostMsg_DidBlockRunningInsecureContent.
309 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent
,
312 IPC_MESSAGE_ROUTED0(ChromeViewMsg_ReloadFrame
)
314 // Tells the renderer whether or not a file system access has been allowed.
315 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestFileSystemAccessAsyncResponse
,
316 int /* request_id */,
319 // Sent when the profile changes the kSafeBrowsingEnabled preference.
320 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection
,
321 bool /* enable_phishing_detection */)
323 // Asks the renderer for a thumbnail of the image selected by the most
324 // recently opened context menu, if there is one. If the image's area
325 // is greater than thumbnail_min_area it will be downscaled to
326 // be within thumbnail_max_size. The possibly downsampled image will be
327 // returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message.
328 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode
,
329 int /* thumbnail_min_area_pixels */,
330 gfx::Size
/* thumbnail_max_size_pixels */)
332 // Notifies the renderer whether hiding/showing the top controls is enabled,
333 // what the current state should be, and whether or not to animate to the
335 IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState
,
336 content::TopControlsState
/* constraints */,
337 content::TopControlsState
/* current */,
341 // Updates the window features of the render view.
342 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures
,
343 blink::WebWindowFeatures
/* window_features */)
345 // Responds to the request for a thumbnail.
346 // Thumbnail data will be empty is a thumbnail could not be produced.
347 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK
,
348 std::string
/* JPEG-encoded thumbnail data */,
349 gfx::Size
/* original size of the image */)
351 // Requests application info for the page. The renderer responds back with
352 // ChromeViewHostMsg_DidGetWebApplicationInfo.
353 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetWebApplicationInfo
)
355 #if defined(OS_ANDROID)
356 // Asks the renderer to return information about the given meta tag.
357 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RetrieveMetaTagContent
,
358 GURL
/* expected_url */,
359 std::string
/* tag_name */ )
360 #endif // defined(OS_ANDROID)
362 // chrome.principals messages ------------------------------------------------
364 // Message sent from the renderer to the browser to get the list of browser
365 // managed accounts for the given origin.
366 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts
,
367 GURL
/* current URL */,
368 std::vector
<std::string
> /* managed accounts */)
370 // Message sent from the renderer to the browser to show the browser account
372 IPC_MESSAGE_CONTROL0(ChromeViewHostMsg_ShowBrowserAccountManagementUI
)
374 // JavaScript related messages -----------------------------------------------
376 // Tells the frame it is displaying an interstitial page.
377 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial
)
379 // Provides the renderer with the results of the browser's investigation into
380 // why a recent main frame load failed (currently, just DNS probe result).
381 // NetErrorHelper will receive this mesage and replace or update the error
382 // page with more specific troubleshooting suggestions.
383 IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo
,
384 int /* DNS probe status */)
386 // Provides the information needed by the renderer process to contact a
387 // navigation correction service. Handled by the NetErrorHelper.
388 IPC_MESSAGE_ROUTED5(ChromeViewMsg_SetNavigationCorrectionInfo
,
389 GURL
/* Navigation correction service base URL */,
390 std::string
/* language */,
391 std::string
/* origin_country */,
392 std::string
/* API key to use */,
393 GURL
/* Google Search URL to use */)
395 //-----------------------------------------------------------------------------
397 // These are messages sent from the renderer to the browser process.
399 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats
,
400 blink::WebCache::UsageStats
/* stats */)
402 // Tells the browser that content in the current page was blocked due to the
403 // user's content settings.
404 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ContentBlocked
,
405 ContentSettingsType
/* type of blocked content */,
406 base::string16
/* details on blocked content */)
408 // Sent by the renderer process to check whether access to web databases is
409 // granted by content settings.
410 IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase
,
411 int /* render_frame_id */,
412 GURL
/* origin_url */,
413 GURL
/* top origin url */,
414 base::string16
/* database name */,
415 base::string16
/* database display name */,
418 // Sent by the renderer process to check whether access to DOM Storage is
419 // granted by content settings.
420 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage
,
421 int /* render_frame_id */,
422 GURL
/* origin_url */,
423 GURL
/* top origin url */,
424 bool /* if true local storage, otherwise session */,
427 // Sent by the renderer process to check whether access to FileSystem is
428 // granted by content settings.
429 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_RequestFileSystemAccessSync
,
430 int /* render_frame_id */,
431 GURL
/* origin_url */,
432 GURL
/* top origin url */,
435 // Sent by the renderer process to check whether access to FileSystem is
436 // granted by content settings.
437 IPC_MESSAGE_CONTROL4(ChromeViewHostMsg_RequestFileSystemAccessAsync
,
438 int /* render_frame_id */,
439 int /* request_id */,
440 GURL
/* origin_url */,
441 GURL
/* top origin url */)
443 // Sent by the renderer process to check whether access to Indexed DBis
444 // granted by content settings.
445 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB
,
446 int /* render_frame_id */,
447 GURL
/* origin_url */,
448 GURL
/* top origin url */,
449 base::string16
/* database name */,
452 // Return information about a plugin for the given URL and MIME type.
453 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows
454 // about specific reasons why a plugin can't be used, for example because it's
456 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo
,
457 int /* render_frame_id */,
459 GURL
/* top origin url */,
460 std::string
/* mime_type */,
461 ChromeViewHostMsg_GetPluginInfo_Output
/* output */)
463 #if defined(ENABLE_PEPPER_CDMS)
464 // Returns whether any internal plugin supporting |mime_type| is registered and
465 // enabled. Does not determine whether the plugin can actually be instantiated
466 // (e.g. whether it has all its dependencies).
467 // When the returned *|is_available| is true, |additional_param_names| and
468 // |additional_param_values| contain the name-value pairs, if any, specified
469 // for the *first* non-disabled plugin found that is registered for |mime_type|.
470 IPC_SYNC_MESSAGE_CONTROL1_3(
471 ChromeViewHostMsg_IsInternalPluginAvailableForMimeType
,
472 std::string
/* mime_type */,
473 bool /* is_available */,
474 std::vector
<base::string16
> /* additional_param_names */,
475 std::vector
<base::string16
> /* additional_param_values */)
478 #if defined(ENABLE_PLUGIN_INSTALLATION)
479 // Notifies the browser that a missing plugin placeholder has been removed, so
480 // the corresponding PluginPlaceholderHost can be deleted.
481 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost
,
482 int /* placeholder_id */)
484 // Notifies a missing plugin placeholder that a plugin with name |plugin_name|
486 IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin
,
487 base::string16
/* plugin_name */)
489 // Notifies a missing plugin placeholder that no plugin has been found.
490 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin
)
492 // Notifies a missing plugin placeholder that we have started downloading
494 IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin
)
496 // Notifies a missing plugin placeholder that we have finished downloading
498 IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin
)
500 // Notifies a missing plugin placeholder that there was an error downloading
502 IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin
,
503 std::string
/* message */)
504 #endif // defined(ENABLE_PLUGIN_INSTALLATION)
506 // Notifies a missing plugin placeholder that the user cancelled downloading
508 IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin
)
510 // Tells the browser to open chrome://plugins in a new tab. We use a separate
511 // message because renderer processes aren't allowed to directly navigate to
513 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins
)
515 // Tells the browser that there was an error loading a plugin.
516 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin
,
517 base::FilePath
/* plugin_path */)
519 // Tells the browser that we blocked a plugin because NPAPI is not supported.
520 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported
,
521 std::string
/* identifer */)
523 // Asks the renderer whether an app banner should be shown. It will reply with
524 // ChromeViewHostMsg_AppBannerPromptReply.
525 IPC_MESSAGE_ROUTED2(ChromeViewMsg_AppBannerPromptRequest
,
526 int /* request_id */,
527 std::string
/* platform */)
529 // Tells the renderer that the NPAPI cannot be used. For example Ash on windows.
530 IPC_MESSAGE_ROUTED0(ChromeViewMsg_NPAPINotSupported
)
532 // Notification that the page has an OpenSearch description document
533 // associated with it.
534 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD
,
537 search_provider::OSDDType
)
539 // Find out if the given url's security origin is installed as a search
541 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState
,
543 GURL
/* inquiry url */,
544 search_provider::InstallState
/* install */)
546 // Sends back stats about the V8 heap.
547 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats
,
548 int /* size of heap (allocated from the OS) */,
549 int /* bytes in use */)
551 // Notifies when a plugin couldn't be loaded because it's outdated.
552 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin
,
553 int /* placeholder ID */,
554 std::string
/* plugin group identifier */)
556 // Notifies when a plugin couldn't be loaded because it requires
557 // user authorization.
558 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin
,
559 base::string16
/* name */,
560 std::string
/* plugin group identifier */)
562 // Provide the browser process with information about the WebCore resource
563 // cache and current renderer framerate.
564 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats
,
565 blink::WebCache::ResourceTypeStats
)
567 // Message sent from the renderer to the browser to notify it of a
568 // window.print() call which should cancel the prerender. The message is sent
569 // only when the renderer is prerendering.
570 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting
)
572 // Sent when the renderer was prevented from displaying insecure content in
573 // a secure page by a security policy. The page may appear incomplete.
574 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent
)
576 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_DidGetWebApplicationInfo
,
579 #if defined(OS_ANDROID)
580 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveMetaTagContent
,
582 std::string
/* tag_name */,
583 std::string
/* tag_content */,
584 GURL
/* expected_url */)
585 #endif // defined(OS_ANDROID)
587 // Logs events from InstantExtended New Tab Pages.
588 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogEvent
,
589 int /* page_seq_no */,
590 NTPLoggingEventType
/* event */,
591 base::TimeDelta
/* time */)
593 // Logs an impression on one of the Most Visited tile on the InstantExtended
595 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedImpression
,
596 int /* page_seq_no */,
598 base::string16
/* provider */)
600 // Logs a navigation on one of the Most Visited tile on the InstantExtended
602 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedNavigation
,
603 int /* page_seq_no */,
605 base::string16
/* provider */)
607 // The Instant page asks whether the user syncs its history.
608 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_HistorySyncCheck
,
609 int /* page_seq_no */)
611 // The Instant page asks for Chrome identity check against |identity|.
612 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ChromeIdentityCheck
,
613 int /* page_seq_no */,
614 base::string16
/* identity */)
616 // Tells InstantExtended to set the omnibox focus state.
617 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FocusOmnibox
,
618 int /* page_seq_no */,
619 OmniboxFocusState
/* state */)
621 // Tells InstantExtended to paste text into the omnibox. If text is empty,
622 // the clipboard contents will be pasted. This causes the omnibox dropdown to
624 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PasteAndOpenDropdown
,
625 int /* page_seq_no */,
626 base::string16
/* text to be pasted */)
628 // Tells InstantExtended whether the embedded search API is supported.
629 // See http://dev.chromium.org/embeddedsearch
630 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined
,
631 int /* page_seq_no */,
634 // Tells InstantExtended to delete a most visited item.
635 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem
,
636 int /* page_seq_no */,
639 // Tells InstantExtended to navigate the active tab to a possibly privileged
641 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_SearchBoxNavigate
,
642 int /* page_seq_no */,
643 GURL
/* destination */,
644 WindowOpenDisposition
/* disposition */,
645 bool /*is_most_visited_item_url*/)
647 // Tells InstantExtended to undo all most visited item deletions.
648 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions
,
649 int /* page_seq_no */)
651 // Tells InstantExtended to undo one most visited item deletion.
652 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion
,
653 int /* page_seq_no */,
656 // Tells InstantExtended whether the page supports voice search.
657 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetVoiceSearchSupported
,
658 int /* page_seq_no */,
659 bool /* supported */)
661 // Tells the renderer a list of URLs which should be bounced back to the browser
662 // process so that they can be assigned to an Instant renderer.
663 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs
,
664 std::vector
<GURL
> /* search_urls */,
665 GURL
/* new_tab_page_url */)
667 #if defined(ENABLE_PLUGINS)
668 // Sent by the renderer to check if crash reporting is enabled.
669 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled
,
673 // Tells the browser process whether the web page wants the banner to be shown.
674 // This is a reply from ChromeViewMsg_AppBannerPromptRequest.
675 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_AppBannerPromptReply
,
676 int /* request_id */,
677 blink::WebAppBannerPromptReply
/* reply */)
679 // Sent by the renderer to indicate that a fields trial has been activated.
680 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_FieldTrialActivated
,
681 std::string
/* name */)