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/content_settings.h"
21 #include "chrome/common/content_settings_pattern.h"
22 #include "chrome/common/instant_types.h"
23 #include "chrome/common/ntp_logging_events.h"
24 #include "chrome/common/omnibox_focus_state.h"
25 #include "chrome/common/search_provider.h"
26 #include "components/content_settings/core/common/content_settings_types.h"
27 #include "components/nacl/common/nacl_types.h"
28 #include "content/public/common/common_param_traits.h"
29 #include "content/public/common/referrer.h"
30 #include "content/public/common/top_controls_state.h"
31 #include "ipc/ipc_channel_handle.h"
32 #include "ipc/ipc_message_macros.h"
33 #include "ipc/ipc_platform_file.h"
34 #include "third_party/WebKit/public/web/WebCache.h"
35 #include "third_party/WebKit/public/web/WebConsoleMessage.h"
36 #include "third_party/skia/include/core/SkBitmap.h"
37 #include "ui/base/window_open_disposition.h"
38 #include "ui/gfx/ipc/gfx_param_traits.h"
39 #include "ui/gfx/rect.h"
41 // Singly-included section for enums and custom IPC traits.
42 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_
43 #define CHROME_COMMON_RENDER_MESSAGES_H_
45 // This enum is inside a struct so that we can forward-declare the struct in
46 // others headers without having to include this one.
47 struct ChromeViewHostMsg_GetPluginInfo_Status
{
61 ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed
) {}
69 struct ParamTraits
<ContentSettingsPattern
> {
70 typedef ContentSettingsPattern param_type
;
71 static void Write(Message
* m
, const param_type
& p
);
72 static bool Read(const Message
* m
, PickleIterator
* iter
, param_type
* r
);
73 static void Log(const param_type
& p
, std::string
* l
);
78 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
80 #define IPC_MESSAGE_START ChromeMsgStart
82 IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status::Value
,
83 ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized
)
84 IPC_ENUM_TRAITS(OmniboxFocusChangeReason
)
85 IPC_ENUM_TRAITS(OmniboxFocusState
)
86 IPC_ENUM_TRAITS(search_provider::OSDDType
)
87 IPC_ENUM_TRAITS(search_provider::InstallState
)
88 IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment
)
89 IPC_ENUM_TRAITS(ThemeBackgroundImageTiling
)
90 IPC_ENUM_TRAITS(blink::WebConsoleMessage::Level
)
91 IPC_ENUM_TRAITS(content::TopControlsState
)
93 IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status
)
94 IPC_STRUCT_TRAITS_MEMBER(value
)
95 IPC_STRUCT_TRAITS_END()
97 // Output parameters for ChromeViewHostMsg_GetPluginInfo message.
98 IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output
)
99 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status
, status
)
100 IPC_STRUCT_MEMBER(content::WebPluginInfo
, plugin
)
101 IPC_STRUCT_MEMBER(std::string
, actual_mime_type
)
102 IPC_STRUCT_MEMBER(std::string
, group_identifier
)
103 IPC_STRUCT_MEMBER(base::string16
, group_name
)
106 IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts
)
107 IPC_STRUCT_TRAITS_MEMBER(scheme
)
108 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard
)
109 IPC_STRUCT_TRAITS_MEMBER(host
)
110 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard
)
111 IPC_STRUCT_TRAITS_MEMBER(port
)
112 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard
)
113 IPC_STRUCT_TRAITS_MEMBER(path
)
114 IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard
)
115 IPC_STRUCT_TRAITS_END()
117 IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource
)
118 IPC_STRUCT_TRAITS_MEMBER(primary_pattern
)
119 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern
)
120 IPC_STRUCT_TRAITS_MEMBER(setting
)
121 IPC_STRUCT_TRAITS_MEMBER(source
)
122 IPC_STRUCT_TRAITS_MEMBER(incognito
)
123 IPC_STRUCT_TRAITS_END()
125 IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion
)
126 IPC_STRUCT_TRAITS_MEMBER(text
)
127 IPC_STRUCT_TRAITS_MEMBER(metadata
)
128 IPC_STRUCT_TRAITS_END()
130 IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem
)
131 IPC_STRUCT_TRAITS_MEMBER(url
)
132 IPC_STRUCT_TRAITS_MEMBER(title
)
133 IPC_STRUCT_TRAITS_END()
135 IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules
)
136 IPC_STRUCT_TRAITS_MEMBER(image_rules
)
137 IPC_STRUCT_TRAITS_MEMBER(script_rules
)
138 IPC_STRUCT_TRAITS_END()
140 IPC_STRUCT_TRAITS_BEGIN(RGBAColor
)
141 IPC_STRUCT_TRAITS_MEMBER(r
)
142 IPC_STRUCT_TRAITS_MEMBER(g
)
143 IPC_STRUCT_TRAITS_MEMBER(b
)
144 IPC_STRUCT_TRAITS_MEMBER(a
)
145 IPC_STRUCT_TRAITS_END()
147 IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo
)
148 IPC_STRUCT_TRAITS_MEMBER(using_default_theme
)
149 IPC_STRUCT_TRAITS_MEMBER(background_color
)
150 IPC_STRUCT_TRAITS_MEMBER(text_color
)
151 IPC_STRUCT_TRAITS_MEMBER(link_color
)
152 IPC_STRUCT_TRAITS_MEMBER(text_color_light
)
153 IPC_STRUCT_TRAITS_MEMBER(header_color
)
154 IPC_STRUCT_TRAITS_MEMBER(section_border_color
)
155 IPC_STRUCT_TRAITS_MEMBER(theme_id
)
156 IPC_STRUCT_TRAITS_MEMBER(image_horizontal_alignment
)
157 IPC_STRUCT_TRAITS_MEMBER(image_vertical_alignment
)
158 IPC_STRUCT_TRAITS_MEMBER(image_tiling
)
159 IPC_STRUCT_TRAITS_MEMBER(image_height
)
160 IPC_STRUCT_TRAITS_MEMBER(has_attribution
)
161 IPC_STRUCT_TRAITS_MEMBER(logo_alternate
)
162 IPC_STRUCT_TRAITS_END()
164 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStat
)
165 IPC_STRUCT_TRAITS_MEMBER(count
)
166 IPC_STRUCT_TRAITS_MEMBER(size
)
167 IPC_STRUCT_TRAITS_MEMBER(liveSize
)
168 IPC_STRUCT_TRAITS_MEMBER(decodedSize
)
169 IPC_STRUCT_TRAITS_END()
171 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStats
)
172 IPC_STRUCT_TRAITS_MEMBER(images
)
173 IPC_STRUCT_TRAITS_MEMBER(cssStyleSheets
)
174 IPC_STRUCT_TRAITS_MEMBER(scripts
)
175 IPC_STRUCT_TRAITS_MEMBER(xslStyleSheets
)
176 IPC_STRUCT_TRAITS_MEMBER(fonts
)
177 IPC_STRUCT_TRAITS_END()
179 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::UsageStats
)
180 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity
)
181 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity
)
182 IPC_STRUCT_TRAITS_MEMBER(capacity
)
183 IPC_STRUCT_TRAITS_MEMBER(liveSize
)
184 IPC_STRUCT_TRAITS_MEMBER(deadSize
)
185 IPC_STRUCT_TRAITS_END()
187 IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType
,
190 //-----------------------------------------------------------------------------
191 // RenderView messages
192 // These are messages sent from the browser to the renderer process.
194 // Tells the renderer to set its maximum cache size to the supplied value.
195 IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities
,
196 size_t /* min_dead_capacity */,
197 size_t /* max_dead_capacity */,
198 size_t /* capacity */)
200 // Tells the renderer to clear the cache.
201 IPC_MESSAGE_CONTROL1(ChromeViewMsg_ClearCache
,
202 bool /* on_navigation */)
204 #if !defined(OS_ANDROID) && !defined(OS_IOS)
205 // For WebUI testing, this message requests JavaScript to be executed at a time
206 // which is late enough to not be thrown out, and early enough to be before
207 // onload events are fired.
208 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript
,
209 base::string16
/* javascript */)
212 // Set the content setting rules stored by the renderer.
213 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules
,
214 RendererContentSettingRules
/* rules */)
216 // Tells the render frame to load all blocked plugins with the given identifier.
217 IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins
,
218 std::string
/* identifier */)
220 // Asks the renderer to send back stats on the WebCore cache broken down by
222 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats
)
224 // Tells the renderer to create a FieldTrial, and by using a 100% probability
225 // for the FieldTrial, forces the FieldTrial to have assigned group name.
226 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup
,
227 std::string
/* field trial name */,
228 std::string
/* group name that was assigned. */)
230 // Asks the renderer to send back V8 heap stats.
231 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats
)
233 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetPageSequenceNumber
,
234 int /* page_seq_no */)
236 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant
)
238 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetDisplayInstantResults
,
239 bool /* display_instant_results */)
241 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFocusChanged
,
242 OmniboxFocusState
/* new_focus_state */,
243 OmniboxFocusChangeReason
/* reason */)
245 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMarginChange
, int /* start */)
247 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged
,
248 std::vector
<InstantMostVisitedItem
> /* items */)
250 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation
,
251 bool /* is_app_launcher_enabled */)
253 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress
,
254 bool /* input_in_progress */)
256 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch
,
257 InstantSuggestion
/* suggestion */)
259 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSubmit
,
260 base::string16
/* value */)
262 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged
,
263 ThemeBackgroundInfo
/* value */)
265 IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult
,
266 base::string16
/* identity */,
267 bool /* identity_match */)
269 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch
)
271 // Sent on process startup to indicate whether this process is running in
273 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess
,
274 bool /* is_incognito_processs */)
276 // Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent.
277 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent
,
280 // Sent in response to ViewHostMsg_DidBlockRunningInsecureContent.
281 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent
,
284 IPC_MESSAGE_ROUTED0(ChromeViewMsg_ReloadFrame
)
286 // Tells the renderer whether or not a file system access has been allowed.
287 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestFileSystemAccessAsyncResponse
,
288 int /* request_id */,
291 // Sent when the profile changes the kSafeBrowsingEnabled preference.
292 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection
,
293 bool /* enable_phishing_detection */)
295 // Asks the renderer for a thumbnail of the image selected by the most
296 // recently opened context menu, if there is one. If the image's area
297 // is greater than thumbnail_min_area it will be downscaled to
298 // be within thumbnail_max_size. The possibly downsampled image will be
299 // returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message.
300 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode
,
301 int /* thumbnail_min_area_pixels */,
302 gfx::Size
/* thumbnail_max_size_pixels */)
304 // Notifies the renderer whether hiding/showing the top controls is enabled,
305 // what the current state should be, and whether or not to animate to the
307 IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState
,
308 content::TopControlsState
/* constraints */,
309 content::TopControlsState
/* current */,
313 // Updates the window features of the render view.
314 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures
,
315 blink::WebWindowFeatures
/* window_features */)
317 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK
,
318 SkBitmap
/* thumbnail */,
319 gfx::Size
/* original size of the image */)
321 #if defined(OS_ANDROID)
322 // Asks the renderer to return information about whether the current page can
323 // be treated as a webapp.
324 IPC_MESSAGE_ROUTED1(ChromeViewMsg_RetrieveWebappInformation
,
325 GURL
/* expected_url */)
327 // Asks the renderer to return information about the given meta tag.
328 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RetrieveMetaTagContent
,
329 GURL
/* expected_url */,
330 std::string
/* tag_name */ )
331 #endif // defined(OS_ANDROID)
333 // chrome.principals messages ------------------------------------------------
335 // Message sent from the renderer to the browser to get the list of browser
336 // managed accounts for the given origin.
337 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts
,
338 GURL
/* current URL */,
339 std::vector
<std::string
> /* managed accounts */)
341 // Message sent from the renderer to the browser to show the browser account
343 IPC_MESSAGE_CONTROL0(ChromeViewHostMsg_ShowBrowserAccountManagementUI
)
345 // JavaScript related messages -----------------------------------------------
347 // Tells the frame it is displaying an interstitial page.
348 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial
)
350 // Provides the renderer with the results of the browser's investigation into
351 // why a recent main frame load failed (currently, just DNS probe result).
352 // NetErrorHelper will receive this mesage and replace or update the error
353 // page with more specific troubleshooting suggestions.
354 IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo
,
355 int /* DNS probe status */)
357 // Provides the information needed by the renderer process to contact a
358 // navigation correction service. Handled by the NetErrorHelper.
359 IPC_MESSAGE_ROUTED5(ChromeViewMsg_SetNavigationCorrectionInfo
,
360 GURL
/* Navigation correction service base URL */,
361 std::string
/* language */,
362 std::string
/* origin_country */,
363 std::string
/* API key to use */,
364 GURL
/* Google Search URL to use */)
366 //-----------------------------------------------------------------------------
368 // These are messages sent from the renderer to the browser process.
370 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats
,
371 blink::WebCache::UsageStats
/* stats */)
373 // Tells the browser that content in the current page was blocked due to the
374 // user's content settings.
375 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_ContentBlocked
,
376 ContentSettingsType
/* type of blocked content */)
378 // Sent by the renderer process to check whether access to web databases is
379 // granted by content settings.
380 IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase
,
381 int /* render_frame_id */,
382 GURL
/* origin_url */,
383 GURL
/* top origin url */,
384 base::string16
/* database name */,
385 base::string16
/* database display name */,
388 // Sent by the renderer process to check whether access to DOM Storage is
389 // granted by content settings.
390 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage
,
391 int /* render_frame_id */,
392 GURL
/* origin_url */,
393 GURL
/* top origin url */,
394 bool /* if true local storage, otherwise session */,
397 // Sent by the renderer process to check whether access to FileSystem is
398 // granted by content settings.
399 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_RequestFileSystemAccessSync
,
400 int /* render_frame_id */,
401 GURL
/* origin_url */,
402 GURL
/* top origin url */,
405 // Sent by the renderer process to check whether access to FileSystem is
406 // granted by content settings.
407 IPC_MESSAGE_CONTROL4(ChromeViewHostMsg_RequestFileSystemAccessAsync
,
408 int /* render_frame_id */,
409 int /* request_id */,
410 GURL
/* origin_url */,
411 GURL
/* top origin url */)
413 // Sent by the renderer process to check whether access to Indexed DBis
414 // granted by content settings.
415 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB
,
416 int /* render_frame_id */,
417 GURL
/* origin_url */,
418 GURL
/* top origin url */,
419 base::string16
/* database name */,
422 // Return information about a plugin for the given URL and MIME type.
423 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows
424 // about specific reasons why a plug-in can't be used, for example because it's
426 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo
,
427 int /* render_frame_id */,
429 GURL
/* top origin url */,
430 std::string
/* mime_type */,
431 ChromeViewHostMsg_GetPluginInfo_Output
/* output */)
433 #if defined(ENABLE_PEPPER_CDMS)
434 // Returns whether any internal plugin supporting |mime_type| is registered and
435 // enabled. Does not determine whether the plugin can actually be instantiated
436 // (e.g. whether it has all its dependencies).
437 // When the returned *|is_available| is true, |additional_param_names| and
438 // |additional_param_values| contain the name-value pairs, if any, specified
439 // for the *first* non-disabled plugin found that is registered for |mime_type|.
440 IPC_SYNC_MESSAGE_CONTROL1_3(
441 ChromeViewHostMsg_IsInternalPluginAvailableForMimeType
,
442 std::string
/* mime_type */,
443 bool /* is_available */,
444 std::vector
<base::string16
> /* additional_param_names */,
445 std::vector
<base::string16
> /* additional_param_values */)
448 #if defined(ENABLE_PLUGIN_INSTALLATION)
449 // Tells the browser to search for a plug-in that can handle the given MIME
450 // type. The result will be sent asynchronously to the routing ID
452 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin
,
453 int /* placeholder_id */,
454 std::string
/* mime_type */)
456 // Notifies the browser that a missing plug-in placeholder has been removed, so
457 // the corresponding PluginPlaceholderHost can be deleted.
458 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost
,
459 int /* placeholder_id */)
461 // Notifies a missing plug-in placeholder that a plug-in with name |plugin_name|
463 IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin
,
464 base::string16
/* plugin_name */)
466 // Notifies a missing plug-in placeholder that no plug-in has been found.
467 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin
)
469 // Notifies a missing plug-in placeholder that we have started downloading
471 IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin
)
473 // Notifies a missing plug-in placeholder that we have finished downloading
475 IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin
)
477 // Notifies a missing plug-in placeholder that there was an error downloading
479 IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin
,
480 std::string
/* message */)
481 #endif // defined(ENABLE_PLUGIN_INSTALLATION)
483 // Notifies a missing plug-in placeholder that the user cancelled downloading
485 IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin
)
487 // Tells the browser to open chrome://plugins in a new tab. We use a separate
488 // message because renderer processes aren't allowed to directly navigate to
490 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins
)
492 // Tells the browser that there was an error loading a plug-in.
493 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin
,
494 base::FilePath
/* plugin_path */)
496 // Tells the browser that we blocked a plug-in because NPAPI is not supported.
497 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported
,
498 std::string
/* identifer */)
500 // Tells the renderer that the NPAPI cannot be used. For example Ash on windows.
501 IPC_MESSAGE_ROUTED0(ChromeViewMsg_NPAPINotSupported
)
503 // Notification that the page has an OpenSearch description document
504 // associated with it.
505 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD
,
508 search_provider::OSDDType
)
510 // Find out if the given url's security origin is installed as a search
512 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState
,
514 GURL
/* inquiry url */,
515 search_provider::InstallState
/* install */)
517 // Sends back stats about the V8 heap.
518 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats
,
519 int /* size of heap (allocated from the OS) */,
520 int /* bytes in use */)
522 // Request for a DNS prefetch of the names in the array.
523 // NameList is typedef'ed std::vector<std::string>
524 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_DnsPrefetch
,
525 std::vector
<std::string
> /* hostnames */)
527 // Request for preconnect to host providing resource specified by URL
528 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_Preconnect
,
529 GURL
/* preconnect target url */)
531 // Notifies when a plugin couldn't be loaded because it's outdated.
532 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin
,
533 int /* placeholder ID */,
534 std::string
/* plug-in group identifier */)
536 // Notifies when a plugin couldn't be loaded because it requires
537 // user authorization.
538 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin
,
539 base::string16
/* name */,
540 std::string
/* plug-in group identifier */)
542 // Provide the browser process with information about the WebCore resource
543 // cache and current renderer framerate.
544 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats
,
545 blink::WebCache::ResourceTypeStats
)
547 // Message sent from the renderer to the browser to notify it of a
548 // window.print() call which should cancel the prerender. The message is sent
549 // only when the renderer is prerendering.
550 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting
)
552 // Sent when the renderer was prevented from displaying insecure content in
553 // a secure page by a security policy. The page may appear incomplete.
554 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent
)
556 // Sent when the renderer was prevented from running insecure content in
557 // a secure origin by a security policy. The page may appear incomplete.
558 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent
)
560 #if defined(OS_ANDROID)
561 // Contains info about whether the current page can be treated as a webapp.
562 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveWebappInformation
,
564 bool /* is_mobile_webapp_capable */,
565 bool /* is_apple_mobile_webapp_capable */,
566 GURL
/* expected_url */)
568 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveMetaTagContent
,
570 std::string
/* tag_name */,
571 std::string
/* tag_content */,
572 GURL
/* expected_url */)
573 #endif // defined(OS_ANDROID)
575 // The currently displayed PDF has an unsupported feature.
576 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature
)
578 // Brings up SaveAs... dialog to save specified URL.
579 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PDFSaveURLAs
,
581 content::Referrer
/* referrer */)
583 // Updates the content restrictions, i.e. to disable print/copy.
584 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_PDFUpdateContentRestrictions
,
585 int /* restrictions */)
587 // Brings up a Password... dialog for protected documents.
588 IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_PDFModalPromptForPassword
,
589 std::string
/* prompt */,
590 std::string
/* actual_value */)
592 // This message indicates the error appeared in the frame.
593 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError
,
596 // This message indicates the monitored frame loading had completed.
597 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted
)
599 // Logs events from InstantExtended New Tab Pages.
600 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_LogEvent
,
601 int /* page_seq_no */,
602 NTPLoggingEventType
/* event */)
604 // Logs an impression on one of the Most Visited tile on the InstantExtended
606 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedImpression
,
607 int /* page_seq_no */,
609 base::string16
/* provider */)
611 // Logs a navigation on one of the Most Visited tile on the InstantExtended
613 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedNavigation
,
614 int /* page_seq_no */,
616 base::string16
/* provider */)
618 // The Instant page asks for Chrome identity check against |identity|.
619 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ChromeIdentityCheck
,
620 int /* page_seq_no */,
621 base::string16
/* identity */)
623 // Tells InstantExtended to set the omnibox focus state.
624 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FocusOmnibox
,
625 int /* page_seq_no */,
626 OmniboxFocusState
/* state */)
628 // Tells InstantExtended to paste text into the omnibox. If text is empty,
629 // the clipboard contents will be pasted. This causes the omnibox dropdown to
631 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PasteAndOpenDropdown
,
632 int /* page_seq_no */,
633 base::string16
/* text to be pasted */)
635 // Tells InstantExtended whether the embedded search API is supported.
636 // See http://dev.chromium.org/embeddedsearch
637 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined
,
638 int /* page_seq_no */,
641 // Tells InstantExtended to delete a most visited item.
642 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem
,
643 int /* page_seq_no */,
646 // Tells InstantExtended to navigate the active tab to a possibly privileged
648 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_SearchBoxNavigate
,
649 int /* page_seq_no */,
650 GURL
/* destination */,
651 WindowOpenDisposition
/* disposition */,
652 bool /*is_most_visited_item_url*/)
654 // Tells InstantExtended to undo all most visited item deletions.
655 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions
,
656 int /* page_seq_no */)
658 // Tells InstantExtended to undo one most visited item deletion.
659 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion
,
660 int /* page_seq_no */,
663 // Tells InstantExtended whether the page supports voice search.
664 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetVoiceSearchSupported
,
665 int /* page_seq_no */,
666 bool /* supported */)
668 // Tells the renderer a list of URLs which should be bounced back to the browser
669 // process so that they can be assigned to an Instant renderer.
670 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs
,
671 std::vector
<GURL
> /* search_urls */,
672 GURL
/* new_tab_page_url */)
674 #if defined(ENABLE_PLUGINS)
675 // Sent by the renderer to check if crash reporting is enabled.
676 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled
,