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
{
59 kPlayImportantContent
,
63 ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed
) {}
71 struct ParamTraits
<ContentSettingsPattern
> {
72 typedef ContentSettingsPattern param_type
;
73 static void Write(Message
* m
, const param_type
& p
);
74 static bool Read(const Message
* m
, PickleIterator
* iter
, param_type
* r
);
75 static void Log(const param_type
& p
, std::string
* l
);
80 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
82 #define IPC_MESSAGE_START ChromeMsgStart
84 IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status::Value
,
85 ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized
)
86 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusChangeReason
,
87 OMNIBOX_FOCUS_CHANGE_REASON_LAST
)
88 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusState
, OMNIBOX_FOCUS_STATE_LAST
)
89 IPC_ENUM_TRAITS_MAX_VALUE(search_provider::OSDDType
,
90 search_provider::OSDD_TYPE_LAST
)
91 IPC_ENUM_TRAITS(search_provider::InstallState
)
92 IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment
)
93 IPC_ENUM_TRAITS(ThemeBackgroundImageTiling
)
94 IPC_ENUM_TRAITS(blink::WebConsoleMessage::Level
)
95 IPC_ENUM_TRAITS(content::TopControlsState
)
97 IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status
)
98 IPC_STRUCT_TRAITS_MEMBER(value
)
99 IPC_STRUCT_TRAITS_END()
101 // Output parameters for ChromeViewHostMsg_GetPluginInfo message.
102 IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output
)
103 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status
, status
)
104 IPC_STRUCT_MEMBER(content::WebPluginInfo
, plugin
)
105 IPC_STRUCT_MEMBER(std::string
, actual_mime_type
)
106 IPC_STRUCT_MEMBER(std::string
, group_identifier
)
107 IPC_STRUCT_MEMBER(base::string16
, group_name
)
110 IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts
)
111 IPC_STRUCT_TRAITS_MEMBER(scheme
)
112 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard
)
113 IPC_STRUCT_TRAITS_MEMBER(host
)
114 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard
)
115 IPC_STRUCT_TRAITS_MEMBER(port
)
116 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard
)
117 IPC_STRUCT_TRAITS_MEMBER(path
)
118 IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard
)
119 IPC_STRUCT_TRAITS_END()
121 IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource
)
122 IPC_STRUCT_TRAITS_MEMBER(primary_pattern
)
123 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern
)
124 IPC_STRUCT_TRAITS_MEMBER(setting
)
125 IPC_STRUCT_TRAITS_MEMBER(source
)
126 IPC_STRUCT_TRAITS_MEMBER(incognito
)
127 IPC_STRUCT_TRAITS_END()
129 IPC_STRUCT_TRAITS_BEGIN(EmbeddedSearchRequestParams
)
130 IPC_STRUCT_TRAITS_MEMBER(search_query
)
131 IPC_STRUCT_TRAITS_MEMBER(original_query
)
132 IPC_STRUCT_TRAITS_MEMBER(rlz_parameter_value
)
133 IPC_STRUCT_TRAITS_MEMBER(input_encoding
)
134 IPC_STRUCT_TRAITS_MEMBER(assisted_query_stats
)
135 IPC_STRUCT_TRAITS_END()
137 IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion
)
138 IPC_STRUCT_TRAITS_MEMBER(text
)
139 IPC_STRUCT_TRAITS_MEMBER(metadata
)
140 IPC_STRUCT_TRAITS_END()
142 IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem
)
143 IPC_STRUCT_TRAITS_MEMBER(url
)
144 IPC_STRUCT_TRAITS_MEMBER(title
)
145 IPC_STRUCT_TRAITS_END()
147 IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules
)
148 IPC_STRUCT_TRAITS_MEMBER(image_rules
)
149 IPC_STRUCT_TRAITS_MEMBER(script_rules
)
150 IPC_STRUCT_TRAITS_END()
152 IPC_STRUCT_TRAITS_BEGIN(RGBAColor
)
153 IPC_STRUCT_TRAITS_MEMBER(r
)
154 IPC_STRUCT_TRAITS_MEMBER(g
)
155 IPC_STRUCT_TRAITS_MEMBER(b
)
156 IPC_STRUCT_TRAITS_MEMBER(a
)
157 IPC_STRUCT_TRAITS_END()
159 IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo
)
160 IPC_STRUCT_TRAITS_MEMBER(using_default_theme
)
161 IPC_STRUCT_TRAITS_MEMBER(background_color
)
162 IPC_STRUCT_TRAITS_MEMBER(text_color
)
163 IPC_STRUCT_TRAITS_MEMBER(link_color
)
164 IPC_STRUCT_TRAITS_MEMBER(text_color_light
)
165 IPC_STRUCT_TRAITS_MEMBER(header_color
)
166 IPC_STRUCT_TRAITS_MEMBER(section_border_color
)
167 IPC_STRUCT_TRAITS_MEMBER(theme_id
)
168 IPC_STRUCT_TRAITS_MEMBER(image_horizontal_alignment
)
169 IPC_STRUCT_TRAITS_MEMBER(image_vertical_alignment
)
170 IPC_STRUCT_TRAITS_MEMBER(image_tiling
)
171 IPC_STRUCT_TRAITS_MEMBER(image_height
)
172 IPC_STRUCT_TRAITS_MEMBER(has_attribution
)
173 IPC_STRUCT_TRAITS_MEMBER(logo_alternate
)
174 IPC_STRUCT_TRAITS_END()
176 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStat
)
177 IPC_STRUCT_TRAITS_MEMBER(count
)
178 IPC_STRUCT_TRAITS_MEMBER(size
)
179 IPC_STRUCT_TRAITS_MEMBER(liveSize
)
180 IPC_STRUCT_TRAITS_MEMBER(decodedSize
)
181 IPC_STRUCT_TRAITS_END()
183 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStats
)
184 IPC_STRUCT_TRAITS_MEMBER(images
)
185 IPC_STRUCT_TRAITS_MEMBER(cssStyleSheets
)
186 IPC_STRUCT_TRAITS_MEMBER(scripts
)
187 IPC_STRUCT_TRAITS_MEMBER(xslStyleSheets
)
188 IPC_STRUCT_TRAITS_MEMBER(fonts
)
189 IPC_STRUCT_TRAITS_END()
191 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::UsageStats
)
192 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity
)
193 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity
)
194 IPC_STRUCT_TRAITS_MEMBER(capacity
)
195 IPC_STRUCT_TRAITS_MEMBER(liveSize
)
196 IPC_STRUCT_TRAITS_MEMBER(deadSize
)
197 IPC_STRUCT_TRAITS_END()
199 IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType
,
202 IPC_ENUM_TRAITS_MAX_VALUE(WebApplicationInfo::MobileCapable
,
203 WebApplicationInfo::MOBILE_CAPABLE_APPLE
)
205 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo
)
206 IPC_STRUCT_TRAITS_MEMBER(url
)
207 IPC_STRUCT_TRAITS_MEMBER(width
)
208 IPC_STRUCT_TRAITS_MEMBER(height
)
209 IPC_STRUCT_TRAITS_MEMBER(data
)
210 IPC_STRUCT_TRAITS_END()
212 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo
)
213 IPC_STRUCT_TRAITS_MEMBER(title
)
214 IPC_STRUCT_TRAITS_MEMBER(description
)
215 IPC_STRUCT_TRAITS_MEMBER(app_url
)
216 IPC_STRUCT_TRAITS_MEMBER(icons
)
217 IPC_STRUCT_TRAITS_MEMBER(mobile_capable
)
218 IPC_STRUCT_TRAITS_END()
220 //-----------------------------------------------------------------------------
221 // RenderView messages
222 // These are messages sent from the browser to the renderer process.
224 #if !defined(OS_ANDROID) && !defined(OS_IOS)
225 // For WebUI testing, this message requests JavaScript to be executed at a time
226 // which is late enough to not be thrown out, and early enough to be before
227 // onload events are fired.
228 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript
,
229 base::string16
/* javascript */)
232 // Set the content setting rules stored by the renderer.
233 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules
,
234 RendererContentSettingRules
/* rules */)
236 // Tells the render frame to load all blocked plugins with the given identifier.
237 IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins
,
238 std::string
/* identifier */)
240 // Asks the renderer to send back stats on the WebCore cache broken down by
242 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats
)
244 // Tells the renderer to create a FieldTrial, and by using a 100% probability
245 // for the FieldTrial, forces the FieldTrial to have assigned group name.
246 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup
,
247 std::string
/* field trial name */,
248 std::string
/* group name that was assigned. */)
250 // Asks the renderer to send back V8 heap stats.
251 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats
)
253 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetPageSequenceNumber
,
254 int /* page_seq_no */)
256 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant
)
258 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetDisplayInstantResults
,
259 bool /* display_instant_results */)
261 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFocusChanged
,
262 OmniboxFocusState
/* new_focus_state */,
263 OmniboxFocusChangeReason
/* reason */)
265 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMarginChange
, int /* start */)
267 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged
,
268 std::vector
<InstantMostVisitedItem
> /* items */)
270 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation
,
271 bool /* is_app_launcher_enabled */)
273 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress
,
274 bool /* input_in_progress */)
276 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch
,
277 InstantSuggestion
/* suggestion */)
279 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxSubmit
,
280 base::string16
/* value */,
281 EmbeddedSearchRequestParams
/* params */)
283 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged
,
284 ThemeBackgroundInfo
/* value */)
286 IPC_MESSAGE_ROUTED1(ChromeViewMsg_HistorySyncCheckResult
,
287 bool /* sync_history */)
289 IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult
,
290 base::string16
/* identity */,
291 bool /* identity_match */)
293 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch
)
295 // Sent on process startup to indicate whether this process is running in
297 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess
,
298 bool /* is_incognito_processs */)
300 // Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent.
301 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent
,
304 // Sent in response to ViewHostMsg_DidBlockRunningInsecureContent.
305 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent
,
308 IPC_MESSAGE_ROUTED0(ChromeViewMsg_ReloadFrame
)
310 // Tells the renderer whether or not a file system access has been allowed.
311 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestFileSystemAccessAsyncResponse
,
312 int /* request_id */,
315 // Sent when the profile changes the kSafeBrowsingEnabled preference.
316 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection
,
317 bool /* enable_phishing_detection */)
319 // Asks the renderer for a thumbnail of the image selected by the most
320 // recently opened context menu, if there is one. If the image's area
321 // is greater than thumbnail_min_area it will be downscaled to
322 // be within thumbnail_max_size. The possibly downsampled image will be
323 // returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message.
324 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode
,
325 int /* thumbnail_min_area_pixels */,
326 gfx::Size
/* thumbnail_max_size_pixels */)
328 // Notifies the renderer whether hiding/showing the top controls is enabled,
329 // what the current state should be, and whether or not to animate to the
331 IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState
,
332 content::TopControlsState
/* constraints */,
333 content::TopControlsState
/* current */,
337 // Updates the window features of the render view.
338 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures
,
339 blink::WebWindowFeatures
/* window_features */)
341 // Responds to the request for a thumbnail.
342 // Thumbnail data will be empty is a thumbnail could not be produced.
343 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK
,
344 std::string
/* JPEG-encoded thumbnail data */,
345 gfx::Size
/* original size of the image */)
347 // Requests application info for the page. The renderer responds back with
348 // ChromeViewHostMsg_DidGetWebApplicationInfo.
349 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetWebApplicationInfo
)
351 #if defined(OS_ANDROID)
352 // Asks the renderer to return information about the given meta tag.
353 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RetrieveMetaTagContent
,
354 GURL
/* expected_url */,
355 std::string
/* tag_name */ )
356 #endif // defined(OS_ANDROID)
358 // chrome.principals messages ------------------------------------------------
360 // Message sent from the renderer to the browser to get the list of browser
361 // managed accounts for the given origin.
362 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts
,
363 GURL
/* current URL */,
364 std::vector
<std::string
> /* managed accounts */)
366 // Message sent from the renderer to the browser to show the browser account
368 IPC_MESSAGE_CONTROL0(ChromeViewHostMsg_ShowBrowserAccountManagementUI
)
370 // JavaScript related messages -----------------------------------------------
372 // Tells the frame it is displaying an interstitial page.
373 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial
)
375 // Provides the renderer with the results of the browser's investigation into
376 // why a recent main frame load failed (currently, just DNS probe result).
377 // NetErrorHelper will receive this mesage and replace or update the error
378 // page with more specific troubleshooting suggestions.
379 IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo
,
380 int /* DNS probe status */)
382 // Provides the information needed by the renderer process to contact a
383 // navigation correction service. Handled by the NetErrorHelper.
384 IPC_MESSAGE_ROUTED5(ChromeViewMsg_SetNavigationCorrectionInfo
,
385 GURL
/* Navigation correction service base URL */,
386 std::string
/* language */,
387 std::string
/* origin_country */,
388 std::string
/* API key to use */,
389 GURL
/* Google Search URL to use */)
391 //-----------------------------------------------------------------------------
393 // These are messages sent from the renderer to the browser process.
395 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats
,
396 blink::WebCache::UsageStats
/* stats */)
398 // Tells the browser that content in the current page was blocked due to the
399 // user's content settings.
400 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ContentBlocked
,
401 ContentSettingsType
/* type of blocked content */,
402 base::string16
/* details on blocked content */)
404 // Sent by the renderer process to check whether access to web databases is
405 // granted by content settings.
406 IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase
,
407 int /* render_frame_id */,
408 GURL
/* origin_url */,
409 GURL
/* top origin url */,
410 base::string16
/* database name */,
411 base::string16
/* database display name */,
414 // Sent by the renderer process to check whether access to DOM Storage is
415 // granted by content settings.
416 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage
,
417 int /* render_frame_id */,
418 GURL
/* origin_url */,
419 GURL
/* top origin url */,
420 bool /* if true local storage, otherwise session */,
423 // Sent by the renderer process to check whether access to FileSystem is
424 // granted by content settings.
425 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_RequestFileSystemAccessSync
,
426 int /* render_frame_id */,
427 GURL
/* origin_url */,
428 GURL
/* top origin url */,
431 // Sent by the renderer process to check whether access to FileSystem is
432 // granted by content settings.
433 IPC_MESSAGE_CONTROL4(ChromeViewHostMsg_RequestFileSystemAccessAsync
,
434 int /* render_frame_id */,
435 int /* request_id */,
436 GURL
/* origin_url */,
437 GURL
/* top origin url */)
439 // Sent by the renderer process to check whether access to Indexed DBis
440 // granted by content settings.
441 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB
,
442 int /* render_frame_id */,
443 GURL
/* origin_url */,
444 GURL
/* top origin url */,
445 base::string16
/* database name */,
448 // Return information about a plugin for the given URL and MIME type.
449 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows
450 // about specific reasons why a plug-in can't be used, for example because it's
452 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo
,
453 int /* render_frame_id */,
455 GURL
/* top origin url */,
456 std::string
/* mime_type */,
457 ChromeViewHostMsg_GetPluginInfo_Output
/* output */)
459 #if defined(ENABLE_PEPPER_CDMS)
460 // Returns whether any internal plugin supporting |mime_type| is registered and
461 // enabled. Does not determine whether the plugin can actually be instantiated
462 // (e.g. whether it has all its dependencies).
463 // When the returned *|is_available| is true, |additional_param_names| and
464 // |additional_param_values| contain the name-value pairs, if any, specified
465 // for the *first* non-disabled plugin found that is registered for |mime_type|.
466 IPC_SYNC_MESSAGE_CONTROL1_3(
467 ChromeViewHostMsg_IsInternalPluginAvailableForMimeType
,
468 std::string
/* mime_type */,
469 bool /* is_available */,
470 std::vector
<base::string16
> /* additional_param_names */,
471 std::vector
<base::string16
> /* additional_param_values */)
474 #if defined(ENABLE_PLUGIN_INSTALLATION)
475 // Tells the browser to search for a plug-in that can handle the given MIME
476 // type. The result will be sent asynchronously to the routing ID
478 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin
,
479 int /* placeholder_id */,
480 std::string
/* mime_type */)
482 // Notifies the browser that a missing plug-in placeholder has been removed, so
483 // the corresponding PluginPlaceholderHost can be deleted.
484 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost
,
485 int /* placeholder_id */)
487 // Notifies a missing plug-in placeholder that a plug-in with name |plugin_name|
489 IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin
,
490 base::string16
/* plugin_name */)
492 // Notifies a missing plug-in placeholder that no plug-in has been found.
493 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin
)
495 // Notifies a missing plug-in placeholder that we have started downloading
497 IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin
)
499 // Notifies a missing plug-in placeholder that we have finished downloading
501 IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin
)
503 // Notifies a missing plug-in placeholder that there was an error downloading
505 IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin
,
506 std::string
/* message */)
507 #endif // defined(ENABLE_PLUGIN_INSTALLATION)
509 // Notifies a missing plug-in placeholder that the user cancelled downloading
511 IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin
)
513 // Tells the browser to open chrome://plugins in a new tab. We use a separate
514 // message because renderer processes aren't allowed to directly navigate to
516 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins
)
518 // Tells the browser that there was an error loading a plug-in.
519 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin
,
520 base::FilePath
/* plugin_path */)
522 // Tells the browser that we blocked a plug-in because NPAPI is not supported.
523 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported
,
524 std::string
/* identifer */)
526 // Tells the renderer that the NPAPI cannot be used. For example Ash on windows.
527 IPC_MESSAGE_ROUTED0(ChromeViewMsg_NPAPINotSupported
)
529 // Notification that the page has an OpenSearch description document
530 // associated with it.
531 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD
,
534 search_provider::OSDDType
)
536 // Find out if the given url's security origin is installed as a search
538 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState
,
540 GURL
/* inquiry url */,
541 search_provider::InstallState
/* install */)
543 // Sends back stats about the V8 heap.
544 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats
,
545 int /* size of heap (allocated from the OS) */,
546 int /* bytes in use */)
548 // Request for preconnect to host providing resource specified by URL
549 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_Preconnect
,
550 GURL
/* preconnect target url */)
552 // Notifies when a plugin couldn't be loaded because it's outdated.
553 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin
,
554 int /* placeholder ID */,
555 std::string
/* plug-in group identifier */)
557 // Notifies when a plugin couldn't be loaded because it requires
558 // user authorization.
559 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin
,
560 base::string16
/* name */,
561 std::string
/* plug-in group identifier */)
563 // Provide the browser process with information about the WebCore resource
564 // cache and current renderer framerate.
565 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats
,
566 blink::WebCache::ResourceTypeStats
)
568 // Message sent from the renderer to the browser to notify it of a
569 // window.print() call which should cancel the prerender. The message is sent
570 // only when the renderer is prerendering.
571 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting
)
573 // Sent when the renderer was prevented from displaying insecure content in
574 // a secure page by a security policy. The page may appear incomplete.
575 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent
)
577 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_DidGetWebApplicationInfo
,
580 #if defined(OS_ANDROID)
581 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveMetaTagContent
,
583 std::string
/* tag_name */,
584 std::string
/* tag_content */,
585 GURL
/* expected_url */)
586 #endif // defined(OS_ANDROID)
588 // Logs events from InstantExtended New Tab Pages.
589 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_LogEvent
,
590 int /* page_seq_no */,
591 NTPLoggingEventType
/* event */)
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 // Sent by the renderer to indicate that a fields trial has been activated.
674 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_FieldTrialActivated
,
675 std::string
/* name */)