blob: 9e388bcd199b8dbe945d0cd6f9c33f9e6c1414b5 [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]1c9c7fb2011-03-11 16:38:3820#include "chrome/common/instant_types.h"
[email protected]09da02f2013-08-14 01:41:5921#include "chrome/common/ntp_logging_events.h"
[email protected]ca98bd32013-04-09 05:16:0522#include "chrome/common/omnibox_focus_state.h"
[email protected]c08e7932011-03-29 04:08:1423#include "chrome/common/search_provider.h"
mlamouri89ccc632014-09-16 19:29:5824#include "chrome/common/web_application_info.h"
mukai077089f2014-09-11 18:41:5225#include "components/content_settings/core/common/content_settings.h"
vasiliif62dbf92014-09-05 10:23:1326#include "components/content_settings/core/common/content_settings_pattern.h"
[email protected]08f71012014-07-25 10:27:5427#include "components/content_settings/core/common/content_settings_types.h"
[email protected]512b5bd2013-07-23 20:24:0028#include "components/nacl/common/nacl_types.h"
[email protected]19a5c7442011-10-21 20:00:4129#include "content/public/common/common_param_traits.h"
[email protected]3c71576ce2013-07-23 02:00:0130#include "content/public/common/referrer.h"
[email protected]9b003482013-05-21 14:00:1731#include "content/public/common/top_controls_state.h"
[email protected]17b5a8172012-06-22 21:09:0932#include "ipc/ipc_channel_handle.h"
[email protected]d5a04832011-03-12 21:46:2633#include "ipc/ipc_message_macros.h"
[email protected]e7f009d2011-06-14 19:35:1034#include "ipc/ipc_platform_file.h"
[email protected]2255a9332013-06-17 05:12:3135#include "third_party/WebKit/public/web/WebCache.h"
36#include "third_party/WebKit/public/web/WebConsoleMessage.h"
[email protected]ffff5b32014-06-25 21:31:0837#include "third_party/skia/include/core/SkBitmap.h"
[email protected]3c3acca2013-02-26 03:07:0738#include "ui/base/window_open_disposition.h"
[email protected]ffff5b32014-06-25 21:31:0839#include "ui/gfx/ipc/gfx_param_traits.h"
[email protected]d5a04832011-03-12 21:46:2640#include "ui/gfx/rect.h"
[email protected]7a4de7a62010-08-17 18:38:2441
[email protected]44c49c92011-03-28 16:17:2342// Singly-included section for enums and custom IPC traits.
[email protected]d5a04832011-03-12 21:46:2643#ifndef CHROME_COMMON_RENDER_MESSAGES_H_
44#define CHROME_COMMON_RENDER_MESSAGES_H_
[email protected]049eec22010-10-20 21:32:5245
[email protected]51b63f62011-10-05 18:55:4246// This enum is inside a struct so that we can forward-declare the struct in
47// others headers without having to include this one.
48struct ChromeViewHostMsg_GetPluginInfo_Status {
[email protected]51b63f62011-10-05 18:55:4249 enum Value {
50 kAllowed,
[email protected]8aa7a412011-11-07 12:33:4251 kBlocked,
[email protected]6a9d1deb2014-01-13 19:39:4152 kBlockedByPolicy,
[email protected]8aa7a412011-11-07 12:33:4253 kClickToPlay,
[email protected]51b63f62011-10-05 18:55:4254 kDisabled,
55 kNotFound,
[email protected]a1199132012-10-26 22:14:4156 kNPAPINotSupported,
[email protected]8aa7a412011-11-07 12:33:4257 kOutdatedBlocked,
58 kOutdatedDisallowed,
59 kUnauthorized,
[email protected]51b63f62011-10-05 18:55:4260 };
61
62 ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed) {}
63
64 Value value;
65};
66
[email protected]7d5c3ac2009-02-04 08:58:1967namespace IPC {
68
[email protected]7b291f92009-08-14 05:43:5369template <>
[email protected]610ca832011-10-19 12:59:2070struct ParamTraits<ContentSettingsPattern> {
71 typedef ContentSettingsPattern param_type;
72 static void Write(Message* m, const param_type& p);
[email protected]ce208f872012-03-07 20:42:5673 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
[email protected]610ca832011-10-19 12:59:2074 static void Log(const param_type& p, std::string* l);
75};
76
[email protected]b3df5a42010-05-11 14:31:0977} // namespace IPC
[email protected]9f4db512010-05-10 20:21:4178
[email protected]5a52f162008-08-27 04:15:3179#endif // CHROME_COMMON_RENDER_MESSAGES_H_
[email protected]d5a04832011-03-12 21:46:2680
[email protected]778574e2011-03-21 22:03:5081#define IPC_MESSAGE_START ChromeMsgStart
[email protected]d5a04832011-03-12 21:46:2682
[email protected]6a9d1deb2014-01-13 19:39:4183IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status::Value,
84 ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized)
anujk.sharmaef612ee2014-10-09 12:16:3085IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusChangeReason,
86 OMNIBOX_FOCUS_CHANGE_REASON_LAST)
87IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusState, OMNIBOX_FOCUS_STATE_LAST)
anujk.sharmabca743c2014-09-29 03:52:3988IPC_ENUM_TRAITS_MAX_VALUE(search_provider::OSDDType,
89 search_provider::OSDD_TYPE_LAST)
[email protected]c08e7932011-03-29 04:08:1490IPC_ENUM_TRAITS(search_provider::InstallState)
[email protected]a6827652012-11-20 23:41:0891IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment)
92IPC_ENUM_TRAITS(ThemeBackgroundImageTiling)
[email protected]a1221aea2013-11-07 01:31:3093IPC_ENUM_TRAITS(blink::WebConsoleMessage::Level)
[email protected]9b003482013-05-21 14:00:1794IPC_ENUM_TRAITS(content::TopControlsState)
[email protected]fffaf972011-03-24 01:34:3595
[email protected]51b63f62011-10-05 18:55:4296IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status)
97IPC_STRUCT_TRAITS_MEMBER(value)
98IPC_STRUCT_TRAITS_END()
99
[email protected]cd33d282012-09-21 12:53:04100// Output parameters for ChromeViewHostMsg_GetPluginInfo message.
101IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output)
102 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status)
[email protected]d7bd3e52013-07-21 04:29:20103 IPC_STRUCT_MEMBER(content::WebPluginInfo, plugin)
[email protected]cd33d282012-09-21 12:53:04104 IPC_STRUCT_MEMBER(std::string, actual_mime_type)
105 IPC_STRUCT_MEMBER(std::string, group_identifier)
[email protected]428fac12013-12-05 21:38:49106 IPC_STRUCT_MEMBER(base::string16, group_name)
[email protected]cd33d282012-09-21 12:53:04107IPC_STRUCT_END()
108
[email protected]610ca832011-10-19 12:59:20109IPC_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)
[email protected]ae689aab2012-01-23 17:52:08117 IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard)
[email protected]610ca832011-10-19 12:59:20118IPC_STRUCT_TRAITS_END()
119
[email protected]c14406092011-10-27 13:43:42120IPC_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)
126IPC_STRUCT_TRAITS_END()
127
kmadhusu562c49c82014-11-18 02:08:03128IPC_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)
134IPC_STRUCT_TRAITS_END()
135
[email protected]987fad782013-08-28 06:23:18136IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion)
137 IPC_STRUCT_TRAITS_MEMBER(text)
138 IPC_STRUCT_TRAITS_MEMBER(metadata)
139IPC_STRUCT_TRAITS_END()
140
[email protected]e7868c82013-03-12 03:55:56141IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem)
[email protected]dfee2f62013-02-22 06:46:06142 IPC_STRUCT_TRAITS_MEMBER(url)
143 IPC_STRUCT_TRAITS_MEMBER(title)
144IPC_STRUCT_TRAITS_END()
145
[email protected]edece212011-11-16 11:56:56146IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules)
147 IPC_STRUCT_TRAITS_MEMBER(image_rules)
148 IPC_STRUCT_TRAITS_MEMBER(script_rules)
149IPC_STRUCT_TRAITS_END()
150
[email protected]a8c28472013-07-17 05:34:29151IPC_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)
156IPC_STRUCT_TRAITS_END()
157
[email protected]a6827652012-11-20 23:41:08158IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo)
[email protected]a8c28472013-07-17 05:34:29159 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)
[email protected]a6827652012-11-20 23:41:08166 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)
[email protected]5189fa12013-03-20 23:00:05171 IPC_STRUCT_TRAITS_MEMBER(has_attribution)
[email protected]a8c28472013-07-17 05:34:29172 IPC_STRUCT_TRAITS_MEMBER(logo_alternate)
[email protected]a6827652012-11-20 23:41:08173IPC_STRUCT_TRAITS_END()
174
[email protected]a1221aea2013-11-07 01:31:30175IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStat)
[email protected]fffaf972011-03-24 01:34:35176 IPC_STRUCT_TRAITS_MEMBER(count)
177 IPC_STRUCT_TRAITS_MEMBER(size)
178 IPC_STRUCT_TRAITS_MEMBER(liveSize)
179 IPC_STRUCT_TRAITS_MEMBER(decodedSize)
180IPC_STRUCT_TRAITS_END()
181
[email protected]a1221aea2013-11-07 01:31:30182IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStats)
[email protected]fffaf972011-03-24 01:34:35183 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)
188IPC_STRUCT_TRAITS_END()
189
[email protected]a1221aea2013-11-07 01:31:30190IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::UsageStats)
[email protected]fffaf972011-03-24 01:34:35191 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)
196IPC_STRUCT_TRAITS_END()
197
[email protected]09da02f2013-08-14 01:41:59198IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType,
johnmec78637e2014-10-20 11:24:45199 NTP_EVENT_TYPE_LAST)
[email protected]09da02f2013-08-14 01:41:59200
mlamouri89ccc632014-09-16 19:29:58201IPC_ENUM_TRAITS_MAX_VALUE(WebApplicationInfo::MobileCapable,
202 WebApplicationInfo::MOBILE_CAPABLE_APPLE)
203
204IPC_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)
209IPC_STRUCT_TRAITS_END()
210
211IPC_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)
217IPC_STRUCT_TRAITS_END()
218
[email protected]d5a04832011-03-12 21:46:26219//-----------------------------------------------------------------------------
220// RenderView messages
221// These are messages sent from the browser to the renderer process.
222
[email protected]bd35d3a2014-06-22 01:12:51223#if !defined(OS_ANDROID) && !defined(OS_IOS)
[email protected]db3be76f2014-03-25 02:27:47224// 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.
227IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript,
228 base::string16 /* javascript */)
[email protected]bd35d3a2014-06-22 01:12:51229#endif
[email protected]350019f2011-08-02 04:18:33230
[email protected]edece212011-11-16 11:56:56231// Set the content setting rules stored by the renderer.
232IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules,
233 RendererContentSettingRules /* rules */)
[email protected]c14406092011-10-27 13:43:42234
[email protected]a86c0e962013-12-17 17:10:39235// Tells the render frame to load all blocked plugins with the given identifier.
[email protected]51ffaf72012-05-09 21:00:49236IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins,
237 std::string /* identifier */)
[email protected]d5a04832011-03-12 21:46:26238
[email protected]d5a04832011-03-12 21:46:26239// Asks the renderer to send back stats on the WebCore cache broken down by
240// resource types.
[email protected]2ccf45c2011-08-19 23:35:50241IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats)
[email protected]d5a04832011-03-12 21:46:26242
[email protected]63a8ba12011-04-29 05:42:22243// 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.
[email protected]2ccf45c2011-08-19 23:35:50245IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup,
[email protected]63a8ba12011-04-29 05:42:22246 std::string /* field trial name */,
247 std::string /* group name that was assigned. */)
248
[email protected]d5a04832011-03-12 21:46:26249// Asks the renderer to send back V8 heap stats.
[email protected]2ccf45c2011-08-19 23:35:50250IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats)
[email protected]d5a04832011-03-12 21:46:26251
[email protected]8133e412014-05-31 00:51:38252IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetPageSequenceNumber,
253 int /* page_seq_no */)
254
[email protected]c55e3b82012-08-09 15:27:05255IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant)
[email protected]d5a04832011-03-12 21:46:26256
[email protected]987fad782013-08-28 06:23:18257IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetDisplayInstantResults,
258 bool /* display_instant_results */)
259
[email protected]8d4c276d2013-05-29 19:39:52260IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFocusChanged,
261 OmniboxFocusState /* new_focus_state */,
262 OmniboxFocusChangeReason /* reason */)
[email protected]6a6811a2012-12-12 04:18:16263
[email protected]3296da42014-01-30 04:12:15264IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMarginChange, int /* start */)
[email protected]0d0b4a42013-06-14 00:46:26265
[email protected]e7868c82013-03-12 03:55:56266IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged,
[email protected]ab01dd752013-06-08 05:13:36267 std::vector<InstantMostVisitedItem> /* items */)
[email protected]dfee2f62013-02-22 06:46:06268
[email protected]38fe2892013-07-11 00:21:04269IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation,
270 bool /* is_app_launcher_enabled */)
[email protected]dfee2f62013-02-22 06:46:06271
[email protected]38fe2892013-07-11 00:21:04272IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress,
273 bool /* input_in_progress */)
[email protected]dfee2f62013-02-22 06:46:06274
[email protected]987fad782013-08-28 06:23:18275IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch,
276 InstantSuggestion /* suggestion */)
277
kmadhusu562c49c82014-11-18 02:08:03278IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxSubmit,
279 base::string16 /* value */,
280 EmbeddedSearchRequestParams /* params */)
[email protected]38fe2892013-07-11 00:21:04281
282IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged,
283 ThemeBackgroundInfo /* value */)
[email protected]dfee2f62013-02-22 06:46:06284
beaudoin709ff022014-11-21 22:06:02285IPC_MESSAGE_ROUTED1(ChromeViewMsg_HistorySyncCheckResult,
286 bool /* sync_history */)
287
[email protected]d76376d2013-10-31 06:44:42288IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult,
[email protected]428fac12013-12-05 21:38:49289 base::string16 /* identity */,
[email protected]d76376d2013-10-31 06:44:42290 bool /* identity_match */)
291
[email protected]3473ae02013-06-07 00:28:08292IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch)
293
[email protected]d5a04832011-03-12 21:46:26294// Sent on process startup to indicate whether this process is running in
295// incognito mode.
[email protected]2ccf45c2011-08-19 23:35:50296IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess,
[email protected]d5a04832011-03-12 21:46:26297 bool /* is_incognito_processs */)
298
[email protected]68cafdb2011-06-10 21:42:18299// Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent.
[email protected]2ccf45c2011-08-19 23:35:50300IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent,
[email protected]68cafdb2011-06-10 21:42:18301 bool /* allowed */)
302
303// Sent in response to ViewHostMsg_DidBlockRunningInsecureContent.
[email protected]2ccf45c2011-08-19 23:35:50304IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent,
[email protected]68cafdb2011-06-10 21:42:18305 bool /* allowed */)
306
[email protected]a86c0e962013-12-17 17:10:39307IPC_MESSAGE_ROUTED0(ChromeViewMsg_ReloadFrame)
308
[email protected]a230f2f2014-05-24 01:37:54309// Tells the renderer whether or not a file system access has been allowed.
310IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestFileSystemAccessAsyncResponse,
311 int /* request_id */,
312 bool /* allowed */)
313
[email protected]8c40da62011-07-13 22:58:46314// Sent when the profile changes the kSafeBrowsingEnabled preference.
[email protected]2ccf45c2011-08-19 23:35:50315IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection,
[email protected]8c40da62011-07-13 22:58:46316 bool /* enable_phishing_detection */)
317
[email protected]31dd25ab2013-07-31 21:59:05318// 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.
323IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode,
324 int /* thumbnail_min_area_pixels */,
325 gfx::Size /* thumbnail_max_size_pixels */)
326
[email protected]9b003482013-05-21 14:00:17327// 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.
330IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState,
331 content::TopControlsState /* constraints */,
332 content::TopControlsState /* current */,
333 bool /* animate */)
334
[email protected]31dd25ab2013-07-31 21:59:05335
[email protected]67264062013-07-25 12:39:26336// Updates the window features of the render view.
337IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures,
[email protected]a1221aea2013-11-07 01:31:30338 blink::WebWindowFeatures /* window_features */)
[email protected]67264062013-07-25 12:39:26339
[email protected]2f3bc6512013-08-28 03:56:27340IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK,
341 SkBitmap /* thumbnail */,
342 gfx::Size /* original size of the image */)
[email protected]31dd25ab2013-07-31 21:59:05343
mlamouri89ccc632014-09-16 19:29:58344// Requests application info for the page. The renderer responds back with
345// ChromeViewHostMsg_DidGetWebApplicationInfo.
346IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetWebApplicationInfo)
[email protected]33b1c082014-02-01 01:46:35347
mlamouri89ccc632014-09-16 19:29:58348#if defined(OS_ANDROID)
[email protected]33b1c082014-02-01 01:46:35349// Asks the renderer to return information about the given meta tag.
350IPC_MESSAGE_ROUTED2(ChromeViewMsg_RetrieveMetaTagContent,
351 GURL /* expected_url */,
352 std::string /* tag_name */ )
[email protected]51208252013-08-19 21:05:30353#endif // defined(OS_ANDROID)
[email protected]31dd25ab2013-07-31 21:59:05354
[email protected]914cf6712013-12-05 01:14:06355// chrome.principals messages ------------------------------------------------
356
357// Message sent from the renderer to the browser to get the list of browser
358// managed accounts for the given origin.
359IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts,
360 GURL /* current URL */,
361 std::vector<std::string> /* managed accounts */)
362
363// Message sent from the renderer to the browser to show the browser account
364// management UI.
365IPC_MESSAGE_CONTROL0(ChromeViewHostMsg_ShowBrowserAccountManagementUI)
366
[email protected]21d898342011-08-23 18:14:41367// JavaScript related messages -----------------------------------------------
368
[email protected]a86c0e962013-12-17 17:10:39369// Tells the frame it is displaying an interstitial page.
[email protected]6f9f7d82011-12-08 12:13:34370IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial)
371
[email protected]7e771bfb2013-01-14 23:23:21372// 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.
376IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo,
[email protected]2ea1efe2013-07-17 05:23:13377 int /* DNS probe status */)
[email protected]7e771bfb2013-01-14 23:23:21378
[email protected]26bd3893c2014-04-15 18:59:58379// Provides the information needed by the renderer process to contact a
380// navigation correction service. Handled by the NetErrorHelper.
381IPC_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 */)
[email protected]3d612f52014-01-13 23:48:29387
[email protected]d5a04832011-03-12 21:46:26388//-----------------------------------------------------------------------------
[email protected]63f72132012-04-18 18:02:44389// Misc messages
[email protected]d5a04832011-03-12 21:46:26390// These are messages sent from the renderer to the browser process.
391
[email protected]2ccf45c2011-08-19 23:35:50392IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats,
[email protected]a1221aea2013-11-07 01:31:30393 blink::WebCache::UsageStats /* stats */)
[email protected]d5a04832011-03-12 21:46:26394
[email protected]d5a04832011-03-12 21:46:26395// Tells the browser that content in the current page was blocked due to the
396// user's content settings.
wfh303f76b2014-12-09 22:52:59397IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ContentBlocked,
398 ContentSettingsType /* type of blocked content */,
399 base::string16 /* details on blocked content */)
[email protected]d5a04832011-03-12 21:46:26400
[email protected]5327dfb2011-05-03 17:50:36401// Sent by the renderer process to check whether access to web databases is
[email protected]bac33eb2011-05-04 01:47:49402// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50403IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase,
[email protected]a86c0e962013-12-17 17:10:39404 int /* render_frame_id */,
[email protected]9a611a92011-05-07 17:06:18405 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15406 GURL /* top origin url */,
[email protected]428fac12013-12-05 21:38:49407 base::string16 /* database name */,
408 base::string16 /* database display name */,
[email protected]8c276642011-05-06 09:41:00409 bool /* allowed */)
[email protected]bac33eb2011-05-04 01:47:49410
411// Sent by the renderer process to check whether access to DOM Storage is
412// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50413IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage,
[email protected]a86c0e962013-12-17 17:10:39414 int /* render_frame_id */,
[email protected]bac33eb2011-05-04 01:47:49415 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15416 GURL /* top origin url */,
[email protected]c729db82011-11-23 17:37:27417 bool /* if true local storage, otherwise session */,
[email protected]8c276642011-05-06 09:41:00418 bool /* allowed */)
[email protected]5327dfb2011-05-03 17:50:36419
[email protected]45316d62011-05-12 18:15:30420// Sent by the renderer process to check whether access to FileSystem is
421// granted by content settings.
[email protected]a230f2f2014-05-24 01:37:54422IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_RequestFileSystemAccessSync,
[email protected]a86c0e962013-12-17 17:10:39423 int /* render_frame_id */,
[email protected]45316d62011-05-12 18:15:30424 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15425 GURL /* top origin url */,
[email protected]45316d62011-05-12 18:15:30426 bool /* allowed */)
427
[email protected]a230f2f2014-05-24 01:37:54428// Sent by the renderer process to check whether access to FileSystem is
429// granted by content settings.
430IPC_MESSAGE_CONTROL4(ChromeViewHostMsg_RequestFileSystemAccessAsync,
431 int /* render_frame_id */,
432 int /* request_id */,
433 GURL /* origin_url */,
434 GURL /* top origin url */)
435
[email protected]9a611a92011-05-07 17:06:18436// Sent by the renderer process to check whether access to Indexed DBis
437// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50438IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB,
[email protected]a86c0e962013-12-17 17:10:39439 int /* render_frame_id */,
[email protected]c0a45a982011-05-25 16:58:15440 GURL /* origin_url */,
441 GURL /* top origin url */,
[email protected]428fac12013-12-05 21:38:49442 base::string16 /* database name */,
[email protected]9a611a92011-05-07 17:06:18443 bool /* allowed */)
[email protected]5327dfb2011-05-03 17:50:36444
[email protected]51b63f62011-10-05 18:55:42445// Return information about a plugin for the given URL and MIME type.
446// In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows
447// about specific reasons why a plug-in can't be used, for example because it's
448// disabled.
[email protected]cd33d282012-09-21 12:53:04449IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo,
[email protected]60eca4eb2013-12-06 00:02:16450 int /* render_frame_id */,
[email protected]51b63f62011-10-05 18:55:42451 GURL /* url */,
452 GURL /* top origin url */,
453 std::string /* mime_type */,
[email protected]cd33d282012-09-21 12:53:04454 ChromeViewHostMsg_GetPluginInfo_Output /* output */)
[email protected]51b63f62011-10-05 18:55:42455
[email protected]bd35d3a2014-06-22 01:12:51456#if defined(ENABLE_PEPPER_CDMS)
[email protected]4cbbeb42014-07-22 19:29:38457// Returns whether any internal plugin supporting |mime_type| is registered and
458// enabled. Does not determine whether the plugin can actually be instantiated
459// (e.g. whether it has all its dependencies).
460// When the returned *|is_available| is true, |additional_param_names| and
[email protected]c33fa1e2013-10-29 06:08:06461// |additional_param_values| contain the name-value pairs, if any, specified
[email protected]4cbbeb42014-07-22 19:29:38462// for the *first* non-disabled plugin found that is registered for |mime_type|.
[email protected]c33fa1e2013-10-29 06:08:06463IPC_SYNC_MESSAGE_CONTROL1_3(
[email protected]4cbbeb42014-07-22 19:29:38464 ChromeViewHostMsg_IsInternalPluginAvailableForMimeType,
[email protected]3627aa3f2013-09-17 22:32:51465 std::string /* mime_type */,
[email protected]4cbbeb42014-07-22 19:29:38466 bool /* is_available */,
[email protected]c33fa1e2013-10-29 06:08:06467 std::vector<base::string16> /* additional_param_names */,
468 std::vector<base::string16> /* additional_param_values */)
[email protected]bd35d3a2014-06-22 01:12:51469#endif
[email protected]3627aa3f2013-09-17 22:32:51470
[email protected]43b7eaca2012-01-12 17:27:28471#if defined(ENABLE_PLUGIN_INSTALLATION)
[email protected]1d697f32011-11-28 11:57:51472// Tells the browser to search for a plug-in that can handle the given MIME
473// type. The result will be sent asynchronously to the routing ID
474// |placeholder_id|.
475IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin,
476 int /* placeholder_id */,
477 std::string /* mime_type */)
478
[email protected]3240d2502012-01-26 17:00:33479// Notifies the browser that a missing plug-in placeholder has been removed, so
[email protected]e2424012012-02-03 10:26:50480// the corresponding PluginPlaceholderHost can be deleted.
481IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost,
[email protected]3240d2502012-01-26 17:00:33482 int /* placeholder_id */)
483
[email protected]1d697f32011-11-28 11:57:51484// Notifies a missing plug-in placeholder that a plug-in with name |plugin_name|
485// has been found.
486IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin,
[email protected]428fac12013-12-05 21:38:49487 base::string16 /* plugin_name */)
[email protected]1d697f32011-11-28 11:57:51488
489// Notifies a missing plug-in placeholder that no plug-in has been found.
490IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin)
491
[email protected]0dd9e8b2012-01-04 13:36:16492// Notifies a missing plug-in placeholder that we have started downloading
493// the plug-in.
494IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin)
495
496// Notifies a missing plug-in placeholder that we have finished downloading
497// the plug-in.
498IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin)
499
[email protected]725f6882012-01-13 18:50:06500// Notifies a missing plug-in placeholder that there was an error downloading
501// the plug-in.
502IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin,
503 std::string /* message */)
[email protected]4f62d8052012-01-18 16:16:59504#endif // defined(ENABLE_PLUGIN_INSTALLATION)
505
[email protected]1a86f752012-02-10 13:20:36506// Notifies a missing plug-in placeholder that the user cancelled downloading
507// the plug-in.
508IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin)
509
[email protected]4f62d8052012-01-18 16:16:59510// Tells the browser to open chrome://plugins in a new tab. We use a separate
511// message because renderer processes aren't allowed to directly navigate to
512// chrome:// URLs.
513IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins)
[email protected]725f6882012-01-13 18:50:06514
[email protected]cc5f7812012-05-31 13:50:34515// Tells the browser that there was an error loading a plug-in.
516IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin,
[email protected]a7329162013-02-07 19:21:48517 base::FilePath /* plugin_path */)
[email protected]cc5f7812012-05-31 13:50:34518
[email protected]a1199132012-10-26 22:14:41519// Tells the browser that we blocked a plug-in because NPAPI is not supported.
520IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported,
521 std::string /* identifer */)
522
[email protected]cc7b11012013-05-02 22:02:53523// Tells the renderer that the NPAPI cannot be used. For example Ash on windows.
524IPC_MESSAGE_ROUTED0(ChromeViewMsg_NPAPINotSupported)
525
[email protected]d5a04832011-03-12 21:46:26526// Notification that the page has an OpenSearch description document
527// associated with it.
[email protected]2ccf45c2011-08-19 23:35:50528IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD,
[email protected]0911fd182014-05-22 08:02:35529 GURL /* page_url */,
530 GURL /* osdd_url */,
[email protected]c08e7932011-03-29 04:08:14531 search_provider::OSDDType)
[email protected]d5a04832011-03-12 21:46:26532
533// Find out if the given url's security origin is installed as a search
534// provider.
[email protected]2ccf45c2011-08-19 23:35:50535IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState,
[email protected]c08e7932011-03-29 04:08:14536 GURL /* page url */,
537 GURL /* inquiry url */,
538 search_provider::InstallState /* install */)
[email protected]d5a04832011-03-12 21:46:26539
[email protected]d5a04832011-03-12 21:46:26540// Sends back stats about the V8 heap.
[email protected]2ccf45c2011-08-19 23:35:50541IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats,
[email protected]d5a04832011-03-12 21:46:26542 int /* size of heap (allocated from the OS) */,
543 int /* bytes in use */)
544
[email protected]b1e7562d2013-05-27 05:47:53545// Request for preconnect to host providing resource specified by URL
546IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_Preconnect,
547 GURL /* preconnect target url */)
548
[email protected]d5a04832011-03-12 21:46:26549// Notifies when a plugin couldn't be loaded because it's outdated.
[email protected]2ccf45c2011-08-19 23:35:50550IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin,
[email protected]27c483892012-02-09 15:59:10551 int /* placeholder ID */,
552 std::string /* plug-in group identifier */)
[email protected]d5a04832011-03-12 21:46:26553
[email protected]e2424012012-02-03 10:26:50554// Notifies when a plugin couldn't be loaded because it requires
555// user authorization.
[email protected]51ffaf72012-05-09 21:00:49556IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin,
[email protected]428fac12013-12-05 21:38:49557 base::string16 /* name */,
[email protected]51ffaf72012-05-09 21:00:49558 std::string /* plug-in group identifier */)
[email protected]e2424012012-02-03 10:26:50559
[email protected]d5a04832011-03-12 21:46:26560// Provide the browser process with information about the WebCore resource
[email protected]872ae5b2011-05-26 20:20:50561// cache and current renderer framerate.
[email protected]2ccf45c2011-08-19 23:35:50562IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats,
[email protected]a1221aea2013-11-07 01:31:30563 blink::WebCache::ResourceTypeStats)
[email protected]d5a04832011-03-12 21:46:26564
[email protected]4c94b8c2011-05-17 16:17:45565// Message sent from the renderer to the browser to notify it of a
566// window.print() call which should cancel the prerender. The message is sent
567// only when the renderer is prerendering.
[email protected]2ccf45c2011-08-19 23:35:50568IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting)
[email protected]4c94b8c2011-05-17 16:17:45569
[email protected]68cafdb2011-06-10 21:42:18570// Sent when the renderer was prevented from displaying insecure content in
571// a secure page by a security policy. The page may appear incomplete.
[email protected]2ccf45c2011-08-19 23:35:50572IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent)
[email protected]68cafdb2011-06-10 21:42:18573
574// Sent when the renderer was prevented from running insecure content in
575// a secure origin by a security policy. The page may appear incomplete.
[email protected]2ccf45c2011-08-19 23:35:50576IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent)
[email protected]68cafdb2011-06-10 21:42:18577
mlamouri89ccc632014-09-16 19:29:58578IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_DidGetWebApplicationInfo,
579 WebApplicationInfo)
[email protected]33b1c082014-02-01 01:46:35580
mlamouri89ccc632014-09-16 19:29:58581#if defined(OS_ANDROID)
[email protected]33b1c082014-02-01 01:46:35582IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveMetaTagContent,
583 bool /* success */,
584 std::string /* tag_name */,
585 std::string /* tag_content */,
586 GURL /* expected_url */)
[email protected]51208252013-08-19 21:05:30587#endif // defined(OS_ANDROID)
588
[email protected]09da02f2013-08-14 01:41:59589// Logs events from InstantExtended New Tab Pages.
590IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_LogEvent,
[email protected]8133e412014-05-31 00:51:38591 int /* page_seq_no */,
[email protected]09da02f2013-08-14 01:41:59592 NTPLoggingEventType /* event */)
[email protected]38fe2892013-07-11 00:21:04593
[email protected]c74876d2013-12-14 00:27:13594// Logs an impression on one of the Most Visited tile on the InstantExtended
595// New Tab Page.
[email protected]abd6c4d2014-03-17 06:48:17596IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedImpression,
[email protected]8133e412014-05-31 00:51:38597 int /* page_seq_no */,
[email protected]abd6c4d2014-03-17 06:48:17598 int /* position */,
599 base::string16 /* provider */)
600
601// Logs a navigation on one of the Most Visited tile on the InstantExtended
602// New Tab Page.
603IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedNavigation,
[email protected]8133e412014-05-31 00:51:38604 int /* page_seq_no */,
[email protected]c74876d2013-12-14 00:27:13605 int /* position */,
606 base::string16 /* provider */)
607
beaudoin709ff022014-11-21 22:06:02608// The Instant page asks whether the user syncs its history.
609IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_HistorySyncCheck,
610 int /* page_seq_no */)
611
[email protected]d76376d2013-10-31 06:44:42612// The Instant page asks for Chrome identity check against |identity|.
613IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ChromeIdentityCheck,
[email protected]8133e412014-05-31 00:51:38614 int /* page_seq_no */,
[email protected]428fac12013-12-05 21:38:49615 base::string16 /* identity */)
[email protected]d76376d2013-10-31 06:44:42616
[email protected]38fe2892013-07-11 00:21:04617// Tells InstantExtended to set the omnibox focus state.
618IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FocusOmnibox,
[email protected]8133e412014-05-31 00:51:38619 int /* page_seq_no */,
[email protected]38fe2892013-07-11 00:21:04620 OmniboxFocusState /* state */)
621
[email protected]6cf51b62013-08-10 13:49:22622// Tells InstantExtended to paste text into the omnibox. If text is empty,
623// the clipboard contents will be pasted. This causes the omnibox dropdown to
624// open.
625IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PasteAndOpenDropdown,
[email protected]8133e412014-05-31 00:51:38626 int /* page_seq_no */,
[email protected]428fac12013-12-05 21:38:49627 base::string16 /* text to be pasted */)
[email protected]6cf51b62013-08-10 13:49:22628
[email protected]38fe2892013-07-11 00:21:04629// Tells InstantExtended whether the embedded search API is supported.
630// See http://dev.chromium.org/embeddedsearch
631IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined,
[email protected]8133e412014-05-31 00:51:38632 int /* page_seq_no */,
[email protected]38fe2892013-07-11 00:21:04633 bool /* result */)
634
635// Tells InstantExtended to delete a most visited item.
636IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem,
[email protected]8133e412014-05-31 00:51:38637 int /* page_seq_no */,
[email protected]38fe2892013-07-11 00:21:04638 GURL /* url */)
639
[email protected]064f57a2013-10-28 21:50:56640// Tells InstantExtended to navigate the active tab to a possibly privileged
[email protected]38fe2892013-07-11 00:21:04641// URL.
[email protected]064f57a2013-10-28 21:50:56642IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_SearchBoxNavigate,
[email protected]8133e412014-05-31 00:51:38643 int /* page_seq_no */,
[email protected]38fe2892013-07-11 00:21:04644 GURL /* destination */,
[email protected]38fe2892013-07-11 00:21:04645 WindowOpenDisposition /* disposition */,
[email protected]064f57a2013-10-28 21:50:56646 bool /*is_most_visited_item_url*/)
[email protected]38fe2892013-07-11 00:21:04647
648// Tells InstantExtended to undo all most visited item deletions.
649IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions,
[email protected]8133e412014-05-31 00:51:38650 int /* page_seq_no */)
[email protected]38fe2892013-07-11 00:21:04651
652// Tells InstantExtended to undo one most visited item deletion.
653IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion,
[email protected]8133e412014-05-31 00:51:38654 int /* page_seq_no */,
[email protected]38fe2892013-07-11 00:21:04655 GURL /* url */)
656
657// Tells InstantExtended whether the page supports voice search.
658IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetVoiceSearchSupported,
[email protected]8133e412014-05-31 00:51:38659 int /* page_seq_no */,
[email protected]38fe2892013-07-11 00:21:04660 bool /* supported */)
[email protected]88b50b62013-09-01 23:05:06661
[email protected]2309e912013-10-01 01:33:30662// Tells the renderer a list of URLs which should be bounced back to the browser
663// process so that they can be assigned to an Instant renderer.
664IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs,
665 std::vector<GURL> /* search_urls */,
666 GURL /* new_tab_page_url */)
667
[email protected]22498e02014-05-29 17:47:16668#if defined(ENABLE_PLUGINS)
[email protected]1ef13cf2014-03-21 22:44:01669// Sent by the renderer to check if crash reporting is enabled.
670IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled,
671 bool /* enabled */)
[email protected]22498e02014-05-29 17:47:16672#endif