GoogleURLTrackerInfoBarDelegate: Initialize uninitialized member in constructor.
[chromium-blink-merge.git] / chrome / common / render_messages.h
blob8e128b97d308d3b409e83a1c066ed61cbd27394f
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.
6 #include <stdint.h>
7 #include <map>
8 #include <set>
9 #include <string>
10 #include <vector>
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/autocomplete_match_type.h"
20 #include "chrome/common/common_param_traits.h"
21 #include "chrome/common/content_settings.h"
22 #include "chrome/common/content_settings_pattern.h"
23 #include "chrome/common/instant_types.h"
24 #include "chrome/common/ntp_logging_events.h"
25 #include "chrome/common/omnibox_focus_state.h"
26 #include "chrome/common/search_provider.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 "extensions/common/stack_frame.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/skia/include/core/SkBitmap.h"
36 #include "third_party/WebKit/public/web/WebCache.h"
37 #include "third_party/WebKit/public/web/WebConsoleMessage.h"
38 #include "ui/base/window_open_disposition.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 {
48 enum Value {
49 kAllowed,
50 kBlocked,
51 kBlockedByPolicy,
52 kClickToPlay,
53 kDisabled,
54 kNotFound,
55 kNPAPINotSupported,
56 kOutdatedBlocked,
57 kOutdatedDisallowed,
58 kUnauthorized,
61 ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed) {}
63 Value value;
66 namespace IPC {
68 template <>
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);
76 } // namespace IPC
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)
104 IPC_STRUCT_END()
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_STRUCT_TRAITS_BEGIN(extensions::StackFrame)
188 IPC_STRUCT_TRAITS_MEMBER(line_number)
189 IPC_STRUCT_TRAITS_MEMBER(column_number)
190 IPC_STRUCT_TRAITS_MEMBER(source)
191 IPC_STRUCT_TRAITS_MEMBER(function)
192 IPC_STRUCT_TRAITS_END()
194 IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType,
195 NTP_NUM_EVENT_TYPES)
197 //-----------------------------------------------------------------------------
198 // RenderView messages
199 // These are messages sent from the browser to the renderer process.
201 // Tells the renderer to set its maximum cache size to the supplied value.
202 IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities,
203 size_t /* min_dead_capacity */,
204 size_t /* max_dead_capacity */,
205 size_t /* capacity */)
207 // Tells the renderer to clear the cache.
208 IPC_MESSAGE_CONTROL1(ChromeViewMsg_ClearCache,
209 bool /* on_navigation */)
211 // Set the top-level frame to the provided name.
212 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetName,
213 std::string /* frame_name */)
215 // For WebUI testing, this message requests JavaScript to be executed at a time
216 // which is late enough to not be thrown out, and early enough to be before
217 // onload events are fired.
218 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript,
219 base::string16 /* javascript */)
221 // Set the content setting rules stored by the renderer.
222 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules,
223 RendererContentSettingRules /* rules */)
225 // Tells the render frame to load all blocked plugins with the given identifier.
226 IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins,
227 std::string /* identifier */)
229 // Asks the renderer to send back stats on the WebCore cache broken down by
230 // resource types.
231 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats)
233 // Tells the renderer to create a FieldTrial, and by using a 100% probability
234 // for the FieldTrial, forces the FieldTrial to have assigned group name.
235 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup,
236 std::string /* field trial name */,
237 std::string /* group name that was assigned. */)
239 // Asks the renderer to send back V8 heap stats.
240 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats)
242 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetPageSequenceNumber,
243 int /* page_seq_no */)
245 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant)
247 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetDisplayInstantResults,
248 bool /* display_instant_results */)
250 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFocusChanged,
251 OmniboxFocusState /* new_focus_state */,
252 OmniboxFocusChangeReason /* reason */)
254 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMarginChange, int /* start */)
256 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged,
257 std::vector<InstantMostVisitedItem> /* items */)
259 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation,
260 bool /* is_app_launcher_enabled */)
262 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress,
263 bool /* input_in_progress */)
265 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch,
266 InstantSuggestion /* suggestion */)
268 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSubmit,
269 base::string16 /* value */)
271 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged,
272 ThemeBackgroundInfo /* value */)
274 IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult,
275 base::string16 /* identity */,
276 bool /* identity_match */)
278 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch)
280 // Toggles visual muting of the render view area. This is on when a constrained
281 // window is showing.
282 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized,
283 bool /* deemphazied */)
285 // Sent on process startup to indicate whether this process is running in
286 // incognito mode.
287 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess,
288 bool /* is_incognito_processs */)
290 // Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent.
291 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent,
292 bool /* allowed */)
294 // Sent in response to ViewHostMsg_DidBlockRunningInsecureContent.
295 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent,
296 bool /* allowed */)
298 IPC_MESSAGE_ROUTED0(ChromeViewMsg_ReloadFrame)
300 // Tells the renderer whether or not a file system access has been allowed.
301 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestFileSystemAccessAsyncResponse,
302 int /* request_id */,
303 bool /* allowed */)
305 // Sent when the profile changes the kSafeBrowsingEnabled preference.
306 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection,
307 bool /* enable_phishing_detection */)
309 // Asks the renderer for a thumbnail of the image selected by the most
310 // recently opened context menu, if there is one. If the image's area
311 // is greater than thumbnail_min_area it will be downscaled to
312 // be within thumbnail_max_size. The possibly downsampled image will be
313 // returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message.
314 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode,
315 int /* thumbnail_min_area_pixels */,
316 gfx::Size /* thumbnail_max_size_pixels */)
318 // Notifies the renderer whether hiding/showing the top controls is enabled,
319 // what the current state should be, and whether or not to animate to the
320 // proper state.
321 IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState,
322 content::TopControlsState /* constraints */,
323 content::TopControlsState /* current */,
324 bool /* animate */)
327 // Updates the window features of the render view.
328 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures,
329 blink::WebWindowFeatures /* window_features */)
331 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK,
332 SkBitmap /* thumbnail */,
333 gfx::Size /* original size of the image */)
335 #if defined(OS_ANDROID)
336 // Asks the renderer to return information about whether the current page can
337 // be treated as a webapp.
338 IPC_MESSAGE_ROUTED1(ChromeViewMsg_RetrieveWebappInformation,
339 GURL /* expected_url */)
341 // Asks the renderer to return information about the given meta tag.
342 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RetrieveMetaTagContent,
343 GURL /* expected_url */,
344 std::string /* tag_name */ )
345 #endif // defined(OS_ANDROID)
347 // chrome.principals messages ------------------------------------------------
349 // Message sent from the renderer to the browser to get the list of browser
350 // managed accounts for the given origin.
351 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts,
352 GURL /* current URL */,
353 std::vector<std::string> /* managed accounts */)
355 // Message sent from the renderer to the browser to show the browser account
356 // management UI.
357 IPC_MESSAGE_CONTROL0(ChromeViewHostMsg_ShowBrowserAccountManagementUI)
359 // JavaScript related messages -----------------------------------------------
361 // Asks the renderer to send back FPS.
362 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetFPS)
364 // Tells the frame it is displaying an interstitial page.
365 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial)
367 // Provides the renderer with the results of the browser's investigation into
368 // why a recent main frame load failed (currently, just DNS probe result).
369 // NetErrorHelper will receive this mesage and replace or update the error
370 // page with more specific troubleshooting suggestions.
371 IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo,
372 int /* DNS probe status */)
374 // Provides the information needed by the renderer process to contact a
375 // navigation correction service. Handled by the NetErrorHelper.
376 IPC_MESSAGE_ROUTED5(ChromeViewMsg_SetNavigationCorrectionInfo,
377 GURL /* Navigation correction service base URL */,
378 std::string /* language */,
379 std::string /* origin_country */,
380 std::string /* API key to use */,
381 GURL /* Google Search URL to use */)
383 //-----------------------------------------------------------------------------
384 // Misc messages
385 // These are messages sent from the renderer to the browser process.
387 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats,
388 blink::WebCache::UsageStats /* stats */)
390 // Tells the browser that content in the current page was blocked due to the
391 // user's content settings.
392 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_ContentBlocked,
393 ContentSettingsType /* type of blocked content */)
395 // Sent by the renderer process to check whether access to web databases is
396 // granted by content settings.
397 IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase,
398 int /* render_frame_id */,
399 GURL /* origin_url */,
400 GURL /* top origin url */,
401 base::string16 /* database name */,
402 base::string16 /* database display name */,
403 bool /* allowed */)
405 // Sent by the renderer process to check whether access to DOM Storage is
406 // granted by content settings.
407 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage,
408 int /* render_frame_id */,
409 GURL /* origin_url */,
410 GURL /* top origin url */,
411 bool /* if true local storage, otherwise session */,
412 bool /* allowed */)
414 // Sent by the renderer process to check whether access to FileSystem is
415 // granted by content settings.
416 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_RequestFileSystemAccessSync,
417 int /* render_frame_id */,
418 GURL /* origin_url */,
419 GURL /* top origin url */,
420 bool /* allowed */)
422 // Sent by the renderer process to check whether access to FileSystem is
423 // granted by content settings.
424 IPC_MESSAGE_CONTROL4(ChromeViewHostMsg_RequestFileSystemAccessAsync,
425 int /* render_frame_id */,
426 int /* request_id */,
427 GURL /* origin_url */,
428 GURL /* top origin url */)
430 // Sent by the renderer process to check whether access to Indexed DBis
431 // granted by content settings.
432 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB,
433 int /* render_frame_id */,
434 GURL /* origin_url */,
435 GURL /* top origin url */,
436 base::string16 /* database name */,
437 bool /* allowed */)
439 // Return information about a plugin for the given URL and MIME type.
440 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows
441 // about specific reasons why a plug-in can't be used, for example because it's
442 // disabled.
443 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo,
444 int /* render_frame_id */,
445 GURL /* url */,
446 GURL /* top origin url */,
447 std::string /* mime_type */,
448 ChromeViewHostMsg_GetPluginInfo_Output /* output */)
450 // Returns whether any internal plugin supporting |mime_type| is registered
451 // Does not determine whether the plugin can actually be instantiated
452 // (e.g. whether it is allowed or has all its dependencies).
453 // When the returned *|is_registered| is true, |additional_param_names| and
454 // |additional_param_values| contain the name-value pairs, if any, specified
455 // for the *first* plugin found that is registered for |mime_type|.
456 IPC_SYNC_MESSAGE_CONTROL1_3(
457 ChromeViewHostMsg_IsInternalPluginRegisteredForMimeType,
458 std::string /* mime_type */,
459 bool /* registered */,
460 std::vector<base::string16> /* additional_param_names */,
461 std::vector<base::string16> /* additional_param_values */)
463 // Informs the browser of updated frame names.
464 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_UpdateFrameName,
465 bool /* is_top_level */,
466 std::string /* name */)
468 #if defined(ENABLE_PLUGIN_INSTALLATION)
469 // Tells the browser to search for a plug-in that can handle the given MIME
470 // type. The result will be sent asynchronously to the routing ID
471 // |placeholder_id|.
472 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin,
473 int /* placeholder_id */,
474 std::string /* mime_type */)
476 // Notifies the browser that a missing plug-in placeholder has been removed, so
477 // the corresponding PluginPlaceholderHost can be deleted.
478 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost,
479 int /* placeholder_id */)
481 // Notifies a missing plug-in placeholder that a plug-in with name |plugin_name|
482 // has been found.
483 IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin,
484 base::string16 /* plugin_name */)
486 // Notifies a missing plug-in placeholder that no plug-in has been found.
487 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin)
489 // Notifies a missing plug-in placeholder that we have started downloading
490 // the plug-in.
491 IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin)
493 // Notifies a missing plug-in placeholder that we have finished downloading
494 // the plug-in.
495 IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin)
497 // Notifies a missing plug-in placeholder that there was an error downloading
498 // the plug-in.
499 IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin,
500 std::string /* message */)
501 #endif // defined(ENABLE_PLUGIN_INSTALLATION)
503 // Notifies a missing plug-in placeholder that the user cancelled downloading
504 // the plug-in.
505 IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin)
507 // Tells the browser to open chrome://plugins in a new tab. We use a separate
508 // message because renderer processes aren't allowed to directly navigate to
509 // chrome:// URLs.
510 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins)
512 // Tells the browser that there was an error loading a plug-in.
513 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin,
514 base::FilePath /* plugin_path */)
516 // Tells the browser that we blocked a plug-in because NPAPI is not supported.
517 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported,
518 std::string /* identifer */)
520 // Tells the renderer that the NPAPI cannot be used. For example Ash on windows.
521 IPC_MESSAGE_ROUTED0(ChromeViewMsg_NPAPINotSupported)
523 // Notification that the page has an OpenSearch description document
524 // associated with it.
525 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD,
526 GURL /* page_url */,
527 GURL /* osdd_url */,
528 search_provider::OSDDType)
530 // Find out if the given url's security origin is installed as a search
531 // provider.
532 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState,
533 GURL /* page url */,
534 GURL /* inquiry url */,
535 search_provider::InstallState /* install */)
537 // Sends back stats about the V8 heap.
538 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats,
539 int /* size of heap (allocated from the OS) */,
540 int /* bytes in use */)
542 // Request for a DNS prefetch of the names in the array.
543 // NameList is typedef'ed std::vector<std::string>
544 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_DnsPrefetch,
545 std::vector<std::string> /* hostnames */)
547 // Request for preconnect to host providing resource specified by URL
548 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_Preconnect,
549 GURL /* preconnect target url */)
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 /* plug-in 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 /* plug-in 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 #if defined(ENABLE_EXTENSIONS)
573 // Sent by the renderer to check if a URL has permission to trigger a clipboard
574 // read/write operation from the DOM.
575 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_CanTriggerClipboardRead,
576 GURL /* origin */,
577 bool /* allowed */)
578 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_CanTriggerClipboardWrite,
579 GURL /* origin */,
580 bool /* allowed */)
581 #endif
583 // Sent when the renderer was prevented from displaying insecure content in
584 // a secure page by a security policy. The page may appear incomplete.
585 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent)
587 // Sent when the renderer was prevented from running insecure content in
588 // a secure origin by a security policy. The page may appear incomplete.
589 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent)
591 #if defined(OS_ANDROID)
592 // Contains info about whether the current page can be treated as a webapp.
593 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveWebappInformation,
594 bool /* success */,
595 bool /* is_mobile_webapp_capable */,
596 bool /* is_apple_mobile_webapp_capable */,
597 GURL /* expected_url */)
599 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveMetaTagContent,
600 bool /* success */,
601 std::string /* tag_name */,
602 std::string /* tag_content */,
603 GURL /* expected_url */)
604 #endif // defined(OS_ANDROID)
606 // The currently displayed PDF has an unsupported feature.
607 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature)
609 // Brings up SaveAs... dialog to save specified URL.
610 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PDFSaveURLAs,
611 GURL /* url */,
612 content::Referrer /* referrer */)
614 // Updates the content restrictions, i.e. to disable print/copy.
615 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_PDFUpdateContentRestrictions,
616 int /* restrictions */)
618 // Brings up a Password... dialog for protected documents.
619 IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_PDFModalPromptForPassword,
620 std::string /* prompt */,
621 std::string /* actual_value */)
623 // This message indicates the error appeared in the frame.
624 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError,
625 int /* error */)
627 // This message indicates the monitored frame loading had completed.
628 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted)
630 // Provide the browser process with current renderer framerate.
631 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS,
632 int /* routing id */,
633 float /* frames per second */)
635 // Logs events from InstantExtended New Tab Pages.
636 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_LogEvent,
637 int /* page_seq_no */,
638 NTPLoggingEventType /* event */)
640 // Logs an impression on one of the Most Visited tile on the InstantExtended
641 // New Tab Page.
642 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedImpression,
643 int /* page_seq_no */,
644 int /* position */,
645 base::string16 /* provider */)
647 // Logs a navigation on one of the Most Visited tile on the InstantExtended
648 // New Tab Page.
649 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedNavigation,
650 int /* page_seq_no */,
651 int /* position */,
652 base::string16 /* provider */)
654 // The Instant page asks for Chrome identity check against |identity|.
655 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ChromeIdentityCheck,
656 int /* page_seq_no */,
657 base::string16 /* identity */)
659 // Tells InstantExtended to set the omnibox focus state.
660 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FocusOmnibox,
661 int /* page_seq_no */,
662 OmniboxFocusState /* state */)
664 // Tells InstantExtended to paste text into the omnibox. If text is empty,
665 // the clipboard contents will be pasted. This causes the omnibox dropdown to
666 // open.
667 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PasteAndOpenDropdown,
668 int /* page_seq_no */,
669 base::string16 /* text to be pasted */)
671 // Tells InstantExtended whether the embedded search API is supported.
672 // See http://dev.chromium.org/embeddedsearch
673 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined,
674 int /* page_seq_no */,
675 bool /* result */)
677 // Tells InstantExtended to delete a most visited item.
678 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem,
679 int /* page_seq_no */,
680 GURL /* url */)
682 // Tells InstantExtended to navigate the active tab to a possibly privileged
683 // URL.
684 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_SearchBoxNavigate,
685 int /* page_seq_no */,
686 GURL /* destination */,
687 WindowOpenDisposition /* disposition */,
688 bool /*is_most_visited_item_url*/)
690 // Tells InstantExtended to undo all most visited item deletions.
691 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions,
692 int /* page_seq_no */)
694 // Tells InstantExtended to undo one most visited item deletion.
695 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion,
696 int /* page_seq_no */,
697 GURL /* url */)
699 // Tells InstantExtended whether the page supports voice search.
700 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetVoiceSearchSupported,
701 int /* page_seq_no */,
702 bool /* supported */)
704 // Tells the renderer a list of URLs which should be bounced back to the browser
705 // process so that they can be assigned to an Instant renderer.
706 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs,
707 std::vector<GURL> /* search_urls */,
708 GURL /* new_tab_page_url */)
710 // Tells listeners that a detailed message was reported to the console by
711 // WebKit.
712 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DetailedConsoleMessageAdded,
713 base::string16 /* message */,
714 base::string16 /* source */,
715 extensions::StackTrace /* stack trace */,
716 int32 /* severity level */)
718 #if defined(ENABLE_PLUGINS)
719 // Sent by the renderer to check if crash reporting is enabled.
720 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled,
721 bool /* enabled */)
722 #endif