blob: 0fa3da9a7a4309d1aed5ebfd5307cd91b9d4023e [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.
6#include <map>
7#include <set>
initial.commit09911bf2008-07-26 23:55:298#include <string>
9#include <vector>
10
11#include "base/basictypes.h"
[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]b77ddff2013-05-24 07:49:0119#include "chrome/common/autocomplete_match_type.h"
[email protected]79d68c62011-04-15 21:07:0320#include "chrome/common/common_param_traits.h"
[email protected]c14406092011-10-27 13:43:4221#include "chrome/common/content_settings.h"
[email protected]610ca832011-10-19 12:59:2022#include "chrome/common/content_settings_pattern.h"
[email protected]1c9c7fb2011-03-11 16:38:3823#include "chrome/common/instant_types.h"
[email protected]09da02f2013-08-14 01:41:5924#include "chrome/common/ntp_logging_events.h"
[email protected]ca98bd32013-04-09 05:16:0525#include "chrome/common/omnibox_focus_state.h"
[email protected]c08e7932011-03-29 04:08:1426#include "chrome/common/search_provider.h"
[email protected]b2ed9c672013-06-06 23:34:0027#include "chrome/common/translate/language_detection_details.h"
28#include "chrome/common/translate/translate_errors.h"
[email protected]512b5bd2013-07-23 20:24:0029#include "components/nacl/common/nacl_types.h"
[email protected]19a5c7442011-10-21 20:00:4130#include "content/public/common/common_param_traits.h"
[email protected]3c71576ce2013-07-23 02:00:0131#include "content/public/common/referrer.h"
[email protected]9b003482013-05-21 14:00:1732#include "content/public/common/top_controls_state.h"
[email protected]17b5a8172012-06-22 21:09:0933#include "ipc/ipc_channel_handle.h"
[email protected]d5a04832011-03-12 21:46:2634#include "ipc/ipc_message_macros.h"
[email protected]e7f009d2011-06-14 19:35:1035#include "ipc/ipc_platform_file.h"
[email protected]1d4ecf42011-08-26 21:27:3036#include "third_party/skia/include/core/SkBitmap.h"
[email protected]2255a9332013-06-17 05:12:3137#include "third_party/WebKit/public/web/WebCache.h"
38#include "third_party/WebKit/public/web/WebConsoleMessage.h"
[email protected]3c3acca2013-02-26 03:07:0739#include "ui/base/window_open_disposition.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]992db4c2011-05-12 15:37:1546class SkBitmap;
47
[email protected]a6097f42011-01-10 08:50:5148// Command values for the cmd parameter of the
49// ViewHost_JavaScriptStressTestControl message. For each command the parameter
50// passed has a different meaning:
51// For the command kJavaScriptStressTestSetStressRunType the parameter it the
52// type taken from the enumeration v8::Testing::StressType.
53// For the command kJavaScriptStressTestPrepareStressRun the parameter it the
54// number of the stress run about to take place.
55enum ViewHostMsg_JavaScriptStressTestControl_Commands {
56 kJavaScriptStressTestSetStressRunType = 0,
57 kJavaScriptStressTestPrepareStressRun = 1,
58};
59
[email protected]51b63f62011-10-05 18:55:4260// This enum is inside a struct so that we can forward-declare the struct in
61// others headers without having to include this one.
62struct ChromeViewHostMsg_GetPluginInfo_Status {
[email protected]51b63f62011-10-05 18:55:4263 enum Value {
64 kAllowed,
[email protected]8aa7a412011-11-07 12:33:4265 kBlocked,
66 kClickToPlay,
[email protected]51b63f62011-10-05 18:55:4267 kDisabled,
68 kNotFound,
[email protected]a1199132012-10-26 22:14:4169 kNPAPINotSupported,
[email protected]8aa7a412011-11-07 12:33:4270 kOutdatedBlocked,
71 kOutdatedDisallowed,
72 kUnauthorized,
[email protected]51b63f62011-10-05 18:55:4273 };
74
75 ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed) {}
76
77 Value value;
78};
79
[email protected]7d5c3ac2009-02-04 08:58:1980namespace IPC {
81
[email protected]9c7453d2012-01-21 00:45:4082#if defined(OS_POSIX) && !defined(USE_AURA) && !defined(OS_ANDROID)
[email protected]661eb9d2009-02-03 02:11:4883
84// TODO(port): this shouldn't exist. However, the plugin stuff is really using
85// HWNDS (NativeView), and making Windows calls based on them. I've not figured
86// out the deal with plugins yet.
[email protected]9c7453d2012-01-21 00:45:4087// TODO(android): a gfx::NativeView is the same as a gfx::NativeWindow.
[email protected]661eb9d2009-02-03 02:11:4888template <>
89struct ParamTraits<gfx::NativeView> {
90 typedef gfx::NativeView param_type;
[email protected]7d5c3ac2009-02-04 08:58:1991 static void Write(Message* m, const param_type& p) {
[email protected]661eb9d2009-02-03 02:11:4892 NOTIMPLEMENTED();
93 }
94
[email protected]ce208f872012-03-07 20:42:5695 static bool Read(const Message* m, PickleIterator* iter, param_type* p) {
[email protected]661eb9d2009-02-03 02:11:4896 NOTIMPLEMENTED();
97 *p = NULL;
98 return true;
99 }
100
[email protected]252cad62010-08-18 18:33:57101 static void Log(const param_type& p, std::string* l) {
[email protected]93f10522010-10-31 16:27:48102 l->append(base::StringPrintf("<gfx::NativeView>"));
[email protected]661eb9d2009-02-03 02:11:48103 }
104};
105
[email protected]9c7453d2012-01-21 00:45:40106#endif // defined(OS_POSIX) && !defined(USE_AURA) && !defined(OS_ANDROID)
[email protected]661eb9d2009-02-03 02:11:48107
[email protected]7b291f92009-08-14 05:43:53108template <>
[email protected]610ca832011-10-19 12:59:20109struct ParamTraits<ContentSettingsPattern> {
110 typedef ContentSettingsPattern param_type;
111 static void Write(Message* m, const param_type& p);
[email protected]ce208f872012-03-07 20:42:56112 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
[email protected]610ca832011-10-19 12:59:20113 static void Log(const param_type& p, std::string* l);
114};
115
[email protected]b3df5a42010-05-11 14:31:09116} // namespace IPC
[email protected]9f4db512010-05-10 20:21:41117
[email protected]5a52f162008-08-27 04:15:31118#endif // CHROME_COMMON_RENDER_MESSAGES_H_
[email protected]d5a04832011-03-12 21:46:26119
[email protected]778574e2011-03-21 22:03:50120#define IPC_MESSAGE_START ChromeMsgStart
[email protected]d5a04832011-03-12 21:46:26121
[email protected]51b63f62011-10-05 18:55:42122IPC_ENUM_TRAITS(ChromeViewHostMsg_GetPluginInfo_Status::Value)
[email protected]8d4c276d2013-05-29 19:39:52123IPC_ENUM_TRAITS(OmniboxFocusChangeReason)
[email protected]ca98bd32013-04-09 05:16:05124IPC_ENUM_TRAITS(OmniboxFocusState)
[email protected]c08e7932011-03-29 04:08:14125IPC_ENUM_TRAITS(search_provider::OSDDType)
126IPC_ENUM_TRAITS(search_provider::InstallState)
[email protected]a6827652012-11-20 23:41:08127IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment)
128IPC_ENUM_TRAITS(ThemeBackgroundImageTiling)
[email protected]fffaf972011-03-24 01:34:35129IPC_ENUM_TRAITS(TranslateErrors::Type)
[email protected]fffaf972011-03-24 01:34:35130IPC_ENUM_TRAITS(WebKit::WebConsoleMessage::Level)
[email protected]9b003482013-05-21 14:00:17131IPC_ENUM_TRAITS(content::TopControlsState)
[email protected]fffaf972011-03-24 01:34:35132
[email protected]51b63f62011-10-05 18:55:42133IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status)
134IPC_STRUCT_TRAITS_MEMBER(value)
135IPC_STRUCT_TRAITS_END()
136
[email protected]cd33d282012-09-21 12:53:04137// Output parameters for ChromeViewHostMsg_GetPluginInfo message.
138IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output)
139 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status)
[email protected]d7bd3e52013-07-21 04:29:20140 IPC_STRUCT_MEMBER(content::WebPluginInfo, plugin)
[email protected]cd33d282012-09-21 12:53:04141 IPC_STRUCT_MEMBER(std::string, actual_mime_type)
142 IPC_STRUCT_MEMBER(std::string, group_identifier)
143 IPC_STRUCT_MEMBER(string16, group_name)
144IPC_STRUCT_END()
145
[email protected]610ca832011-10-19 12:59:20146IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts)
147 IPC_STRUCT_TRAITS_MEMBER(scheme)
148 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard)
149 IPC_STRUCT_TRAITS_MEMBER(host)
150 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard)
151 IPC_STRUCT_TRAITS_MEMBER(port)
152 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard)
153 IPC_STRUCT_TRAITS_MEMBER(path)
[email protected]ae689aab2012-01-23 17:52:08154 IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard)
[email protected]610ca832011-10-19 12:59:20155IPC_STRUCT_TRAITS_END()
156
[email protected]c14406092011-10-27 13:43:42157IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource)
158 IPC_STRUCT_TRAITS_MEMBER(primary_pattern)
159 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern)
160 IPC_STRUCT_TRAITS_MEMBER(setting)
161 IPC_STRUCT_TRAITS_MEMBER(source)
162 IPC_STRUCT_TRAITS_MEMBER(incognito)
163IPC_STRUCT_TRAITS_END()
164
[email protected]e7868c82013-03-12 03:55:56165IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem)
[email protected]dfee2f62013-02-22 06:46:06166 IPC_STRUCT_TRAITS_MEMBER(url)
167 IPC_STRUCT_TRAITS_MEMBER(title)
168IPC_STRUCT_TRAITS_END()
169
[email protected]edece212011-11-16 11:56:56170IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules)
171 IPC_STRUCT_TRAITS_MEMBER(image_rules)
172 IPC_STRUCT_TRAITS_MEMBER(script_rules)
173IPC_STRUCT_TRAITS_END()
174
[email protected]a8c28472013-07-17 05:34:29175IPC_STRUCT_TRAITS_BEGIN(RGBAColor)
176 IPC_STRUCT_TRAITS_MEMBER(r)
177 IPC_STRUCT_TRAITS_MEMBER(g)
178 IPC_STRUCT_TRAITS_MEMBER(b)
179 IPC_STRUCT_TRAITS_MEMBER(a)
180IPC_STRUCT_TRAITS_END()
181
[email protected]a6827652012-11-20 23:41:08182IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo)
[email protected]a8c28472013-07-17 05:34:29183 IPC_STRUCT_TRAITS_MEMBER(using_default_theme)
184 IPC_STRUCT_TRAITS_MEMBER(background_color)
185 IPC_STRUCT_TRAITS_MEMBER(text_color)
186 IPC_STRUCT_TRAITS_MEMBER(link_color)
187 IPC_STRUCT_TRAITS_MEMBER(text_color_light)
188 IPC_STRUCT_TRAITS_MEMBER(header_color)
189 IPC_STRUCT_TRAITS_MEMBER(section_border_color)
[email protected]a6827652012-11-20 23:41:08190 IPC_STRUCT_TRAITS_MEMBER(theme_id)
191 IPC_STRUCT_TRAITS_MEMBER(image_horizontal_alignment)
192 IPC_STRUCT_TRAITS_MEMBER(image_vertical_alignment)
193 IPC_STRUCT_TRAITS_MEMBER(image_tiling)
194 IPC_STRUCT_TRAITS_MEMBER(image_height)
[email protected]5189fa12013-03-20 23:00:05195 IPC_STRUCT_TRAITS_MEMBER(has_attribution)
[email protected]a8c28472013-07-17 05:34:29196 IPC_STRUCT_TRAITS_MEMBER(logo_alternate)
[email protected]a6827652012-11-20 23:41:08197IPC_STRUCT_TRAITS_END()
198
[email protected]fffaf972011-03-24 01:34:35199IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::ResourceTypeStat)
200 IPC_STRUCT_TRAITS_MEMBER(count)
201 IPC_STRUCT_TRAITS_MEMBER(size)
202 IPC_STRUCT_TRAITS_MEMBER(liveSize)
203 IPC_STRUCT_TRAITS_MEMBER(decodedSize)
204IPC_STRUCT_TRAITS_END()
205
206IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::ResourceTypeStats)
207 IPC_STRUCT_TRAITS_MEMBER(images)
208 IPC_STRUCT_TRAITS_MEMBER(cssStyleSheets)
209 IPC_STRUCT_TRAITS_MEMBER(scripts)
210 IPC_STRUCT_TRAITS_MEMBER(xslStyleSheets)
211 IPC_STRUCT_TRAITS_MEMBER(fonts)
212IPC_STRUCT_TRAITS_END()
213
214IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::UsageStats)
215 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity)
216 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity)
217 IPC_STRUCT_TRAITS_MEMBER(capacity)
218 IPC_STRUCT_TRAITS_MEMBER(liveSize)
219 IPC_STRUCT_TRAITS_MEMBER(deadSize)
220IPC_STRUCT_TRAITS_END()
221
[email protected]27eff892013-05-21 16:40:52222IPC_STRUCT_TRAITS_BEGIN(LanguageDetectionDetails)
223 IPC_STRUCT_TRAITS_MEMBER(time)
224 IPC_STRUCT_TRAITS_MEMBER(url)
225 IPC_STRUCT_TRAITS_MEMBER(content_language)
226 IPC_STRUCT_TRAITS_MEMBER(cld_language)
227 IPC_STRUCT_TRAITS_MEMBER(is_cld_reliable)
[email protected]20efbf2f2013-05-31 06:42:37228 IPC_STRUCT_TRAITS_MEMBER(html_root_language)
[email protected]27eff892013-05-21 16:40:52229 IPC_STRUCT_TRAITS_MEMBER(adopted_language)
[email protected]d861d972013-05-30 06:02:31230 IPC_STRUCT_TRAITS_MEMBER(contents)
[email protected]27eff892013-05-21 16:40:52231IPC_STRUCT_TRAITS_END()
232
[email protected]09da02f2013-08-14 01:41:59233IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType,
234 NTP_NUM_EVENT_TYPES)
235
[email protected]d5a04832011-03-12 21:46:26236//-----------------------------------------------------------------------------
237// RenderView messages
238// These are messages sent from the browser to the renderer process.
239
[email protected]d5a04832011-03-12 21:46:26240// Tells the renderer to set its maximum cache size to the supplied value.
[email protected]2ccf45c2011-08-19 23:35:50241IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities,
[email protected]d5a04832011-03-12 21:46:26242 size_t /* min_dead_capacity */,
243 size_t /* max_dead_capacity */,
244 size_t /* capacity */)
245
246// Tells the renderer to clear the cache.
[email protected]e81d4d72011-09-29 16:54:31247IPC_MESSAGE_CONTROL1(ChromeViewMsg_ClearCache,
248 bool /* on_navigation */)
[email protected]d5a04832011-03-12 21:46:26249
[email protected]55722152011-03-22 01:33:53250// Tells the renderer to dump as much memory as it can, perhaps because we
251// have memory pressure or the renderer is (or will be) paged out. This
252// should only result in purging objects we can recalculate, e.g. caches or
253// JS garbage, not in purging irreplaceable objects.
[email protected]2ccf45c2011-08-19 23:35:50254IPC_MESSAGE_CONTROL0(ChromeViewMsg_PurgeMemory)
[email protected]55722152011-03-22 01:33:53255
[email protected]350019f2011-08-02 04:18:33256// For WebUI testing, this message stores parameters to do ScriptEvalRequest at
257// a time which is late enough to not be thrown out, and early enough to be
258// before onload events are fired.
[email protected]2ccf45c2011-08-19 23:35:50259IPC_MESSAGE_ROUTED4(ChromeViewMsg_WebUIJavaScript,
[email protected]350019f2011-08-02 04:18:33260 string16, /* frame_xpath */
261 string16, /* jscript_url */
262 int, /* ID */
263 bool /* If true, result is sent back. */)
264
[email protected]edece212011-11-16 11:56:56265// Set the content setting rules stored by the renderer.
266IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules,
267 RendererContentSettingRules /* rules */)
[email protected]c14406092011-10-27 13:43:42268
[email protected]51ffaf72012-05-09 21:00:49269// Tells the render view to load all blocked plugins with the given identifier.
270IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins,
271 std::string /* identifier */)
[email protected]d5a04832011-03-12 21:46:26272
[email protected]d5a04832011-03-12 21:46:26273// Asks the renderer to send back stats on the WebCore cache broken down by
274// resource types.
[email protected]2ccf45c2011-08-19 23:35:50275IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats)
[email protected]d5a04832011-03-12 21:46:26276
[email protected]63a8ba12011-04-29 05:42:22277// Tells the renderer to create a FieldTrial, and by using a 100% probability
278// for the FieldTrial, forces the FieldTrial to have assigned group name.
[email protected]2ccf45c2011-08-19 23:35:50279IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup,
[email protected]63a8ba12011-04-29 05:42:22280 std::string /* field trial name */,
281 std::string /* group name that was assigned. */)
282
[email protected]d5a04832011-03-12 21:46:26283// Asks the renderer to send back V8 heap stats.
[email protected]2ccf45c2011-08-19 23:35:50284IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats)
[email protected]d5a04832011-03-12 21:46:26285
[email protected]d5a04832011-03-12 21:46:26286// Posts a message to the renderer.
[email protected]2ccf45c2011-08-19 23:35:50287IPC_MESSAGE_ROUTED3(ChromeViewMsg_HandleMessageFromExternalHost,
[email protected]d5a04832011-03-12 21:46:26288 std::string /* The message */,
289 std::string /* The origin */,
290 std::string /* The target*/)
291
[email protected]c55e3b82012-08-09 15:27:05292IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant)
[email protected]d5a04832011-03-12 21:46:26293
[email protected]8d4c276d2013-05-29 19:39:52294IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFocusChanged,
295 OmniboxFocusState /* new_focus_state */,
296 OmniboxFocusChangeReason /* reason */)
[email protected]6a6811a2012-12-12 04:18:16297
[email protected]38fe2892013-07-11 00:21:04298IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFontInformation,
299 string16 /* omnibox_font */,
300 size_t /* omnibox_font_size */)
301
302IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxMarginChange,
303 int /* start */,
304 int /* width */)
[email protected]0d0b4a42013-06-14 00:46:26305
[email protected]e7868c82013-03-12 03:55:56306IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged,
[email protected]ab01dd752013-06-08 05:13:36307 std::vector<InstantMostVisitedItem> /* items */)
[email protected]dfee2f62013-02-22 06:46:06308
[email protected]38fe2892013-07-11 00:21:04309IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation,
310 bool /* is_app_launcher_enabled */)
[email protected]dfee2f62013-02-22 06:46:06311
[email protected]38fe2892013-07-11 00:21:04312IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress,
313 bool /* input_in_progress */)
[email protected]dfee2f62013-02-22 06:46:06314
[email protected]38fe2892013-07-11 00:21:04315IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSubmit,
316 string16 /* value */)
317
318IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged,
319 ThemeBackgroundInfo /* value */)
[email protected]dfee2f62013-02-22 06:46:06320
[email protected]3473ae02013-06-07 00:28:08321IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch)
322
[email protected]1138cce2011-12-02 21:29:36323// Toggles visual muting of the render view area. This is on when a constrained
324// window is showing.
325IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized,
326 bool /* deemphazied */)
327
[email protected]d5a04832011-03-12 21:46:26328// Tells the renderer to translate the page contents from one language to
329// another.
[email protected]2ccf45c2011-08-19 23:35:50330IPC_MESSAGE_ROUTED4(ChromeViewMsg_TranslatePage,
[email protected]d5a04832011-03-12 21:46:26331 int /* page id */,
332 std::string, /* the script injected in the page */
333 std::string, /* BCP 47/RFC 5646 language code the page
334 is in */
335 std::string /* BCP 47/RFC 5646 language code to translate
336 to */)
337
338// Tells the renderer to revert the text of translated page to its original
339// contents.
[email protected]2ccf45c2011-08-19 23:35:50340IPC_MESSAGE_ROUTED1(ChromeViewMsg_RevertTranslation,
[email protected]d5a04832011-03-12 21:46:26341 int /* page id */)
342
[email protected]d5a04832011-03-12 21:46:26343// Sent on process startup to indicate whether this process is running in
344// incognito mode.
[email protected]2ccf45c2011-08-19 23:35:50345IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess,
[email protected]d5a04832011-03-12 21:46:26346 bool /* is_incognito_processs */)
347
[email protected]24665682013-02-25 20:59:38348// Sent on process startup to indicate whether the extension activity
349// log is enabled.
350IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetExtensionActivityLogEnabled,
351 bool /* extension_activity_log_enabled */)
352
[email protected]68cafdb2011-06-10 21:42:18353// Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent.
[email protected]2ccf45c2011-08-19 23:35:50354IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent,
[email protected]68cafdb2011-06-10 21:42:18355 bool /* allowed */)
356
357// Sent in response to ViewHostMsg_DidBlockRunningInsecureContent.
[email protected]2ccf45c2011-08-19 23:35:50358IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent,
[email protected]68cafdb2011-06-10 21:42:18359 bool /* allowed */)
360
[email protected]92d213842011-11-02 20:09:43361// Tells renderer to always enforce mixed content blocking for this host.
362IPC_MESSAGE_ROUTED1(ChromeViewMsg_AddStrictSecurityHost,
363 std::string /* host */)
364
[email protected]8c40da62011-07-13 22:58:46365// Sent when the profile changes the kSafeBrowsingEnabled preference.
[email protected]2ccf45c2011-08-19 23:35:50366IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection,
[email protected]8c40da62011-07-13 22:58:46367 bool /* enable_phishing_detection */)
368
[email protected]83af80b22011-09-06 18:49:19369// This message asks frame sniffer start.
370IPC_MESSAGE_ROUTED1(ChromeViewMsg_StartFrameSniffer,
371 string16 /* frame-name */)
372
[email protected]31dd25ab2013-07-31 21:59:05373// Asks the renderer for a thumbnail of the image selected by the most
374// recently opened context menu, if there is one. If the image's area
375// is greater than thumbnail_min_area it will be downscaled to
376// be within thumbnail_max_size. The possibly downsampled image will be
377// returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message.
378IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode,
379 int /* thumbnail_min_area_pixels */,
380 gfx::Size /* thumbnail_max_size_pixels */)
381
[email protected]9b003482013-05-21 14:00:17382// Notifies the renderer whether hiding/showing the top controls is enabled,
383// what the current state should be, and whether or not to animate to the
384// proper state.
385IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState,
386 content::TopControlsState /* constraints */,
387 content::TopControlsState /* current */,
388 bool /* animate */)
389
[email protected]31dd25ab2013-07-31 21:59:05390
[email protected]67264062013-07-25 12:39:26391// Updates the window features of the render view.
392IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures,
393 WebKit::WebWindowFeatures /* window_features */)
394
[email protected]31dd25ab2013-07-31 21:59:05395IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK,
396 SkBitmap /* thumbnail */)
397
398
[email protected]21d898342011-08-23 18:14:41399// JavaScript related messages -----------------------------------------------
400
401// Notify the JavaScript engine in the render to change its parameters
402// while performing stress testing.
403IPC_MESSAGE_ROUTED2(ChromeViewMsg_JavaScriptStressTestControl,
404 int /* cmd */,
405 int /* param */)
406
[email protected]a1127f82011-09-08 17:27:01407// Asks the renderer to send back FPS.
408IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetFPS)
409
[email protected]6f9f7d82011-12-08 12:13:34410// Tells the view it is displaying an interstitial page.
411IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial)
412
[email protected]7e771bfb2013-01-14 23:23:21413// Provides the renderer with the results of the browser's investigation into
414// why a recent main frame load failed (currently, just DNS probe result).
415// NetErrorHelper will receive this mesage and replace or update the error
416// page with more specific troubleshooting suggestions.
417IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo,
[email protected]2ea1efe2013-07-17 05:23:13418 int /* DNS probe status */)
[email protected]7e771bfb2013-01-14 23:23:21419
[email protected]d5a04832011-03-12 21:46:26420//-----------------------------------------------------------------------------
[email protected]63f72132012-04-18 18:02:44421// Misc messages
[email protected]d5a04832011-03-12 21:46:26422// These are messages sent from the renderer to the browser process.
423
[email protected]93b9d692011-04-13 00:44:31424// Notification that the language for the tab has been determined.
[email protected]2ccf45c2011-08-19 23:35:50425IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_TranslateLanguageDetermined,
[email protected]27eff892013-05-21 16:40:52426 LanguageDetectionDetails /* details about lang detection */,
427 bool /* whether the page needs translation */)
[email protected]93b9d692011-04-13 00:44:31428
[email protected]2ccf45c2011-08-19 23:35:50429IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats,
[email protected]d5a04832011-03-12 21:46:26430 WebKit::WebCache::UsageStats /* stats */)
431
[email protected]d5a04832011-03-12 21:46:26432// Tells the browser that content in the current page was blocked due to the
433// user's content settings.
[email protected]2ccf45c2011-08-19 23:35:50434IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ContentBlocked,
[email protected]d5a04832011-03-12 21:46:26435 ContentSettingsType, /* type of blocked content */
436 std::string /* resource identifier */)
437
[email protected]5327dfb2011-05-03 17:50:36438// Sent by the renderer process to check whether access to web databases is
[email protected]bac33eb2011-05-04 01:47:49439// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50440IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase,
[email protected]9a611a92011-05-07 17:06:18441 int /* render_view_id */,
442 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15443 GURL /* top origin url */,
[email protected]bac33eb2011-05-04 01:47:49444 string16 /* database name */,
445 string16 /* database display name */,
[email protected]8c276642011-05-06 09:41:00446 bool /* allowed */)
[email protected]bac33eb2011-05-04 01:47:49447
448// Sent by the renderer process to check whether access to DOM Storage is
449// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50450IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage,
[email protected]bac33eb2011-05-04 01:47:49451 int /* render_view_id */,
452 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15453 GURL /* top origin url */,
[email protected]c729db82011-11-23 17:37:27454 bool /* if true local storage, otherwise session */,
[email protected]8c276642011-05-06 09:41:00455 bool /* allowed */)
[email protected]5327dfb2011-05-03 17:50:36456
[email protected]45316d62011-05-12 18:15:30457// Sent by the renderer process to check whether access to FileSystem is
458// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50459IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_AllowFileSystem,
[email protected]45316d62011-05-12 18:15:30460 int /* render_view_id */,
461 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15462 GURL /* top origin url */,
[email protected]45316d62011-05-12 18:15:30463 bool /* allowed */)
464
[email protected]9a611a92011-05-07 17:06:18465// Sent by the renderer process to check whether access to Indexed DBis
466// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50467IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB,
[email protected]9a611a92011-05-07 17:06:18468 int /* render_view_id */,
[email protected]c0a45a982011-05-25 16:58:15469 GURL /* origin_url */,
470 GURL /* top origin url */,
[email protected]9a611a92011-05-07 17:06:18471 string16 /* database name */,
472 bool /* allowed */)
[email protected]5327dfb2011-05-03 17:50:36473
[email protected]51b63f62011-10-05 18:55:42474// Return information about a plugin for the given URL and MIME type.
475// In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows
476// about specific reasons why a plug-in can't be used, for example because it's
477// disabled.
[email protected]cd33d282012-09-21 12:53:04478IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo,
[email protected]51b63f62011-10-05 18:55:42479 int /* render_view_id */,
480 GURL /* url */,
481 GURL /* top origin url */,
482 std::string /* mime_type */,
[email protected]cd33d282012-09-21 12:53:04483 ChromeViewHostMsg_GetPluginInfo_Output /* output */)
[email protected]51b63f62011-10-05 18:55:42484
[email protected]43b7eaca2012-01-12 17:27:28485#if defined(ENABLE_PLUGIN_INSTALLATION)
[email protected]1d697f32011-11-28 11:57:51486// Tells the browser to search for a plug-in that can handle the given MIME
487// type. The result will be sent asynchronously to the routing ID
488// |placeholder_id|.
489IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin,
490 int /* placeholder_id */,
491 std::string /* mime_type */)
492
[email protected]3240d2502012-01-26 17:00:33493// Notifies the browser that a missing plug-in placeholder has been removed, so
[email protected]e2424012012-02-03 10:26:50494// the corresponding PluginPlaceholderHost can be deleted.
495IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost,
[email protected]3240d2502012-01-26 17:00:33496 int /* placeholder_id */)
497
[email protected]1d697f32011-11-28 11:57:51498// Notifies a missing plug-in placeholder that a plug-in with name |plugin_name|
499// has been found.
500IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin,
501 string16 /* plugin_name */)
502
503// Notifies a missing plug-in placeholder that no plug-in has been found.
504IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin)
505
[email protected]0dd9e8b2012-01-04 13:36:16506// Notifies a missing plug-in placeholder that we have started downloading
507// the plug-in.
508IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin)
509
510// Notifies a missing plug-in placeholder that we have finished downloading
511// the plug-in.
512IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin)
513
[email protected]725f6882012-01-13 18:50:06514// Notifies a missing plug-in placeholder that there was an error downloading
515// the plug-in.
516IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin,
517 std::string /* message */)
[email protected]4f62d8052012-01-18 16:16:59518#endif // defined(ENABLE_PLUGIN_INSTALLATION)
519
[email protected]1a86f752012-02-10 13:20:36520// Notifies a missing plug-in placeholder that the user cancelled downloading
521// the plug-in.
522IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin)
523
[email protected]4f62d8052012-01-18 16:16:59524// Tells the browser to open chrome://plugins in a new tab. We use a separate
525// message because renderer processes aren't allowed to directly navigate to
526// chrome:// URLs.
527IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins)
[email protected]725f6882012-01-13 18:50:06528
[email protected]cc5f7812012-05-31 13:50:34529// Tells the browser that there was an error loading a plug-in.
530IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin,
[email protected]a7329162013-02-07 19:21:48531 base::FilePath /* plugin_path */)
[email protected]cc5f7812012-05-31 13:50:34532
[email protected]a1199132012-10-26 22:14:41533// Tells the browser that we blocked a plug-in because NPAPI is not supported.
534IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported,
535 std::string /* identifer */)
536
[email protected]cc7b11012013-05-02 22:02:53537// Tells the renderer that the NPAPI cannot be used. For example Ash on windows.
538IPC_MESSAGE_ROUTED0(ChromeViewMsg_NPAPINotSupported)
539
[email protected]d5a04832011-03-12 21:46:26540// A message for an external host.
[email protected]2ccf45c2011-08-19 23:35:50541IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ForwardMessageToExternalHost,
[email protected]d5a04832011-03-12 21:46:26542 std::string /* message */,
543 std::string /* origin */,
544 std::string /* target */)
545
[email protected]d5a04832011-03-12 21:46:26546// Notification that the page has an OpenSearch description document
547// associated with it.
[email protected]2ccf45c2011-08-19 23:35:50548IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD,
[email protected]d5a04832011-03-12 21:46:26549 int32 /* page_id */,
550 GURL /* url of OS description document */,
[email protected]c08e7932011-03-29 04:08:14551 search_provider::OSDDType)
[email protected]d5a04832011-03-12 21:46:26552
553// Find out if the given url's security origin is installed as a search
554// provider.
[email protected]2ccf45c2011-08-19 23:35:50555IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState,
[email protected]c08e7932011-03-29 04:08:14556 GURL /* page url */,
557 GURL /* inquiry url */,
558 search_provider::InstallState /* install */)
[email protected]d5a04832011-03-12 21:46:26559
[email protected]d5a04832011-03-12 21:46:26560// Sends back stats about the V8 heap.
[email protected]2ccf45c2011-08-19 23:35:50561IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats,
[email protected]d5a04832011-03-12 21:46:26562 int /* size of heap (allocated from the OS) */,
563 int /* bytes in use */)
564
565// Request for a DNS prefetch of the names in the array.
566// NameList is typedef'ed std::vector<std::string>
[email protected]2ccf45c2011-08-19 23:35:50567IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_DnsPrefetch,
[email protected]2bf2bd92011-03-31 07:12:44568 std::vector<std::string> /* hostnames */)
[email protected]d5a04832011-03-12 21:46:26569
[email protected]b1e7562d2013-05-27 05:47:53570// Request for preconnect to host providing resource specified by URL
571IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_Preconnect,
572 GURL /* preconnect target url */)
573
[email protected]d5a04832011-03-12 21:46:26574// Notifies when a plugin couldn't be loaded because it's outdated.
[email protected]2ccf45c2011-08-19 23:35:50575IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin,
[email protected]27c483892012-02-09 15:59:10576 int /* placeholder ID */,
577 std::string /* plug-in group identifier */)
[email protected]d5a04832011-03-12 21:46:26578
[email protected]e2424012012-02-03 10:26:50579// Notifies when a plugin couldn't be loaded because it requires
580// user authorization.
[email protected]51ffaf72012-05-09 21:00:49581IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin,
582 string16 /* name */,
583 std::string /* plug-in group identifier */)
[email protected]e2424012012-02-03 10:26:50584
[email protected]d5a04832011-03-12 21:46:26585// Provide the browser process with information about the WebCore resource
[email protected]872ae5b2011-05-26 20:20:50586// cache and current renderer framerate.
[email protected]2ccf45c2011-08-19 23:35:50587IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats,
[email protected]d5a04832011-03-12 21:46:26588 WebKit::WebCache::ResourceTypeStats)
589
[email protected]d5a04832011-03-12 21:46:26590// Notifies the browser that a page has been translated.
[email protected]2ccf45c2011-08-19 23:35:50591IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_PageTranslated,
[email protected]d5a04832011-03-12 21:46:26592 int, /* page id */
593 std::string /* the original language */,
594 std::string /* the translated language */,
595 TranslateErrors::Type /* the error type if available */)
596
[email protected]16e923d2011-04-30 00:41:44597// Message sent from the renderer to the browser to notify it of events which
598// may lead to the cancellation of a prerender. The message is sent only when
599// the renderer is prerendering.
[email protected]2ccf45c2011-08-19 23:35:50600IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_MaybeCancelPrerenderForHTML5Media)
[email protected]16e923d2011-04-30 00:41:44601
[email protected]4c94b8c2011-05-17 16:17:45602// Message sent from the renderer to the browser to notify it of a
603// window.print() call which should cancel the prerender. The message is sent
604// only when the renderer is prerendering.
[email protected]2ccf45c2011-08-19 23:35:50605IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting)
[email protected]4c94b8c2011-05-17 16:17:45606
[email protected]ab2eb9f2011-05-03 23:02:37607// Sent by the renderer to check if a URL has permission to trigger a clipboard
608// read/write operation from the DOM.
[email protected]2ccf45c2011-08-19 23:35:50609IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_CanTriggerClipboardRead,
[email protected]34eec7ffe32011-11-02 23:49:02610 GURL /* origin */,
[email protected]ab2eb9f2011-05-03 23:02:37611 bool /* allowed */)
[email protected]2ccf45c2011-08-19 23:35:50612IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_CanTriggerClipboardWrite,
[email protected]34eec7ffe32011-11-02 23:49:02613 GURL /* origin */,
[email protected]ab2eb9f2011-05-03 23:02:37614 bool /* allowed */)
615
[email protected]68cafdb2011-06-10 21:42:18616// Sent when the renderer was prevented from displaying insecure content in
617// a secure page by a security policy. The page may appear incomplete.
[email protected]2ccf45c2011-08-19 23:35:50618IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent)
[email protected]68cafdb2011-06-10 21:42:18619
620// Sent when the renderer was prevented from running insecure content in
621// a secure origin by a security policy. The page may appear incomplete.
[email protected]2ccf45c2011-08-19 23:35:50622IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent)
[email protected]68cafdb2011-06-10 21:42:18623
[email protected]2d0f2e92011-10-03 09:02:24624// Message sent from renderer to the browser when the element that is focused
[email protected]e15ad752012-12-21 19:12:02625// has been touched. A bool is passed in this message which indicates if the
626// node is editable.
627IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FocusedNodeTouched,
628 bool /* editable */)
[email protected]2d0f2e92011-10-03 09:02:24629
[email protected]21d898342011-08-23 18:14:41630// The currently displayed PDF has an unsupported feature.
631IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature)
[email protected]d5a04832011-03-12 21:46:26632
[email protected]3c71576ce2013-07-23 02:00:01633// Brings up SaveAs... dialog to save specified URL.
634IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PDFSaveURLAs,
635 GURL /* url */,
636 content::Referrer /* referrer */)
637
638// Updates the content restrictions, i.e. to disable print/copy.
639IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_PDFUpdateContentRestrictions,
640 int /* restrictions */)
641
[email protected]83af80b22011-09-06 18:49:19642// This message indicates the error appeared in the frame.
643IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError,
644 int /* error */)
645
[email protected]ebce9522011-10-27 19:17:17646// This message indicates the monitored frame loading had completed.
647IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted)
648
[email protected]6a3eede2011-08-29 23:48:05649// The following messages are used to set and get cookies for ChromeFrame
650// processes.
651// Used to set a cookie. The cookie is set asynchronously, but will be
652// available to a subsequent ChromeViewHostMsg_GetCookies request.
653IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SetCookie,
654 GURL /* url */,
655 GURL /* first_party_for_cookies */,
656 std::string /* cookie */)
657
658// Used to get cookies for the given URL. This may block waiting for a
659// previous SetCookie message to be processed.
660IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies,
661 GURL /* url */,
662 GURL /* first_party_for_cookies */,
663 std::string /* cookies */)
[email protected]a1127f82011-09-08 17:27:01664
665// Provide the browser process with current renderer framerate.
666IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS,
667 int /* routing id */,
668 float /* frames per second */)
[email protected]38fe2892013-07-11 00:21:04669
[email protected]09da02f2013-08-14 01:41:59670// Logs events from InstantExtended New Tab Pages.
671IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_LogEvent,
672 int /* page_id */,
673 NTPLoggingEventType /* event */)
[email protected]38fe2892013-07-11 00:21:04674
675// Tells InstantExtended to set the omnibox focus state.
676IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FocusOmnibox,
677 int /* page_id */,
678 OmniboxFocusState /* state */)
679
[email protected]6cf51b62013-08-10 13:49:22680// Tells InstantExtended to paste text into the omnibox. If text is empty,
681// the clipboard contents will be pasted. This causes the omnibox dropdown to
682// open.
683IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PasteAndOpenDropdown,
684 int /* page_id */,
685 string16 /* text to be pasted */)
686
[email protected]38fe2892013-07-11 00:21:04687// Tells InstantExtended whether the embedded search API is supported.
688// See http://dev.chromium.org/embeddedsearch
689IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined,
690 int /* page_id */,
691 bool /* result */)
692
693// Tells InstantExtended to delete a most visited item.
694IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem,
695 int /* page_id */,
696 GURL /* url */)
697
698// Tells InstantExtended to navigate the active tab to a possibly priveleged
699// URL.
700IPC_MESSAGE_ROUTED5(ChromeViewHostMsg_SearchBoxNavigate,
701 int /* page_id */,
702 GURL /* destination */,
703 content::PageTransition /* transition */,
704 WindowOpenDisposition /* disposition */,
705 bool /* is_search_type */)
706
707// Tells InstantExtended to undo all most visited item deletions.
708IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions,
709 int /* page_id */)
710
711// Tells InstantExtended to undo one most visited item deletion.
712IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion,
713 int /* page_id */,
714 GURL /* url */)
715
716// Tells InstantExtended whether the page supports voice search.
717IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetVoiceSearchSupported,
718 int /* page_id */,
719 bool /* supported */)