Updates the mic icon status based on the device's audio state (2nd)
[chromium-blink-merge.git] / chrome / common / render_messages.h
blobf80b5dcdfdef5cdc3ef621ed22c15b0f53f83d44
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/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/ipc/gfx_param_traits.h"
40 #include "ui/gfx/rect.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 {
49 enum Value {
50 kAllowed,
51 kBlocked,
52 kBlockedByPolicy,
53 kClickToPlay,
54 kDisabled,
55 kNotFound,
56 kNPAPINotSupported,
57 kOutdatedBlocked,
58 kOutdatedDisallowed,
59 kUnauthorized,
62 ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed) {}
64 Value value;
67 namespace IPC {
69 template <>
70 struct ParamTraits<ContentSettingsPattern> {
71 typedef ContentSettingsPattern param_type;
72 static void Write(Message* m, const param_type& p);
73 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
74 static void Log(const param_type& p, std::string* l);
77 } // namespace IPC
79 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
81 #define IPC_MESSAGE_START ChromeMsgStart
83 IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status::Value,
84 ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized)
85 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusChangeReason,
86 OMNIBOX_FOCUS_CHANGE_REASON_LAST)
87 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusState, OMNIBOX_FOCUS_STATE_LAST)
88 IPC_ENUM_TRAITS_MAX_VALUE(search_provider::OSDDType,
89 search_provider::OSDD_TYPE_LAST)
90 IPC_ENUM_TRAITS(search_provider::InstallState)
91 IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment)
92 IPC_ENUM_TRAITS(ThemeBackgroundImageTiling)
93 IPC_ENUM_TRAITS(blink::WebConsoleMessage::Level)
94 IPC_ENUM_TRAITS(content::TopControlsState)
96 IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status)
97 IPC_STRUCT_TRAITS_MEMBER(value)
98 IPC_STRUCT_TRAITS_END()
100 // Output parameters for ChromeViewHostMsg_GetPluginInfo message.
101 IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output)
102 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status)
103 IPC_STRUCT_MEMBER(content::WebPluginInfo, plugin)
104 IPC_STRUCT_MEMBER(std::string, actual_mime_type)
105 IPC_STRUCT_MEMBER(std::string, group_identifier)
106 IPC_STRUCT_MEMBER(base::string16, group_name)
107 IPC_STRUCT_END()
109 IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts)
110 IPC_STRUCT_TRAITS_MEMBER(scheme)
111 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard)
112 IPC_STRUCT_TRAITS_MEMBER(host)
113 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard)
114 IPC_STRUCT_TRAITS_MEMBER(port)
115 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard)
116 IPC_STRUCT_TRAITS_MEMBER(path)
117 IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard)
118 IPC_STRUCT_TRAITS_END()
120 IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource)
121 IPC_STRUCT_TRAITS_MEMBER(primary_pattern)
122 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern)
123 IPC_STRUCT_TRAITS_MEMBER(setting)
124 IPC_STRUCT_TRAITS_MEMBER(source)
125 IPC_STRUCT_TRAITS_MEMBER(incognito)
126 IPC_STRUCT_TRAITS_END()
128 IPC_STRUCT_TRAITS_BEGIN(EmbeddedSearchRequestParams)
129 IPC_STRUCT_TRAITS_MEMBER(search_query)
130 IPC_STRUCT_TRAITS_MEMBER(original_query)
131 IPC_STRUCT_TRAITS_MEMBER(rlz_parameter_value)
132 IPC_STRUCT_TRAITS_MEMBER(input_encoding)
133 IPC_STRUCT_TRAITS_MEMBER(assisted_query_stats)
134 IPC_STRUCT_TRAITS_END()
136 IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion)
137 IPC_STRUCT_TRAITS_MEMBER(text)
138 IPC_STRUCT_TRAITS_MEMBER(metadata)
139 IPC_STRUCT_TRAITS_END()
141 IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem)
142 IPC_STRUCT_TRAITS_MEMBER(url)
143 IPC_STRUCT_TRAITS_MEMBER(title)
144 IPC_STRUCT_TRAITS_END()
146 IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules)
147 IPC_STRUCT_TRAITS_MEMBER(image_rules)
148 IPC_STRUCT_TRAITS_MEMBER(script_rules)
149 IPC_STRUCT_TRAITS_END()
151 IPC_STRUCT_TRAITS_BEGIN(RGBAColor)
152 IPC_STRUCT_TRAITS_MEMBER(r)
153 IPC_STRUCT_TRAITS_MEMBER(g)
154 IPC_STRUCT_TRAITS_MEMBER(b)
155 IPC_STRUCT_TRAITS_MEMBER(a)
156 IPC_STRUCT_TRAITS_END()
158 IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo)
159 IPC_STRUCT_TRAITS_MEMBER(using_default_theme)
160 IPC_STRUCT_TRAITS_MEMBER(background_color)
161 IPC_STRUCT_TRAITS_MEMBER(text_color)
162 IPC_STRUCT_TRAITS_MEMBER(link_color)
163 IPC_STRUCT_TRAITS_MEMBER(text_color_light)
164 IPC_STRUCT_TRAITS_MEMBER(header_color)
165 IPC_STRUCT_TRAITS_MEMBER(section_border_color)
166 IPC_STRUCT_TRAITS_MEMBER(theme_id)
167 IPC_STRUCT_TRAITS_MEMBER(image_horizontal_alignment)
168 IPC_STRUCT_TRAITS_MEMBER(image_vertical_alignment)
169 IPC_STRUCT_TRAITS_MEMBER(image_tiling)
170 IPC_STRUCT_TRAITS_MEMBER(image_height)
171 IPC_STRUCT_TRAITS_MEMBER(has_attribution)
172 IPC_STRUCT_TRAITS_MEMBER(logo_alternate)
173 IPC_STRUCT_TRAITS_END()
175 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStat)
176 IPC_STRUCT_TRAITS_MEMBER(count)
177 IPC_STRUCT_TRAITS_MEMBER(size)
178 IPC_STRUCT_TRAITS_MEMBER(liveSize)
179 IPC_STRUCT_TRAITS_MEMBER(decodedSize)
180 IPC_STRUCT_TRAITS_END()
182 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStats)
183 IPC_STRUCT_TRAITS_MEMBER(images)
184 IPC_STRUCT_TRAITS_MEMBER(cssStyleSheets)
185 IPC_STRUCT_TRAITS_MEMBER(scripts)
186 IPC_STRUCT_TRAITS_MEMBER(xslStyleSheets)
187 IPC_STRUCT_TRAITS_MEMBER(fonts)
188 IPC_STRUCT_TRAITS_END()
190 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::UsageStats)
191 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity)
192 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity)
193 IPC_STRUCT_TRAITS_MEMBER(capacity)
194 IPC_STRUCT_TRAITS_MEMBER(liveSize)
195 IPC_STRUCT_TRAITS_MEMBER(deadSize)
196 IPC_STRUCT_TRAITS_END()
198 IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType,
199 NTP_EVENT_TYPE_LAST)
201 IPC_ENUM_TRAITS_MAX_VALUE(WebApplicationInfo::MobileCapable,
202 WebApplicationInfo::MOBILE_CAPABLE_APPLE)
204 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo)
205 IPC_STRUCT_TRAITS_MEMBER(url)
206 IPC_STRUCT_TRAITS_MEMBER(width)
207 IPC_STRUCT_TRAITS_MEMBER(height)
208 IPC_STRUCT_TRAITS_MEMBER(data)
209 IPC_STRUCT_TRAITS_END()
211 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo)
212 IPC_STRUCT_TRAITS_MEMBER(title)
213 IPC_STRUCT_TRAITS_MEMBER(description)
214 IPC_STRUCT_TRAITS_MEMBER(app_url)
215 IPC_STRUCT_TRAITS_MEMBER(icons)
216 IPC_STRUCT_TRAITS_MEMBER(mobile_capable)
217 IPC_STRUCT_TRAITS_END()
219 //-----------------------------------------------------------------------------
220 // RenderView messages
221 // These are messages sent from the browser to the renderer process.
223 #if !defined(OS_ANDROID) && !defined(OS_IOS)
224 // For WebUI testing, this message requests JavaScript to be executed at a time
225 // which is late enough to not be thrown out, and early enough to be before
226 // onload events are fired.
227 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript,
228 base::string16 /* javascript */)
229 #endif
231 // Set the content setting rules stored by the renderer.
232 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules,
233 RendererContentSettingRules /* rules */)
235 // Tells the render frame to load all blocked plugins with the given identifier.
236 IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins,
237 std::string /* identifier */)
239 // Asks the renderer to send back stats on the WebCore cache broken down by
240 // resource types.
241 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats)
243 // Tells the renderer to create a FieldTrial, and by using a 100% probability
244 // for the FieldTrial, forces the FieldTrial to have assigned group name.
245 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup,
246 std::string /* field trial name */,
247 std::string /* group name that was assigned. */)
249 // Asks the renderer to send back V8 heap stats.
250 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats)
252 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetPageSequenceNumber,
253 int /* page_seq_no */)
255 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant)
257 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetDisplayInstantResults,
258 bool /* display_instant_results */)
260 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFocusChanged,
261 OmniboxFocusState /* new_focus_state */,
262 OmniboxFocusChangeReason /* reason */)
264 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMarginChange, int /* start */)
266 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged,
267 std::vector<InstantMostVisitedItem> /* items */)
269 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation,
270 bool /* is_app_launcher_enabled */)
272 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress,
273 bool /* input_in_progress */)
275 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch,
276 InstantSuggestion /* suggestion */)
278 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxSubmit,
279 base::string16 /* value */,
280 EmbeddedSearchRequestParams /* params */)
282 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged,
283 ThemeBackgroundInfo /* value */)
285 IPC_MESSAGE_ROUTED1(ChromeViewMsg_HistorySyncCheckResult,
286 bool /* sync_history */)
288 IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult,
289 base::string16 /* identity */,
290 bool /* identity_match */)
292 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch)
294 // Sent on process startup to indicate whether this process is running in
295 // incognito mode.
296 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess,
297 bool /* is_incognito_processs */)
299 // Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent.
300 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent,
301 bool /* allowed */)
303 // Sent in response to ViewHostMsg_DidBlockRunningInsecureContent.
304 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent,
305 bool /* allowed */)
307 IPC_MESSAGE_ROUTED0(ChromeViewMsg_ReloadFrame)
309 // Tells the renderer whether or not a file system access has been allowed.
310 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestFileSystemAccessAsyncResponse,
311 int /* request_id */,
312 bool /* allowed */)
314 // Sent when the profile changes the kSafeBrowsingEnabled preference.
315 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection,
316 bool /* enable_phishing_detection */)
318 // Asks the renderer for a thumbnail of the image selected by the most
319 // recently opened context menu, if there is one. If the image's area
320 // is greater than thumbnail_min_area it will be downscaled to
321 // be within thumbnail_max_size. The possibly downsampled image will be
322 // returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message.
323 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode,
324 int /* thumbnail_min_area_pixels */,
325 gfx::Size /* thumbnail_max_size_pixels */)
327 // Notifies the renderer whether hiding/showing the top controls is enabled,
328 // what the current state should be, and whether or not to animate to the
329 // proper state.
330 IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState,
331 content::TopControlsState /* constraints */,
332 content::TopControlsState /* current */,
333 bool /* animate */)
336 // Updates the window features of the render view.
337 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures,
338 blink::WebWindowFeatures /* window_features */)
340 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK,
341 SkBitmap /* thumbnail */,
342 gfx::Size /* original size of the image */)
344 // Requests application info for the page. The renderer responds back with
345 // ChromeViewHostMsg_DidGetWebApplicationInfo.
346 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetWebApplicationInfo)
348 #if defined(OS_ANDROID)
349 // Asks the renderer to return information about the given meta tag.
350 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RetrieveMetaTagContent,
351 GURL /* expected_url */,
352 std::string /* tag_name */ )
353 #endif // defined(OS_ANDROID)
355 // chrome.principals messages ------------------------------------------------
357 // Message sent from the renderer to the browser to get the list of browser
358 // managed accounts for the given origin.
359 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts,
360 GURL /* current URL */,
361 std::vector<std::string> /* managed accounts */)
363 // Message sent from the renderer to the browser to show the browser account
364 // management UI.
365 IPC_MESSAGE_CONTROL0(ChromeViewHostMsg_ShowBrowserAccountManagementUI)
367 // JavaScript related messages -----------------------------------------------
369 // Tells the frame it is displaying an interstitial page.
370 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial)
372 // Provides the renderer with the results of the browser's investigation into
373 // why a recent main frame load failed (currently, just DNS probe result).
374 // NetErrorHelper will receive this mesage and replace or update the error
375 // page with more specific troubleshooting suggestions.
376 IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo,
377 int /* DNS probe status */)
379 // Provides the information needed by the renderer process to contact a
380 // navigation correction service. Handled by the NetErrorHelper.
381 IPC_MESSAGE_ROUTED5(ChromeViewMsg_SetNavigationCorrectionInfo,
382 GURL /* Navigation correction service base URL */,
383 std::string /* language */,
384 std::string /* origin_country */,
385 std::string /* API key to use */,
386 GURL /* Google Search URL to use */)
388 //-----------------------------------------------------------------------------
389 // Misc messages
390 // These are messages sent from the renderer to the browser process.
392 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats,
393 blink::WebCache::UsageStats /* stats */)
395 // Tells the browser that content in the current page was blocked due to the
396 // user's content settings.
397 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_ContentBlocked,
398 ContentSettingsType /* type of blocked content */)
400 // Sent by the renderer process to check whether access to web databases is
401 // granted by content settings.
402 IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase,
403 int /* render_frame_id */,
404 GURL /* origin_url */,
405 GURL /* top origin url */,
406 base::string16 /* database name */,
407 base::string16 /* database display name */,
408 bool /* allowed */)
410 // Sent by the renderer process to check whether access to DOM Storage is
411 // granted by content settings.
412 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage,
413 int /* render_frame_id */,
414 GURL /* origin_url */,
415 GURL /* top origin url */,
416 bool /* if true local storage, otherwise session */,
417 bool /* allowed */)
419 // Sent by the renderer process to check whether access to FileSystem is
420 // granted by content settings.
421 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_RequestFileSystemAccessSync,
422 int /* render_frame_id */,
423 GURL /* origin_url */,
424 GURL /* top origin url */,
425 bool /* allowed */)
427 // Sent by the renderer process to check whether access to FileSystem is
428 // granted by content settings.
429 IPC_MESSAGE_CONTROL4(ChromeViewHostMsg_RequestFileSystemAccessAsync,
430 int /* render_frame_id */,
431 int /* request_id */,
432 GURL /* origin_url */,
433 GURL /* top origin url */)
435 // Sent by the renderer process to check whether access to Indexed DBis
436 // granted by content settings.
437 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB,
438 int /* render_frame_id */,
439 GURL /* origin_url */,
440 GURL /* top origin url */,
441 base::string16 /* database name */,
442 bool /* allowed */)
444 // Return information about a plugin for the given URL and MIME type.
445 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows
446 // about specific reasons why a plug-in can't be used, for example because it's
447 // disabled.
448 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo,
449 int /* render_frame_id */,
450 GURL /* url */,
451 GURL /* top origin url */,
452 std::string /* mime_type */,
453 ChromeViewHostMsg_GetPluginInfo_Output /* output */)
455 #if defined(ENABLE_PEPPER_CDMS)
456 // Returns whether any internal plugin supporting |mime_type| is registered and
457 // enabled. Does not determine whether the plugin can actually be instantiated
458 // (e.g. whether it has all its dependencies).
459 // When the returned *|is_available| is true, |additional_param_names| and
460 // |additional_param_values| contain the name-value pairs, if any, specified
461 // for the *first* non-disabled plugin found that is registered for |mime_type|.
462 IPC_SYNC_MESSAGE_CONTROL1_3(
463 ChromeViewHostMsg_IsInternalPluginAvailableForMimeType,
464 std::string /* mime_type */,
465 bool /* is_available */,
466 std::vector<base::string16> /* additional_param_names */,
467 std::vector<base::string16> /* additional_param_values */)
468 #endif
470 #if defined(ENABLE_PLUGIN_INSTALLATION)
471 // Tells the browser to search for a plug-in that can handle the given MIME
472 // type. The result will be sent asynchronously to the routing ID
473 // |placeholder_id|.
474 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin,
475 int /* placeholder_id */,
476 std::string /* mime_type */)
478 // Notifies the browser that a missing plug-in placeholder has been removed, so
479 // the corresponding PluginPlaceholderHost can be deleted.
480 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost,
481 int /* placeholder_id */)
483 // Notifies a missing plug-in placeholder that a plug-in with name |plugin_name|
484 // has been found.
485 IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin,
486 base::string16 /* plugin_name */)
488 // Notifies a missing plug-in placeholder that no plug-in has been found.
489 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin)
491 // Notifies a missing plug-in placeholder that we have started downloading
492 // the plug-in.
493 IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin)
495 // Notifies a missing plug-in placeholder that we have finished downloading
496 // the plug-in.
497 IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin)
499 // Notifies a missing plug-in placeholder that there was an error downloading
500 // the plug-in.
501 IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin,
502 std::string /* message */)
503 #endif // defined(ENABLE_PLUGIN_INSTALLATION)
505 // Notifies a missing plug-in placeholder that the user cancelled downloading
506 // the plug-in.
507 IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin)
509 // Tells the browser to open chrome://plugins in a new tab. We use a separate
510 // message because renderer processes aren't allowed to directly navigate to
511 // chrome:// URLs.
512 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins)
514 // Tells the browser that there was an error loading a plug-in.
515 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin,
516 base::FilePath /* plugin_path */)
518 // Tells the browser that we blocked a plug-in because NPAPI is not supported.
519 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported,
520 std::string /* identifer */)
522 // Tells the renderer that the NPAPI cannot be used. For example Ash on windows.
523 IPC_MESSAGE_ROUTED0(ChromeViewMsg_NPAPINotSupported)
525 // Notification that the page has an OpenSearch description document
526 // associated with it.
527 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD,
528 GURL /* page_url */,
529 GURL /* osdd_url */,
530 search_provider::OSDDType)
532 // Find out if the given url's security origin is installed as a search
533 // provider.
534 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState,
535 GURL /* page url */,
536 GURL /* inquiry url */,
537 search_provider::InstallState /* install */)
539 // Sends back stats about the V8 heap.
540 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats,
541 int /* size of heap (allocated from the OS) */,
542 int /* bytes in use */)
544 // Request for preconnect to host providing resource specified by URL
545 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_Preconnect,
546 GURL /* preconnect target url */)
548 // Notifies when a plugin couldn't be loaded because it's outdated.
549 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin,
550 int /* placeholder ID */,
551 std::string /* plug-in group identifier */)
553 // Notifies when a plugin couldn't be loaded because it requires
554 // user authorization.
555 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin,
556 base::string16 /* name */,
557 std::string /* plug-in group identifier */)
559 // Provide the browser process with information about the WebCore resource
560 // cache and current renderer framerate.
561 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats,
562 blink::WebCache::ResourceTypeStats)
564 // Message sent from the renderer to the browser to notify it of a
565 // window.print() call which should cancel the prerender. The message is sent
566 // only when the renderer is prerendering.
567 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting)
569 // Sent when the renderer was prevented from displaying insecure content in
570 // a secure page by a security policy. The page may appear incomplete.
571 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent)
573 // Sent when the renderer was prevented from running insecure content in
574 // a secure origin by a security policy. The page may appear incomplete.
575 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent)
577 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_DidGetWebApplicationInfo,
578 WebApplicationInfo)
580 #if defined(OS_ANDROID)
581 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveMetaTagContent,
582 bool /* success */,
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
594 // New Tab Page.
595 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedImpression,
596 int /* page_seq_no */,
597 int /* position */,
598 base::string16 /* provider */)
600 // Logs a navigation on one of the Most Visited tile on the InstantExtended
601 // New Tab Page.
602 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedNavigation,
603 int /* page_seq_no */,
604 int /* position */,
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
623 // open.
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 */,
632 bool /* result */)
634 // Tells InstantExtended to delete a most visited item.
635 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem,
636 int /* page_seq_no */,
637 GURL /* url */)
639 // Tells InstantExtended to navigate the active tab to a possibly privileged
640 // URL.
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 */,
654 GURL /* url */)
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,
670 bool /* enabled */)
671 #endif