blob: d4a209c970654449324bc7ced68343565b88b42e [file] [log] [blame]
[email protected]0dd9e8b2012-01-04 13:36:161// Copyright (c) 2012 The Chromium Authors. All rights reserved.
license.botbf09a502008-08-24 00:55:552// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
initial.commit09911bf2008-07-26 23:55:294
[email protected]d5a04832011-03-12 21:46:265// Multiply-included file, no traditional include guard.
[email protected]e5a7a2a2014-03-27 16:16:036#include <stdint.h>
[email protected]d5a04832011-03-12 21:46:267#include <map>
8#include <set>
initial.commit09911bf2008-07-26 23:55:299#include <string>
10#include <vector>
11
[email protected]57999812013-02-24 05:40:5212#include "base/files/file_path.h"
[email protected]65654eeb2013-07-17 06:51:2413#include "base/memory/shared_memory.h"
[email protected]f15e58122013-07-23 15:42:3414#include "base/process/process.h"
[email protected]3c8a6b02013-06-11 00:49:4915#include "base/strings/string16.h"
16#include "base/strings/stringprintf.h"
[email protected]d5a04832011-03-12 21:46:2617#include "base/values.h"
18#include "build/build_config.h"
[email protected]79d68c62011-04-15 21:07:0319#include "chrome/common/common_param_traits.h"
[email protected]c14406092011-10-27 13:43:4220#include "chrome/common/content_settings.h"
[email protected]610ca832011-10-19 12:59:2021#include "chrome/common/content_settings_pattern.h"
[email protected]1c9c7fb2011-03-11 16:38:3822#include "chrome/common/instant_types.h"
[email protected]09da02f2013-08-14 01:41:5923#include "chrome/common/ntp_logging_events.h"
[email protected]ca98bd32013-04-09 05:16:0524#include "chrome/common/omnibox_focus_state.h"
[email protected]c08e7932011-03-29 04:08:1425#include "chrome/common/search_provider.h"
[email protected]08f71012014-07-25 10:27:5426#include "components/content_settings/core/common/content_settings_types.h"
[email protected]512b5bd2013-07-23 20:24:0027#include "components/nacl/common/nacl_types.h"
[email protected]19a5c7442011-10-21 20:00:4128#include "content/public/common/common_param_traits.h"
[email protected]3c71576ce2013-07-23 02:00:0129#include "content/public/common/referrer.h"
[email protected]9b003482013-05-21 14:00:1730#include "content/public/common/top_controls_state.h"
[email protected]17b5a8172012-06-22 21:09:0931#include "ipc/ipc_channel_handle.h"
[email protected]d5a04832011-03-12 21:46:2632#include "ipc/ipc_message_macros.h"
[email protected]e7f009d2011-06-14 19:35:1033#include "ipc/ipc_platform_file.h"
[email protected]2255a9332013-06-17 05:12:3134#include "third_party/WebKit/public/web/WebCache.h"
35#include "third_party/WebKit/public/web/WebConsoleMessage.h"
[email protected]ffff5b32014-06-25 21:31:0836#include "third_party/skia/include/core/SkBitmap.h"
[email protected]3c3acca2013-02-26 03:07:0737#include "ui/base/window_open_disposition.h"
[email protected]ffff5b32014-06-25 21:31:0838#include "ui/gfx/ipc/gfx_param_traits.h"
[email protected]d5a04832011-03-12 21:46:2639#include "ui/gfx/rect.h"
[email protected]7a4de7a62010-08-17 18:38:2440
[email protected]44c49c92011-03-28 16:17:2341// Singly-included section for enums and custom IPC traits.
[email protected]d5a04832011-03-12 21:46:2642#ifndef CHROME_COMMON_RENDER_MESSAGES_H_
43#define CHROME_COMMON_RENDER_MESSAGES_H_
[email protected]049eec22010-10-20 21:32:5244
[email protected]51b63f62011-10-05 18:55:4245// This enum is inside a struct so that we can forward-declare the struct in
46// others headers without having to include this one.
47struct ChromeViewHostMsg_GetPluginInfo_Status {
[email protected]51b63f62011-10-05 18:55:4248 enum Value {
49 kAllowed,
[email protected]8aa7a412011-11-07 12:33:4250 kBlocked,
[email protected]6a9d1deb2014-01-13 19:39:4151 kBlockedByPolicy,
[email protected]8aa7a412011-11-07 12:33:4252 kClickToPlay,
[email protected]51b63f62011-10-05 18:55:4253 kDisabled,
54 kNotFound,
[email protected]a1199132012-10-26 22:14:4155 kNPAPINotSupported,
[email protected]8aa7a412011-11-07 12:33:4256 kOutdatedBlocked,
57 kOutdatedDisallowed,
58 kUnauthorized,
[email protected]51b63f62011-10-05 18:55:4259 };
60
61 ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed) {}
62
63 Value value;
64};
65
[email protected]7d5c3ac2009-02-04 08:58:1966namespace IPC {
67
[email protected]7b291f92009-08-14 05:43:5368template <>
[email protected]610ca832011-10-19 12:59:2069struct ParamTraits<ContentSettingsPattern> {
70 typedef ContentSettingsPattern param_type;
71 static void Write(Message* m, const param_type& p);
[email protected]ce208f872012-03-07 20:42:5672 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
[email protected]610ca832011-10-19 12:59:2073 static void Log(const param_type& p, std::string* l);
74};
75
[email protected]b3df5a42010-05-11 14:31:0976} // namespace IPC
[email protected]9f4db512010-05-10 20:21:4177
[email protected]5a52f162008-08-27 04:15:3178#endif // CHROME_COMMON_RENDER_MESSAGES_H_
[email protected]d5a04832011-03-12 21:46:2679
[email protected]778574e2011-03-21 22:03:5080#define IPC_MESSAGE_START ChromeMsgStart
[email protected]d5a04832011-03-12 21:46:2681
[email protected]6a9d1deb2014-01-13 19:39:4182IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status::Value,
83 ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized)
[email protected]8d4c276d2013-05-29 19:39:5284IPC_ENUM_TRAITS(OmniboxFocusChangeReason)
[email protected]ca98bd32013-04-09 05:16:0585IPC_ENUM_TRAITS(OmniboxFocusState)
[email protected]c08e7932011-03-29 04:08:1486IPC_ENUM_TRAITS(search_provider::OSDDType)
87IPC_ENUM_TRAITS(search_provider::InstallState)
[email protected]a6827652012-11-20 23:41:0888IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment)
89IPC_ENUM_TRAITS(ThemeBackgroundImageTiling)
[email protected]a1221aea2013-11-07 01:31:3090IPC_ENUM_TRAITS(blink::WebConsoleMessage::Level)
[email protected]9b003482013-05-21 14:00:1791IPC_ENUM_TRAITS(content::TopControlsState)
[email protected]fffaf972011-03-24 01:34:3592
[email protected]51b63f62011-10-05 18:55:4293IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status)
94IPC_STRUCT_TRAITS_MEMBER(value)
95IPC_STRUCT_TRAITS_END()
96
[email protected]cd33d282012-09-21 12:53:0497// Output parameters for ChromeViewHostMsg_GetPluginInfo message.
98IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output)
99 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status)
[email protected]d7bd3e52013-07-21 04:29:20100 IPC_STRUCT_MEMBER(content::WebPluginInfo, plugin)
[email protected]cd33d282012-09-21 12:53:04101 IPC_STRUCT_MEMBER(std::string, actual_mime_type)
102 IPC_STRUCT_MEMBER(std::string, group_identifier)
[email protected]428fac12013-12-05 21:38:49103 IPC_STRUCT_MEMBER(base::string16, group_name)
[email protected]cd33d282012-09-21 12:53:04104IPC_STRUCT_END()
105
[email protected]610ca832011-10-19 12:59:20106IPC_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)
[email protected]ae689aab2012-01-23 17:52:08114 IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard)
[email protected]610ca832011-10-19 12:59:20115IPC_STRUCT_TRAITS_END()
116
[email protected]c14406092011-10-27 13:43:42117IPC_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)
123IPC_STRUCT_TRAITS_END()
124
[email protected]987fad782013-08-28 06:23:18125IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion)
126 IPC_STRUCT_TRAITS_MEMBER(text)
127 IPC_STRUCT_TRAITS_MEMBER(metadata)
128IPC_STRUCT_TRAITS_END()
129
[email protected]e7868c82013-03-12 03:55:56130IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem)
[email protected]dfee2f62013-02-22 06:46:06131 IPC_STRUCT_TRAITS_MEMBER(url)
132 IPC_STRUCT_TRAITS_MEMBER(title)
133IPC_STRUCT_TRAITS_END()
134
[email protected]edece212011-11-16 11:56:56135IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules)
136 IPC_STRUCT_TRAITS_MEMBER(image_rules)
137 IPC_STRUCT_TRAITS_MEMBER(script_rules)
138IPC_STRUCT_TRAITS_END()
139
[email protected]a8c28472013-07-17 05:34:29140IPC_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)
145IPC_STRUCT_TRAITS_END()
146
[email protected]a6827652012-11-20 23:41:08147IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo)
[email protected]a8c28472013-07-17 05:34:29148 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)
[email protected]a6827652012-11-20 23:41:08155 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)
[email protected]5189fa12013-03-20 23:00:05160 IPC_STRUCT_TRAITS_MEMBER(has_attribution)
[email protected]a8c28472013-07-17 05:34:29161 IPC_STRUCT_TRAITS_MEMBER(logo_alternate)
[email protected]a6827652012-11-20 23:41:08162IPC_STRUCT_TRAITS_END()
163
[email protected]a1221aea2013-11-07 01:31:30164IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStat)
[email protected]fffaf972011-03-24 01:34:35165 IPC_STRUCT_TRAITS_MEMBER(count)
166 IPC_STRUCT_TRAITS_MEMBER(size)
167 IPC_STRUCT_TRAITS_MEMBER(liveSize)
168 IPC_STRUCT_TRAITS_MEMBER(decodedSize)
169IPC_STRUCT_TRAITS_END()
170
[email protected]a1221aea2013-11-07 01:31:30171IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStats)
[email protected]fffaf972011-03-24 01:34:35172 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)
177IPC_STRUCT_TRAITS_END()
178
[email protected]a1221aea2013-11-07 01:31:30179IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::UsageStats)
[email protected]fffaf972011-03-24 01:34:35180 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)
185IPC_STRUCT_TRAITS_END()
186
[email protected]09da02f2013-08-14 01:41:59187IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType,
188 NTP_NUM_EVENT_TYPES)
189
[email protected]d5a04832011-03-12 21:46:26190//-----------------------------------------------------------------------------
191// RenderView messages
192// These are messages sent from the browser to the renderer process.
193
[email protected]d5a04832011-03-12 21:46:26194// Tells the renderer to set its maximum cache size to the supplied value.
[email protected]2ccf45c2011-08-19 23:35:50195IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities,
[email protected]d5a04832011-03-12 21:46:26196 size_t /* min_dead_capacity */,
197 size_t /* max_dead_capacity */,
198 size_t /* capacity */)
199
200// Tells the renderer to clear the cache.
[email protected]e81d4d72011-09-29 16:54:31201IPC_MESSAGE_CONTROL1(ChromeViewMsg_ClearCache,
202 bool /* on_navigation */)
[email protected]d5a04832011-03-12 21:46:26203
[email protected]bd35d3a2014-06-22 01:12:51204#if !defined(OS_ANDROID) && !defined(OS_IOS)
[email protected]db3be76f2014-03-25 02:27:47205// 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.
208IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript,
209 base::string16 /* javascript */)
[email protected]bd35d3a2014-06-22 01:12:51210#endif
[email protected]350019f2011-08-02 04:18:33211
[email protected]edece212011-11-16 11:56:56212// Set the content setting rules stored by the renderer.
213IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules,
214 RendererContentSettingRules /* rules */)
[email protected]c14406092011-10-27 13:43:42215
[email protected]a86c0e962013-12-17 17:10:39216// Tells the render frame to load all blocked plugins with the given identifier.
[email protected]51ffaf72012-05-09 21:00:49217IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins,
218 std::string /* identifier */)
[email protected]d5a04832011-03-12 21:46:26219
[email protected]d5a04832011-03-12 21:46:26220// Asks the renderer to send back stats on the WebCore cache broken down by
221// resource types.
[email protected]2ccf45c2011-08-19 23:35:50222IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats)
[email protected]d5a04832011-03-12 21:46:26223
[email protected]63a8ba12011-04-29 05:42:22224// 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.
[email protected]2ccf45c2011-08-19 23:35:50226IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup,
[email protected]63a8ba12011-04-29 05:42:22227 std::string /* field trial name */,
228 std::string /* group name that was assigned. */)
229
[email protected]d5a04832011-03-12 21:46:26230// Asks the renderer to send back V8 heap stats.
[email protected]2ccf45c2011-08-19 23:35:50231IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats)
[email protected]d5a04832011-03-12 21:46:26232
[email protected]8133e412014-05-31 00:51:38233IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetPageSequenceNumber,
234 int /* page_seq_no */)
235
[email protected]c55e3b82012-08-09 15:27:05236IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant)
[email protected]d5a04832011-03-12 21:46:26237
[email protected]987fad782013-08-28 06:23:18238IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetDisplayInstantResults,
239 bool /* display_instant_results */)
240
[email protected]8d4c276d2013-05-29 19:39:52241IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFocusChanged,
242 OmniboxFocusState /* new_focus_state */,
243 OmniboxFocusChangeReason /* reason */)
[email protected]6a6811a2012-12-12 04:18:16244
[email protected]3296da42014-01-30 04:12:15245IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMarginChange, int /* start */)
[email protected]0d0b4a42013-06-14 00:46:26246
[email protected]e7868c82013-03-12 03:55:56247IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged,
[email protected]ab01dd752013-06-08 05:13:36248 std::vector<InstantMostVisitedItem> /* items */)
[email protected]dfee2f62013-02-22 06:46:06249
[email protected]38fe2892013-07-11 00:21:04250IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation,
251 bool /* is_app_launcher_enabled */)
[email protected]dfee2f62013-02-22 06:46:06252
[email protected]38fe2892013-07-11 00:21:04253IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress,
254 bool /* input_in_progress */)
[email protected]dfee2f62013-02-22 06:46:06255
[email protected]987fad782013-08-28 06:23:18256IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch,
257 InstantSuggestion /* suggestion */)
258
[email protected]38fe2892013-07-11 00:21:04259IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSubmit,
[email protected]428fac12013-12-05 21:38:49260 base::string16 /* value */)
[email protected]38fe2892013-07-11 00:21:04261
262IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged,
263 ThemeBackgroundInfo /* value */)
[email protected]dfee2f62013-02-22 06:46:06264
[email protected]d76376d2013-10-31 06:44:42265IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult,
[email protected]428fac12013-12-05 21:38:49266 base::string16 /* identity */,
[email protected]d76376d2013-10-31 06:44:42267 bool /* identity_match */)
268
[email protected]3473ae02013-06-07 00:28:08269IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch)
270
[email protected]d5a04832011-03-12 21:46:26271// Sent on process startup to indicate whether this process is running in
272// incognito mode.
[email protected]2ccf45c2011-08-19 23:35:50273IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess,
[email protected]d5a04832011-03-12 21:46:26274 bool /* is_incognito_processs */)
275
[email protected]68cafdb2011-06-10 21:42:18276// Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent.
[email protected]2ccf45c2011-08-19 23:35:50277IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent,
[email protected]68cafdb2011-06-10 21:42:18278 bool /* allowed */)
279
280// Sent in response to ViewHostMsg_DidBlockRunningInsecureContent.
[email protected]2ccf45c2011-08-19 23:35:50281IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent,
[email protected]68cafdb2011-06-10 21:42:18282 bool /* allowed */)
283
[email protected]a86c0e962013-12-17 17:10:39284IPC_MESSAGE_ROUTED0(ChromeViewMsg_ReloadFrame)
285
[email protected]a230f2f2014-05-24 01:37:54286// Tells the renderer whether or not a file system access has been allowed.
287IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestFileSystemAccessAsyncResponse,
288 int /* request_id */,
289 bool /* allowed */)
290
[email protected]8c40da62011-07-13 22:58:46291// Sent when the profile changes the kSafeBrowsingEnabled preference.
[email protected]2ccf45c2011-08-19 23:35:50292IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection,
[email protected]8c40da62011-07-13 22:58:46293 bool /* enable_phishing_detection */)
294
[email protected]31dd25ab2013-07-31 21:59:05295// 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.
300IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode,
301 int /* thumbnail_min_area_pixels */,
302 gfx::Size /* thumbnail_max_size_pixels */)
303
[email protected]9b003482013-05-21 14:00:17304// 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
306// proper state.
307IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState,
308 content::TopControlsState /* constraints */,
309 content::TopControlsState /* current */,
310 bool /* animate */)
311
[email protected]31dd25ab2013-07-31 21:59:05312
[email protected]67264062013-07-25 12:39:26313// Updates the window features of the render view.
314IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures,
[email protected]a1221aea2013-11-07 01:31:30315 blink::WebWindowFeatures /* window_features */)
[email protected]67264062013-07-25 12:39:26316
[email protected]2f3bc6512013-08-28 03:56:27317IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK,
318 SkBitmap /* thumbnail */,
319 gfx::Size /* original size of the image */)
[email protected]31dd25ab2013-07-31 21:59:05320
[email protected]51208252013-08-19 21:05:30321#if defined(OS_ANDROID)
322// Asks the renderer to return information about whether the current page can
323// be treated as a webapp.
324IPC_MESSAGE_ROUTED1(ChromeViewMsg_RetrieveWebappInformation,
325 GURL /* expected_url */)
[email protected]33b1c082014-02-01 01:46:35326
327// Asks the renderer to return information about the given meta tag.
328IPC_MESSAGE_ROUTED2(ChromeViewMsg_RetrieveMetaTagContent,
329 GURL /* expected_url */,
330 std::string /* tag_name */ )
[email protected]51208252013-08-19 21:05:30331#endif // defined(OS_ANDROID)
[email protected]31dd25ab2013-07-31 21:59:05332
[email protected]914cf6712013-12-05 01:14:06333// chrome.principals messages ------------------------------------------------
334
335// Message sent from the renderer to the browser to get the list of browser
336// managed accounts for the given origin.
337IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts,
338 GURL /* current URL */,
339 std::vector<std::string> /* managed accounts */)
340
341// Message sent from the renderer to the browser to show the browser account
342// management UI.
343IPC_MESSAGE_CONTROL0(ChromeViewHostMsg_ShowBrowserAccountManagementUI)
344
[email protected]21d898342011-08-23 18:14:41345// JavaScript related messages -----------------------------------------------
346
[email protected]a86c0e962013-12-17 17:10:39347// Tells the frame it is displaying an interstitial page.
[email protected]6f9f7d82011-12-08 12:13:34348IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial)
349
[email protected]7e771bfb2013-01-14 23:23:21350// 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.
354IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo,
[email protected]2ea1efe2013-07-17 05:23:13355 int /* DNS probe status */)
[email protected]7e771bfb2013-01-14 23:23:21356
[email protected]26bd3893c2014-04-15 18:59:58357// Provides the information needed by the renderer process to contact a
358// navigation correction service. Handled by the NetErrorHelper.
359IPC_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 */)
[email protected]3d612f52014-01-13 23:48:29365
[email protected]d5a04832011-03-12 21:46:26366//-----------------------------------------------------------------------------
[email protected]63f72132012-04-18 18:02:44367// Misc messages
[email protected]d5a04832011-03-12 21:46:26368// These are messages sent from the renderer to the browser process.
369
[email protected]2ccf45c2011-08-19 23:35:50370IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats,
[email protected]a1221aea2013-11-07 01:31:30371 blink::WebCache::UsageStats /* stats */)
[email protected]d5a04832011-03-12 21:46:26372
[email protected]d5a04832011-03-12 21:46:26373// Tells the browser that content in the current page was blocked due to the
374// user's content settings.
[email protected]d49f6f7e2013-12-11 15:47:36375IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_ContentBlocked,
376 ContentSettingsType /* type of blocked content */)
[email protected]d5a04832011-03-12 21:46:26377
[email protected]5327dfb2011-05-03 17:50:36378// Sent by the renderer process to check whether access to web databases is
[email protected]bac33eb2011-05-04 01:47:49379// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50380IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase,
[email protected]a86c0e962013-12-17 17:10:39381 int /* render_frame_id */,
[email protected]9a611a92011-05-07 17:06:18382 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15383 GURL /* top origin url */,
[email protected]428fac12013-12-05 21:38:49384 base::string16 /* database name */,
385 base::string16 /* database display name */,
[email protected]8c276642011-05-06 09:41:00386 bool /* allowed */)
[email protected]bac33eb2011-05-04 01:47:49387
388// Sent by the renderer process to check whether access to DOM Storage is
389// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50390IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage,
[email protected]a86c0e962013-12-17 17:10:39391 int /* render_frame_id */,
[email protected]bac33eb2011-05-04 01:47:49392 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15393 GURL /* top origin url */,
[email protected]c729db82011-11-23 17:37:27394 bool /* if true local storage, otherwise session */,
[email protected]8c276642011-05-06 09:41:00395 bool /* allowed */)
[email protected]5327dfb2011-05-03 17:50:36396
[email protected]45316d62011-05-12 18:15:30397// Sent by the renderer process to check whether access to FileSystem is
398// granted by content settings.
[email protected]a230f2f2014-05-24 01:37:54399IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_RequestFileSystemAccessSync,
[email protected]a86c0e962013-12-17 17:10:39400 int /* render_frame_id */,
[email protected]45316d62011-05-12 18:15:30401 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15402 GURL /* top origin url */,
[email protected]45316d62011-05-12 18:15:30403 bool /* allowed */)
404
[email protected]a230f2f2014-05-24 01:37:54405// Sent by the renderer process to check whether access to FileSystem is
406// granted by content settings.
407IPC_MESSAGE_CONTROL4(ChromeViewHostMsg_RequestFileSystemAccessAsync,
408 int /* render_frame_id */,
409 int /* request_id */,
410 GURL /* origin_url */,
411 GURL /* top origin url */)
412
[email protected]9a611a92011-05-07 17:06:18413// Sent by the renderer process to check whether access to Indexed DBis
414// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50415IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB,
[email protected]a86c0e962013-12-17 17:10:39416 int /* render_frame_id */,
[email protected]c0a45a982011-05-25 16:58:15417 GURL /* origin_url */,
418 GURL /* top origin url */,
[email protected]428fac12013-12-05 21:38:49419 base::string16 /* database name */,
[email protected]9a611a92011-05-07 17:06:18420 bool /* allowed */)
[email protected]5327dfb2011-05-03 17:50:36421
[email protected]51b63f62011-10-05 18:55:42422// 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
425// disabled.
[email protected]cd33d282012-09-21 12:53:04426IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo,
[email protected]60eca4eb2013-12-06 00:02:16427 int /* render_frame_id */,
[email protected]51b63f62011-10-05 18:55:42428 GURL /* url */,
429 GURL /* top origin url */,
430 std::string /* mime_type */,
[email protected]cd33d282012-09-21 12:53:04431 ChromeViewHostMsg_GetPluginInfo_Output /* output */)
[email protected]51b63f62011-10-05 18:55:42432
[email protected]bd35d3a2014-06-22 01:12:51433#if defined(ENABLE_PEPPER_CDMS)
[email protected]4cbbeb42014-07-22 19:29:38434// 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
[email protected]c33fa1e2013-10-29 06:08:06438// |additional_param_values| contain the name-value pairs, if any, specified
[email protected]4cbbeb42014-07-22 19:29:38439// for the *first* non-disabled plugin found that is registered for |mime_type|.
[email protected]c33fa1e2013-10-29 06:08:06440IPC_SYNC_MESSAGE_CONTROL1_3(
[email protected]4cbbeb42014-07-22 19:29:38441 ChromeViewHostMsg_IsInternalPluginAvailableForMimeType,
[email protected]3627aa3f2013-09-17 22:32:51442 std::string /* mime_type */,
[email protected]4cbbeb42014-07-22 19:29:38443 bool /* is_available */,
[email protected]c33fa1e2013-10-29 06:08:06444 std::vector<base::string16> /* additional_param_names */,
445 std::vector<base::string16> /* additional_param_values */)
[email protected]bd35d3a2014-06-22 01:12:51446#endif
[email protected]3627aa3f2013-09-17 22:32:51447
[email protected]43b7eaca2012-01-12 17:27:28448#if defined(ENABLE_PLUGIN_INSTALLATION)
[email protected]1d697f32011-11-28 11:57:51449// 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
451// |placeholder_id|.
452IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin,
453 int /* placeholder_id */,
454 std::string /* mime_type */)
455
[email protected]3240d2502012-01-26 17:00:33456// Notifies the browser that a missing plug-in placeholder has been removed, so
[email protected]e2424012012-02-03 10:26:50457// the corresponding PluginPlaceholderHost can be deleted.
458IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost,
[email protected]3240d2502012-01-26 17:00:33459 int /* placeholder_id */)
460
[email protected]1d697f32011-11-28 11:57:51461// Notifies a missing plug-in placeholder that a plug-in with name |plugin_name|
462// has been found.
463IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin,
[email protected]428fac12013-12-05 21:38:49464 base::string16 /* plugin_name */)
[email protected]1d697f32011-11-28 11:57:51465
466// Notifies a missing plug-in placeholder that no plug-in has been found.
467IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin)
468
[email protected]0dd9e8b2012-01-04 13:36:16469// Notifies a missing plug-in placeholder that we have started downloading
470// the plug-in.
471IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin)
472
473// Notifies a missing plug-in placeholder that we have finished downloading
474// the plug-in.
475IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin)
476
[email protected]725f6882012-01-13 18:50:06477// Notifies a missing plug-in placeholder that there was an error downloading
478// the plug-in.
479IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin,
480 std::string /* message */)
[email protected]4f62d8052012-01-18 16:16:59481#endif // defined(ENABLE_PLUGIN_INSTALLATION)
482
[email protected]1a86f752012-02-10 13:20:36483// Notifies a missing plug-in placeholder that the user cancelled downloading
484// the plug-in.
485IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin)
486
[email protected]4f62d8052012-01-18 16:16:59487// 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
489// chrome:// URLs.
490IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins)
[email protected]725f6882012-01-13 18:50:06491
[email protected]cc5f7812012-05-31 13:50:34492// Tells the browser that there was an error loading a plug-in.
493IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin,
[email protected]a7329162013-02-07 19:21:48494 base::FilePath /* plugin_path */)
[email protected]cc5f7812012-05-31 13:50:34495
[email protected]a1199132012-10-26 22:14:41496// Tells the browser that we blocked a plug-in because NPAPI is not supported.
497IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported,
498 std::string /* identifer */)
499
[email protected]cc7b11012013-05-02 22:02:53500// Tells the renderer that the NPAPI cannot be used. For example Ash on windows.
501IPC_MESSAGE_ROUTED0(ChromeViewMsg_NPAPINotSupported)
502
[email protected]d5a04832011-03-12 21:46:26503// Notification that the page has an OpenSearch description document
504// associated with it.
[email protected]2ccf45c2011-08-19 23:35:50505IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD,
[email protected]0911fd182014-05-22 08:02:35506 GURL /* page_url */,
507 GURL /* osdd_url */,
[email protected]c08e7932011-03-29 04:08:14508 search_provider::OSDDType)
[email protected]d5a04832011-03-12 21:46:26509
510// Find out if the given url's security origin is installed as a search
511// provider.
[email protected]2ccf45c2011-08-19 23:35:50512IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState,
[email protected]c08e7932011-03-29 04:08:14513 GURL /* page url */,
514 GURL /* inquiry url */,
515 search_provider::InstallState /* install */)
[email protected]d5a04832011-03-12 21:46:26516
[email protected]d5a04832011-03-12 21:46:26517// Sends back stats about the V8 heap.
[email protected]2ccf45c2011-08-19 23:35:50518IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats,
[email protected]d5a04832011-03-12 21:46:26519 int /* size of heap (allocated from the OS) */,
520 int /* bytes in use */)
521
522// Request for a DNS prefetch of the names in the array.
523// NameList is typedef'ed std::vector<std::string>
[email protected]2ccf45c2011-08-19 23:35:50524IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_DnsPrefetch,
[email protected]2bf2bd92011-03-31 07:12:44525 std::vector<std::string> /* hostnames */)
[email protected]d5a04832011-03-12 21:46:26526
[email protected]b1e7562d2013-05-27 05:47:53527// Request for preconnect to host providing resource specified by URL
528IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_Preconnect,
529 GURL /* preconnect target url */)
530
[email protected]d5a04832011-03-12 21:46:26531// Notifies when a plugin couldn't be loaded because it's outdated.
[email protected]2ccf45c2011-08-19 23:35:50532IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin,
[email protected]27c483892012-02-09 15:59:10533 int /* placeholder ID */,
534 std::string /* plug-in group identifier */)
[email protected]d5a04832011-03-12 21:46:26535
[email protected]e2424012012-02-03 10:26:50536// Notifies when a plugin couldn't be loaded because it requires
537// user authorization.
[email protected]51ffaf72012-05-09 21:00:49538IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin,
[email protected]428fac12013-12-05 21:38:49539 base::string16 /* name */,
[email protected]51ffaf72012-05-09 21:00:49540 std::string /* plug-in group identifier */)
[email protected]e2424012012-02-03 10:26:50541
[email protected]d5a04832011-03-12 21:46:26542// Provide the browser process with information about the WebCore resource
[email protected]872ae5b2011-05-26 20:20:50543// cache and current renderer framerate.
[email protected]2ccf45c2011-08-19 23:35:50544IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats,
[email protected]a1221aea2013-11-07 01:31:30545 blink::WebCache::ResourceTypeStats)
[email protected]d5a04832011-03-12 21:46:26546
[email protected]4c94b8c2011-05-17 16:17:45547// 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.
[email protected]2ccf45c2011-08-19 23:35:50550IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting)
[email protected]4c94b8c2011-05-17 16:17:45551
[email protected]68cafdb2011-06-10 21:42:18552// Sent when the renderer was prevented from displaying insecure content in
553// a secure page by a security policy. The page may appear incomplete.
[email protected]2ccf45c2011-08-19 23:35:50554IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent)
[email protected]68cafdb2011-06-10 21:42:18555
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.
[email protected]2ccf45c2011-08-19 23:35:50558IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent)
[email protected]68cafdb2011-06-10 21:42:18559
[email protected]51208252013-08-19 21:05:30560#if defined(OS_ANDROID)
561// Contains info about whether the current page can be treated as a webapp.
[email protected]0dd45112013-10-04 21:40:37562IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveWebappInformation,
[email protected]51208252013-08-19 21:05:30563 bool /* success */,
[email protected]0dd45112013-10-04 21:40:37564 bool /* is_mobile_webapp_capable */,
565 bool /* is_apple_mobile_webapp_capable */,
[email protected]5820d32c2013-08-28 10:03:50566 GURL /* expected_url */)
[email protected]33b1c082014-02-01 01:46:35567
568IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveMetaTagContent,
569 bool /* success */,
570 std::string /* tag_name */,
571 std::string /* tag_content */,
572 GURL /* expected_url */)
[email protected]51208252013-08-19 21:05:30573#endif // defined(OS_ANDROID)
574
[email protected]21d898342011-08-23 18:14:41575// The currently displayed PDF has an unsupported feature.
576IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature)
[email protected]d5a04832011-03-12 21:46:26577
[email protected]3c71576ce2013-07-23 02:00:01578// Brings up SaveAs... dialog to save specified URL.
579IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PDFSaveURLAs,
580 GURL /* url */,
581 content::Referrer /* referrer */)
582
583// Updates the content restrictions, i.e. to disable print/copy.
584IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_PDFUpdateContentRestrictions,
585 int /* restrictions */)
586
[email protected]b32505712013-09-13 18:29:13587// Brings up a Password... dialog for protected documents.
588IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_PDFModalPromptForPassword,
589 std::string /* prompt */,
590 std::string /* actual_value */)
591
[email protected]83af80b22011-09-06 18:49:19592// This message indicates the error appeared in the frame.
593IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError,
594 int /* error */)
595
[email protected]ebce9522011-10-27 19:17:17596// This message indicates the monitored frame loading had completed.
597IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted)
598
[email protected]09da02f2013-08-14 01:41:59599// Logs events from InstantExtended New Tab Pages.
600IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_LogEvent,
[email protected]8133e412014-05-31 00:51:38601 int /* page_seq_no */,
[email protected]09da02f2013-08-14 01:41:59602 NTPLoggingEventType /* event */)
[email protected]38fe2892013-07-11 00:21:04603
[email protected]c74876d2013-12-14 00:27:13604// Logs an impression on one of the Most Visited tile on the InstantExtended
605// New Tab Page.
[email protected]abd6c4d2014-03-17 06:48:17606IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedImpression,
[email protected]8133e412014-05-31 00:51:38607 int /* page_seq_no */,
[email protected]abd6c4d2014-03-17 06:48:17608 int /* position */,
609 base::string16 /* provider */)
610
611// Logs a navigation on one of the Most Visited tile on the InstantExtended
612// New Tab Page.
613IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedNavigation,
[email protected]8133e412014-05-31 00:51:38614 int /* page_seq_no */,
[email protected]c74876d2013-12-14 00:27:13615 int /* position */,
616 base::string16 /* provider */)
617
[email protected]d76376d2013-10-31 06:44:42618// The Instant page asks for Chrome identity check against |identity|.
619IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ChromeIdentityCheck,
[email protected]8133e412014-05-31 00:51:38620 int /* page_seq_no */,
[email protected]428fac12013-12-05 21:38:49621 base::string16 /* identity */)
[email protected]d76376d2013-10-31 06:44:42622
[email protected]38fe2892013-07-11 00:21:04623// Tells InstantExtended to set the omnibox focus state.
624IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FocusOmnibox,
[email protected]8133e412014-05-31 00:51:38625 int /* page_seq_no */,
[email protected]38fe2892013-07-11 00:21:04626 OmniboxFocusState /* state */)
627
[email protected]6cf51b62013-08-10 13:49:22628// 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
630// open.
631IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PasteAndOpenDropdown,
[email protected]8133e412014-05-31 00:51:38632 int /* page_seq_no */,
[email protected]428fac12013-12-05 21:38:49633 base::string16 /* text to be pasted */)
[email protected]6cf51b62013-08-10 13:49:22634
[email protected]38fe2892013-07-11 00:21:04635// Tells InstantExtended whether the embedded search API is supported.
636// See http://dev.chromium.org/embeddedsearch
637IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined,
[email protected]8133e412014-05-31 00:51:38638 int /* page_seq_no */,
[email protected]38fe2892013-07-11 00:21:04639 bool /* result */)
640
641// Tells InstantExtended to delete a most visited item.
642IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem,
[email protected]8133e412014-05-31 00:51:38643 int /* page_seq_no */,
[email protected]38fe2892013-07-11 00:21:04644 GURL /* url */)
645
[email protected]064f57a2013-10-28 21:50:56646// Tells InstantExtended to navigate the active tab to a possibly privileged
[email protected]38fe2892013-07-11 00:21:04647// URL.
[email protected]064f57a2013-10-28 21:50:56648IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_SearchBoxNavigate,
[email protected]8133e412014-05-31 00:51:38649 int /* page_seq_no */,
[email protected]38fe2892013-07-11 00:21:04650 GURL /* destination */,
[email protected]38fe2892013-07-11 00:21:04651 WindowOpenDisposition /* disposition */,
[email protected]064f57a2013-10-28 21:50:56652 bool /*is_most_visited_item_url*/)
[email protected]38fe2892013-07-11 00:21:04653
654// Tells InstantExtended to undo all most visited item deletions.
655IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions,
[email protected]8133e412014-05-31 00:51:38656 int /* page_seq_no */)
[email protected]38fe2892013-07-11 00:21:04657
658// Tells InstantExtended to undo one most visited item deletion.
659IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion,
[email protected]8133e412014-05-31 00:51:38660 int /* page_seq_no */,
[email protected]38fe2892013-07-11 00:21:04661 GURL /* url */)
662
663// Tells InstantExtended whether the page supports voice search.
664IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetVoiceSearchSupported,
[email protected]8133e412014-05-31 00:51:38665 int /* page_seq_no */,
[email protected]38fe2892013-07-11 00:21:04666 bool /* supported */)
[email protected]88b50b62013-09-01 23:05:06667
[email protected]2309e912013-10-01 01:33:30668// 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.
670IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs,
671 std::vector<GURL> /* search_urls */,
672 GURL /* new_tab_page_url */)
673
[email protected]22498e02014-05-29 17:47:16674#if defined(ENABLE_PLUGINS)
[email protected]1ef13cf2014-03-21 22:44:01675// Sent by the renderer to check if crash reporting is enabled.
676IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled,
677 bool /* enabled */)
[email protected]22498e02014-05-29 17:47:16678#endif