blob: 2d44c62e4a75dd178a09d9c13dc698a7f5404f4d [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]88b50b62013-09-01 23:05:0633#include "extensions/common/stack_frame.h"
[email protected]17b5a8172012-06-22 21:09:0934#include "ipc/ipc_channel_handle.h"
[email protected]d5a04832011-03-12 21:46:2635#include "ipc/ipc_message_macros.h"
[email protected]e7f009d2011-06-14 19:35:1036#include "ipc/ipc_platform_file.h"
[email protected]1d4ecf42011-08-26 21:27:3037#include "third_party/skia/include/core/SkBitmap.h"
[email protected]2255a9332013-06-17 05:12:3138#include "third_party/WebKit/public/web/WebCache.h"
39#include "third_party/WebKit/public/web/WebConsoleMessage.h"
[email protected]3c3acca2013-02-26 03:07:0740#include "ui/base/window_open_disposition.h"
[email protected]d5a04832011-03-12 21:46:2641#include "ui/gfx/rect.h"
[email protected]7a4de7a62010-08-17 18:38:2442
[email protected]44c49c92011-03-28 16:17:2343// Singly-included section for enums and custom IPC traits.
[email protected]d5a04832011-03-12 21:46:2644#ifndef CHROME_COMMON_RENDER_MESSAGES_H_
45#define CHROME_COMMON_RENDER_MESSAGES_H_
[email protected]049eec22010-10-20 21:32:5246
[email protected]992db4c2011-05-12 15:37:1547class SkBitmap;
48
[email protected]a6097f42011-01-10 08:50:5149// Command values for the cmd parameter of the
50// ViewHost_JavaScriptStressTestControl message. For each command the parameter
51// passed has a different meaning:
52// For the command kJavaScriptStressTestSetStressRunType the parameter it the
53// type taken from the enumeration v8::Testing::StressType.
54// For the command kJavaScriptStressTestPrepareStressRun the parameter it the
55// number of the stress run about to take place.
56enum ViewHostMsg_JavaScriptStressTestControl_Commands {
57 kJavaScriptStressTestSetStressRunType = 0,
58 kJavaScriptStressTestPrepareStressRun = 1,
59};
60
[email protected]51b63f62011-10-05 18:55:4261// This enum is inside a struct so that we can forward-declare the struct in
62// others headers without having to include this one.
63struct ChromeViewHostMsg_GetPluginInfo_Status {
[email protected]51b63f62011-10-05 18:55:4264 enum Value {
65 kAllowed,
[email protected]8aa7a412011-11-07 12:33:4266 kBlocked,
67 kClickToPlay,
[email protected]51b63f62011-10-05 18:55:4268 kDisabled,
69 kNotFound,
[email protected]a1199132012-10-26 22:14:4170 kNPAPINotSupported,
[email protected]8aa7a412011-11-07 12:33:4271 kOutdatedBlocked,
72 kOutdatedDisallowed,
73 kUnauthorized,
[email protected]51b63f62011-10-05 18:55:4274 };
75
76 ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed) {}
77
78 Value value;
79};
80
[email protected]7d5c3ac2009-02-04 08:58:1981namespace IPC {
82
[email protected]9c7453d2012-01-21 00:45:4083#if defined(OS_POSIX) && !defined(USE_AURA) && !defined(OS_ANDROID)
[email protected]661eb9d2009-02-03 02:11:4884
85// TODO(port): this shouldn't exist. However, the plugin stuff is really using
86// HWNDS (NativeView), and making Windows calls based on them. I've not figured
87// out the deal with plugins yet.
[email protected]9c7453d2012-01-21 00:45:4088// TODO(android): a gfx::NativeView is the same as a gfx::NativeWindow.
[email protected]661eb9d2009-02-03 02:11:4889template <>
90struct ParamTraits<gfx::NativeView> {
91 typedef gfx::NativeView param_type;
[email protected]7d5c3ac2009-02-04 08:58:1992 static void Write(Message* m, const param_type& p) {
[email protected]661eb9d2009-02-03 02:11:4893 NOTIMPLEMENTED();
94 }
95
[email protected]ce208f872012-03-07 20:42:5696 static bool Read(const Message* m, PickleIterator* iter, param_type* p) {
[email protected]661eb9d2009-02-03 02:11:4897 NOTIMPLEMENTED();
98 *p = NULL;
99 return true;
100 }
101
[email protected]252cad62010-08-18 18:33:57102 static void Log(const param_type& p, std::string* l) {
[email protected]93f10522010-10-31 16:27:48103 l->append(base::StringPrintf("<gfx::NativeView>"));
[email protected]661eb9d2009-02-03 02:11:48104 }
105};
106
[email protected]9c7453d2012-01-21 00:45:40107#endif // defined(OS_POSIX) && !defined(USE_AURA) && !defined(OS_ANDROID)
[email protected]661eb9d2009-02-03 02:11:48108
[email protected]7b291f92009-08-14 05:43:53109template <>
[email protected]610ca832011-10-19 12:59:20110struct ParamTraits<ContentSettingsPattern> {
111 typedef ContentSettingsPattern param_type;
112 static void Write(Message* m, const param_type& p);
[email protected]ce208f872012-03-07 20:42:56113 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
[email protected]610ca832011-10-19 12:59:20114 static void Log(const param_type& p, std::string* l);
115};
116
[email protected]b3df5a42010-05-11 14:31:09117} // namespace IPC
[email protected]9f4db512010-05-10 20:21:41118
[email protected]5a52f162008-08-27 04:15:31119#endif // CHROME_COMMON_RENDER_MESSAGES_H_
[email protected]d5a04832011-03-12 21:46:26120
[email protected]778574e2011-03-21 22:03:50121#define IPC_MESSAGE_START ChromeMsgStart
[email protected]d5a04832011-03-12 21:46:26122
[email protected]51b63f62011-10-05 18:55:42123IPC_ENUM_TRAITS(ChromeViewHostMsg_GetPluginInfo_Status::Value)
[email protected]8d4c276d2013-05-29 19:39:52124IPC_ENUM_TRAITS(OmniboxFocusChangeReason)
[email protected]ca98bd32013-04-09 05:16:05125IPC_ENUM_TRAITS(OmniboxFocusState)
[email protected]c08e7932011-03-29 04:08:14126IPC_ENUM_TRAITS(search_provider::OSDDType)
127IPC_ENUM_TRAITS(search_provider::InstallState)
[email protected]a6827652012-11-20 23:41:08128IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment)
129IPC_ENUM_TRAITS(ThemeBackgroundImageTiling)
[email protected]fffaf972011-03-24 01:34:35130IPC_ENUM_TRAITS(TranslateErrors::Type)
[email protected]fffaf972011-03-24 01:34:35131IPC_ENUM_TRAITS(WebKit::WebConsoleMessage::Level)
[email protected]9b003482013-05-21 14:00:17132IPC_ENUM_TRAITS(content::TopControlsState)
[email protected]fffaf972011-03-24 01:34:35133
[email protected]51b63f62011-10-05 18:55:42134IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status)
135IPC_STRUCT_TRAITS_MEMBER(value)
136IPC_STRUCT_TRAITS_END()
137
[email protected]cd33d282012-09-21 12:53:04138// Output parameters for ChromeViewHostMsg_GetPluginInfo message.
139IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output)
140 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status)
[email protected]d7bd3e52013-07-21 04:29:20141 IPC_STRUCT_MEMBER(content::WebPluginInfo, plugin)
[email protected]cd33d282012-09-21 12:53:04142 IPC_STRUCT_MEMBER(std::string, actual_mime_type)
143 IPC_STRUCT_MEMBER(std::string, group_identifier)
144 IPC_STRUCT_MEMBER(string16, group_name)
145IPC_STRUCT_END()
146
[email protected]610ca832011-10-19 12:59:20147IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts)
148 IPC_STRUCT_TRAITS_MEMBER(scheme)
149 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard)
150 IPC_STRUCT_TRAITS_MEMBER(host)
151 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard)
152 IPC_STRUCT_TRAITS_MEMBER(port)
153 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard)
154 IPC_STRUCT_TRAITS_MEMBER(path)
[email protected]ae689aab2012-01-23 17:52:08155 IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard)
[email protected]610ca832011-10-19 12:59:20156IPC_STRUCT_TRAITS_END()
157
[email protected]c14406092011-10-27 13:43:42158IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource)
159 IPC_STRUCT_TRAITS_MEMBER(primary_pattern)
160 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern)
161 IPC_STRUCT_TRAITS_MEMBER(setting)
162 IPC_STRUCT_TRAITS_MEMBER(source)
163 IPC_STRUCT_TRAITS_MEMBER(incognito)
164IPC_STRUCT_TRAITS_END()
165
[email protected]987fad782013-08-28 06:23:18166IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion)
167 IPC_STRUCT_TRAITS_MEMBER(text)
168 IPC_STRUCT_TRAITS_MEMBER(metadata)
169IPC_STRUCT_TRAITS_END()
170
[email protected]e7868c82013-03-12 03:55:56171IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem)
[email protected]dfee2f62013-02-22 06:46:06172 IPC_STRUCT_TRAITS_MEMBER(url)
173 IPC_STRUCT_TRAITS_MEMBER(title)
174IPC_STRUCT_TRAITS_END()
175
[email protected]edece212011-11-16 11:56:56176IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules)
177 IPC_STRUCT_TRAITS_MEMBER(image_rules)
178 IPC_STRUCT_TRAITS_MEMBER(script_rules)
179IPC_STRUCT_TRAITS_END()
180
[email protected]a8c28472013-07-17 05:34:29181IPC_STRUCT_TRAITS_BEGIN(RGBAColor)
182 IPC_STRUCT_TRAITS_MEMBER(r)
183 IPC_STRUCT_TRAITS_MEMBER(g)
184 IPC_STRUCT_TRAITS_MEMBER(b)
185 IPC_STRUCT_TRAITS_MEMBER(a)
186IPC_STRUCT_TRAITS_END()
187
[email protected]a6827652012-11-20 23:41:08188IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo)
[email protected]a8c28472013-07-17 05:34:29189 IPC_STRUCT_TRAITS_MEMBER(using_default_theme)
190 IPC_STRUCT_TRAITS_MEMBER(background_color)
191 IPC_STRUCT_TRAITS_MEMBER(text_color)
192 IPC_STRUCT_TRAITS_MEMBER(link_color)
193 IPC_STRUCT_TRAITS_MEMBER(text_color_light)
194 IPC_STRUCT_TRAITS_MEMBER(header_color)
195 IPC_STRUCT_TRAITS_MEMBER(section_border_color)
[email protected]a6827652012-11-20 23:41:08196 IPC_STRUCT_TRAITS_MEMBER(theme_id)
197 IPC_STRUCT_TRAITS_MEMBER(image_horizontal_alignment)
198 IPC_STRUCT_TRAITS_MEMBER(image_vertical_alignment)
199 IPC_STRUCT_TRAITS_MEMBER(image_tiling)
200 IPC_STRUCT_TRAITS_MEMBER(image_height)
[email protected]5189fa12013-03-20 23:00:05201 IPC_STRUCT_TRAITS_MEMBER(has_attribution)
[email protected]a8c28472013-07-17 05:34:29202 IPC_STRUCT_TRAITS_MEMBER(logo_alternate)
[email protected]a6827652012-11-20 23:41:08203IPC_STRUCT_TRAITS_END()
204
[email protected]fffaf972011-03-24 01:34:35205IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::ResourceTypeStat)
206 IPC_STRUCT_TRAITS_MEMBER(count)
207 IPC_STRUCT_TRAITS_MEMBER(size)
208 IPC_STRUCT_TRAITS_MEMBER(liveSize)
209 IPC_STRUCT_TRAITS_MEMBER(decodedSize)
210IPC_STRUCT_TRAITS_END()
211
212IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::ResourceTypeStats)
213 IPC_STRUCT_TRAITS_MEMBER(images)
214 IPC_STRUCT_TRAITS_MEMBER(cssStyleSheets)
215 IPC_STRUCT_TRAITS_MEMBER(scripts)
216 IPC_STRUCT_TRAITS_MEMBER(xslStyleSheets)
217 IPC_STRUCT_TRAITS_MEMBER(fonts)
218IPC_STRUCT_TRAITS_END()
219
220IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::UsageStats)
221 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity)
222 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity)
223 IPC_STRUCT_TRAITS_MEMBER(capacity)
224 IPC_STRUCT_TRAITS_MEMBER(liveSize)
225 IPC_STRUCT_TRAITS_MEMBER(deadSize)
226IPC_STRUCT_TRAITS_END()
227
[email protected]27eff892013-05-21 16:40:52228IPC_STRUCT_TRAITS_BEGIN(LanguageDetectionDetails)
229 IPC_STRUCT_TRAITS_MEMBER(time)
230 IPC_STRUCT_TRAITS_MEMBER(url)
231 IPC_STRUCT_TRAITS_MEMBER(content_language)
232 IPC_STRUCT_TRAITS_MEMBER(cld_language)
233 IPC_STRUCT_TRAITS_MEMBER(is_cld_reliable)
[email protected]20efbf2f2013-05-31 06:42:37234 IPC_STRUCT_TRAITS_MEMBER(html_root_language)
[email protected]27eff892013-05-21 16:40:52235 IPC_STRUCT_TRAITS_MEMBER(adopted_language)
[email protected]d861d972013-05-30 06:02:31236 IPC_STRUCT_TRAITS_MEMBER(contents)
[email protected]27eff892013-05-21 16:40:52237IPC_STRUCT_TRAITS_END()
238
[email protected]88b50b62013-09-01 23:05:06239IPC_STRUCT_TRAITS_BEGIN(extensions::StackFrame)
240 IPC_STRUCT_TRAITS_MEMBER(line_number)
241 IPC_STRUCT_TRAITS_MEMBER(column_number)
242 IPC_STRUCT_TRAITS_MEMBER(source)
243 IPC_STRUCT_TRAITS_MEMBER(function)
244IPC_STRUCT_TRAITS_END()
245
[email protected]09da02f2013-08-14 01:41:59246IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType,
247 NTP_NUM_EVENT_TYPES)
248
[email protected]d5a04832011-03-12 21:46:26249//-----------------------------------------------------------------------------
250// RenderView messages
251// These are messages sent from the browser to the renderer process.
252
[email protected]d5a04832011-03-12 21:46:26253// Tells the renderer to set its maximum cache size to the supplied value.
[email protected]2ccf45c2011-08-19 23:35:50254IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities,
[email protected]d5a04832011-03-12 21:46:26255 size_t /* min_dead_capacity */,
256 size_t /* max_dead_capacity */,
257 size_t /* capacity */)
258
259// Tells the renderer to clear the cache.
[email protected]e81d4d72011-09-29 16:54:31260IPC_MESSAGE_CONTROL1(ChromeViewMsg_ClearCache,
261 bool /* on_navigation */)
[email protected]d5a04832011-03-12 21:46:26262
[email protected]55722152011-03-22 01:33:53263// Tells the renderer to dump as much memory as it can, perhaps because we
264// have memory pressure or the renderer is (or will be) paged out. This
265// should only result in purging objects we can recalculate, e.g. caches or
266// JS garbage, not in purging irreplaceable objects.
[email protected]2ccf45c2011-08-19 23:35:50267IPC_MESSAGE_CONTROL0(ChromeViewMsg_PurgeMemory)
[email protected]55722152011-03-22 01:33:53268
[email protected]350019f2011-08-02 04:18:33269// For WebUI testing, this message stores parameters to do ScriptEvalRequest at
270// a time which is late enough to not be thrown out, and early enough to be
271// before onload events are fired.
[email protected]2ccf45c2011-08-19 23:35:50272IPC_MESSAGE_ROUTED4(ChromeViewMsg_WebUIJavaScript,
[email protected]350019f2011-08-02 04:18:33273 string16, /* frame_xpath */
274 string16, /* jscript_url */
275 int, /* ID */
276 bool /* If true, result is sent back. */)
277
[email protected]edece212011-11-16 11:56:56278// Set the content setting rules stored by the renderer.
279IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules,
280 RendererContentSettingRules /* rules */)
[email protected]c14406092011-10-27 13:43:42281
[email protected]51ffaf72012-05-09 21:00:49282// Tells the render view to load all blocked plugins with the given identifier.
283IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins,
284 std::string /* identifier */)
[email protected]d5a04832011-03-12 21:46:26285
[email protected]d5a04832011-03-12 21:46:26286// Asks the renderer to send back stats on the WebCore cache broken down by
287// resource types.
[email protected]2ccf45c2011-08-19 23:35:50288IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats)
[email protected]d5a04832011-03-12 21:46:26289
[email protected]63a8ba12011-04-29 05:42:22290// Tells the renderer to create a FieldTrial, and by using a 100% probability
291// for the FieldTrial, forces the FieldTrial to have assigned group name.
[email protected]2ccf45c2011-08-19 23:35:50292IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup,
[email protected]63a8ba12011-04-29 05:42:22293 std::string /* field trial name */,
294 std::string /* group name that was assigned. */)
295
[email protected]d5a04832011-03-12 21:46:26296// Asks the renderer to send back V8 heap stats.
[email protected]2ccf45c2011-08-19 23:35:50297IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats)
[email protected]d5a04832011-03-12 21:46:26298
[email protected]d5a04832011-03-12 21:46:26299// Posts a message to the renderer.
[email protected]2ccf45c2011-08-19 23:35:50300IPC_MESSAGE_ROUTED3(ChromeViewMsg_HandleMessageFromExternalHost,
[email protected]d5a04832011-03-12 21:46:26301 std::string /* The message */,
302 std::string /* The origin */,
303 std::string /* The target*/)
304
[email protected]c55e3b82012-08-09 15:27:05305IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant)
[email protected]d5a04832011-03-12 21:46:26306
[email protected]987fad782013-08-28 06:23:18307IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetDisplayInstantResults,
308 bool /* display_instant_results */)
309
[email protected]8d4c276d2013-05-29 19:39:52310IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFocusChanged,
311 OmniboxFocusState /* new_focus_state */,
312 OmniboxFocusChangeReason /* reason */)
[email protected]6a6811a2012-12-12 04:18:16313
[email protected]38fe2892013-07-11 00:21:04314IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxMarginChange,
315 int /* start */,
316 int /* width */)
[email protected]0d0b4a42013-06-14 00:46:26317
[email protected]e7868c82013-03-12 03:55:56318IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged,
[email protected]ab01dd752013-06-08 05:13:36319 std::vector<InstantMostVisitedItem> /* items */)
[email protected]dfee2f62013-02-22 06:46:06320
[email protected]38fe2892013-07-11 00:21:04321IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation,
322 bool /* is_app_launcher_enabled */)
[email protected]dfee2f62013-02-22 06:46:06323
[email protected]38fe2892013-07-11 00:21:04324IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress,
325 bool /* input_in_progress */)
[email protected]dfee2f62013-02-22 06:46:06326
[email protected]987fad782013-08-28 06:23:18327IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch,
328 InstantSuggestion /* suggestion */)
329
[email protected]38fe2892013-07-11 00:21:04330IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSubmit,
331 string16 /* value */)
332
333IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged,
334 ThemeBackgroundInfo /* value */)
[email protected]dfee2f62013-02-22 06:46:06335
[email protected]d76376d2013-10-31 06:44:42336IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult,
337 string16 /* identity */,
338 bool /* identity_match */)
339
[email protected]3473ae02013-06-07 00:28:08340IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch)
341
[email protected]1138cce2011-12-02 21:29:36342// Toggles visual muting of the render view area. This is on when a constrained
343// window is showing.
344IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized,
345 bool /* deemphazied */)
346
[email protected]d5a04832011-03-12 21:46:26347// Tells the renderer to translate the page contents from one language to
348// another.
[email protected]2ccf45c2011-08-19 23:35:50349IPC_MESSAGE_ROUTED4(ChromeViewMsg_TranslatePage,
[email protected]d5a04832011-03-12 21:46:26350 int /* page id */,
351 std::string, /* the script injected in the page */
352 std::string, /* BCP 47/RFC 5646 language code the page
353 is in */
354 std::string /* BCP 47/RFC 5646 language code to translate
355 to */)
356
357// Tells the renderer to revert the text of translated page to its original
358// contents.
[email protected]2ccf45c2011-08-19 23:35:50359IPC_MESSAGE_ROUTED1(ChromeViewMsg_RevertTranslation,
[email protected]d5a04832011-03-12 21:46:26360 int /* page id */)
361
[email protected]d5a04832011-03-12 21:46:26362// Sent on process startup to indicate whether this process is running in
363// incognito mode.
[email protected]2ccf45c2011-08-19 23:35:50364IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess,
[email protected]d5a04832011-03-12 21:46:26365 bool /* is_incognito_processs */)
366
[email protected]68cafdb2011-06-10 21:42:18367// Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent.
[email protected]2ccf45c2011-08-19 23:35:50368IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent,
[email protected]68cafdb2011-06-10 21:42:18369 bool /* allowed */)
370
371// Sent in response to ViewHostMsg_DidBlockRunningInsecureContent.
[email protected]2ccf45c2011-08-19 23:35:50372IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent,
[email protected]68cafdb2011-06-10 21:42:18373 bool /* allowed */)
374
[email protected]92d213842011-11-02 20:09:43375// Tells renderer to always enforce mixed content blocking for this host.
376IPC_MESSAGE_ROUTED1(ChromeViewMsg_AddStrictSecurityHost,
377 std::string /* host */)
378
[email protected]8c40da62011-07-13 22:58:46379// Sent when the profile changes the kSafeBrowsingEnabled preference.
[email protected]2ccf45c2011-08-19 23:35:50380IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection,
[email protected]8c40da62011-07-13 22:58:46381 bool /* enable_phishing_detection */)
382
[email protected]31dd25ab2013-07-31 21:59:05383// Asks the renderer for a thumbnail of the image selected by the most
384// recently opened context menu, if there is one. If the image's area
385// is greater than thumbnail_min_area it will be downscaled to
386// be within thumbnail_max_size. The possibly downsampled image will be
387// returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message.
388IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode,
389 int /* thumbnail_min_area_pixels */,
390 gfx::Size /* thumbnail_max_size_pixels */)
391
[email protected]9b003482013-05-21 14:00:17392// Notifies the renderer whether hiding/showing the top controls is enabled,
393// what the current state should be, and whether or not to animate to the
394// proper state.
395IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState,
396 content::TopControlsState /* constraints */,
397 content::TopControlsState /* current */,
398 bool /* animate */)
399
[email protected]31dd25ab2013-07-31 21:59:05400
[email protected]67264062013-07-25 12:39:26401// Updates the window features of the render view.
402IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures,
403 WebKit::WebWindowFeatures /* window_features */)
404
[email protected]2f3bc6512013-08-28 03:56:27405IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK,
406 SkBitmap /* thumbnail */,
407 gfx::Size /* original size of the image */)
[email protected]31dd25ab2013-07-31 21:59:05408
[email protected]51208252013-08-19 21:05:30409#if defined(OS_ANDROID)
410// Asks the renderer to return information about whether the current page can
411// be treated as a webapp.
412IPC_MESSAGE_ROUTED1(ChromeViewMsg_RetrieveWebappInformation,
413 GURL /* expected_url */)
414#endif // defined(OS_ANDROID)
[email protected]31dd25ab2013-07-31 21:59:05415
[email protected]21d898342011-08-23 18:14:41416// JavaScript related messages -----------------------------------------------
417
418// Notify the JavaScript engine in the render to change its parameters
419// while performing stress testing.
420IPC_MESSAGE_ROUTED2(ChromeViewMsg_JavaScriptStressTestControl,
421 int /* cmd */,
422 int /* param */)
423
[email protected]a1127f82011-09-08 17:27:01424// Asks the renderer to send back FPS.
425IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetFPS)
426
[email protected]6f9f7d82011-12-08 12:13:34427// Tells the view it is displaying an interstitial page.
428IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial)
429
[email protected]7e771bfb2013-01-14 23:23:21430// Provides the renderer with the results of the browser's investigation into
431// why a recent main frame load failed (currently, just DNS probe result).
432// NetErrorHelper will receive this mesage and replace or update the error
433// page with more specific troubleshooting suggestions.
434IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo,
[email protected]2ea1efe2013-07-17 05:23:13435 int /* DNS probe status */)
[email protected]7e771bfb2013-01-14 23:23:21436
[email protected]d5a04832011-03-12 21:46:26437//-----------------------------------------------------------------------------
[email protected]63f72132012-04-18 18:02:44438// Misc messages
[email protected]d5a04832011-03-12 21:46:26439// These are messages sent from the renderer to the browser process.
440
[email protected]33abbda2013-09-20 18:42:50441// Provides the contents for the given page that was loaded recently.
442IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PageContents,
443 GURL /* URL of the page */,
444 string16 /* page contents */)
445
[email protected]93b9d692011-04-13 00:44:31446// Notification that the language for the tab has been determined.
[email protected]2ccf45c2011-08-19 23:35:50447IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_TranslateLanguageDetermined,
[email protected]27eff892013-05-21 16:40:52448 LanguageDetectionDetails /* details about lang detection */,
449 bool /* whether the page needs translation */)
[email protected]93b9d692011-04-13 00:44:31450
[email protected]2ccf45c2011-08-19 23:35:50451IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats,
[email protected]d5a04832011-03-12 21:46:26452 WebKit::WebCache::UsageStats /* stats */)
453
[email protected]d5a04832011-03-12 21:46:26454// Tells the browser that content in the current page was blocked due to the
455// user's content settings.
[email protected]2ccf45c2011-08-19 23:35:50456IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ContentBlocked,
[email protected]d5a04832011-03-12 21:46:26457 ContentSettingsType, /* type of blocked content */
458 std::string /* resource identifier */)
459
[email protected]5327dfb2011-05-03 17:50:36460// Sent by the renderer process to check whether access to web databases is
[email protected]bac33eb2011-05-04 01:47:49461// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50462IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase,
[email protected]9a611a92011-05-07 17:06:18463 int /* render_view_id */,
464 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15465 GURL /* top origin url */,
[email protected]bac33eb2011-05-04 01:47:49466 string16 /* database name */,
467 string16 /* database display name */,
[email protected]8c276642011-05-06 09:41:00468 bool /* allowed */)
[email protected]bac33eb2011-05-04 01:47:49469
470// Sent by the renderer process to check whether access to DOM Storage is
471// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50472IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage,
[email protected]bac33eb2011-05-04 01:47:49473 int /* render_view_id */,
474 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15475 GURL /* top origin url */,
[email protected]c729db82011-11-23 17:37:27476 bool /* if true local storage, otherwise session */,
[email protected]8c276642011-05-06 09:41:00477 bool /* allowed */)
[email protected]5327dfb2011-05-03 17:50:36478
[email protected]45316d62011-05-12 18:15:30479// Sent by the renderer process to check whether access to FileSystem is
480// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50481IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_AllowFileSystem,
[email protected]45316d62011-05-12 18:15:30482 int /* render_view_id */,
483 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15484 GURL /* top origin url */,
[email protected]45316d62011-05-12 18:15:30485 bool /* allowed */)
486
[email protected]9a611a92011-05-07 17:06:18487// Sent by the renderer process to check whether access to Indexed DBis
488// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50489IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB,
[email protected]9a611a92011-05-07 17:06:18490 int /* render_view_id */,
[email protected]c0a45a982011-05-25 16:58:15491 GURL /* origin_url */,
492 GURL /* top origin url */,
[email protected]9a611a92011-05-07 17:06:18493 string16 /* database name */,
494 bool /* allowed */)
[email protected]5327dfb2011-05-03 17:50:36495
[email protected]51b63f62011-10-05 18:55:42496// Return information about a plugin for the given URL and MIME type.
497// In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows
498// about specific reasons why a plug-in can't be used, for example because it's
499// disabled.
[email protected]cd33d282012-09-21 12:53:04500IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo,
[email protected]51b63f62011-10-05 18:55:42501 int /* render_view_id */,
502 GURL /* url */,
503 GURL /* top origin url */,
504 std::string /* mime_type */,
[email protected]cd33d282012-09-21 12:53:04505 ChromeViewHostMsg_GetPluginInfo_Output /* output */)
[email protected]51b63f62011-10-05 18:55:42506
[email protected]3627aa3f2013-09-17 22:32:51507// Returns whether any internal plugin supporting |mime_type| is registered
508// Does not determine whether the plugin can actually be instantiated
509// (e.g. whether it is allowed or has all its dependencies).
[email protected]c33fa1e2013-10-29 06:08:06510// When the returned *|is_registered| is true, |additional_param_names| and
511// |additional_param_values| contain the name-value pairs, if any, specified
512// for the *first* plugin found that is registered for |mime_type|.
513IPC_SYNC_MESSAGE_CONTROL1_3(
[email protected]3627aa3f2013-09-17 22:32:51514 ChromeViewHostMsg_IsInternalPluginRegisteredForMimeType,
515 std::string /* mime_type */,
[email protected]c33fa1e2013-10-29 06:08:06516 bool /* registered */,
517 std::vector<base::string16> /* additional_param_names */,
518 std::vector<base::string16> /* additional_param_values */)
[email protected]3627aa3f2013-09-17 22:32:51519
[email protected]43b7eaca2012-01-12 17:27:28520#if defined(ENABLE_PLUGIN_INSTALLATION)
[email protected]1d697f32011-11-28 11:57:51521// Tells the browser to search for a plug-in that can handle the given MIME
522// type. The result will be sent asynchronously to the routing ID
523// |placeholder_id|.
524IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin,
525 int /* placeholder_id */,
526 std::string /* mime_type */)
527
[email protected]3240d2502012-01-26 17:00:33528// Notifies the browser that a missing plug-in placeholder has been removed, so
[email protected]e2424012012-02-03 10:26:50529// the corresponding PluginPlaceholderHost can be deleted.
530IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost,
[email protected]3240d2502012-01-26 17:00:33531 int /* placeholder_id */)
532
[email protected]1d697f32011-11-28 11:57:51533// Notifies a missing plug-in placeholder that a plug-in with name |plugin_name|
534// has been found.
535IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin,
536 string16 /* plugin_name */)
537
538// Notifies a missing plug-in placeholder that no plug-in has been found.
539IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin)
540
[email protected]0dd9e8b2012-01-04 13:36:16541// Notifies a missing plug-in placeholder that we have started downloading
542// the plug-in.
543IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin)
544
545// Notifies a missing plug-in placeholder that we have finished downloading
546// the plug-in.
547IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin)
548
[email protected]725f6882012-01-13 18:50:06549// Notifies a missing plug-in placeholder that there was an error downloading
550// the plug-in.
551IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin,
552 std::string /* message */)
[email protected]4f62d8052012-01-18 16:16:59553#endif // defined(ENABLE_PLUGIN_INSTALLATION)
554
[email protected]1a86f752012-02-10 13:20:36555// Notifies a missing plug-in placeholder that the user cancelled downloading
556// the plug-in.
557IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin)
558
[email protected]4f62d8052012-01-18 16:16:59559// Tells the browser to open chrome://plugins in a new tab. We use a separate
560// message because renderer processes aren't allowed to directly navigate to
561// chrome:// URLs.
562IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins)
[email protected]725f6882012-01-13 18:50:06563
[email protected]cc5f7812012-05-31 13:50:34564// Tells the browser that there was an error loading a plug-in.
565IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin,
[email protected]a7329162013-02-07 19:21:48566 base::FilePath /* plugin_path */)
[email protected]cc5f7812012-05-31 13:50:34567
[email protected]a1199132012-10-26 22:14:41568// Tells the browser that we blocked a plug-in because NPAPI is not supported.
569IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported,
570 std::string /* identifer */)
571
[email protected]cc7b11012013-05-02 22:02:53572// Tells the renderer that the NPAPI cannot be used. For example Ash on windows.
573IPC_MESSAGE_ROUTED0(ChromeViewMsg_NPAPINotSupported)
574
[email protected]d5a04832011-03-12 21:46:26575// A message for an external host.
[email protected]2ccf45c2011-08-19 23:35:50576IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ForwardMessageToExternalHost,
[email protected]d5a04832011-03-12 21:46:26577 std::string /* message */,
578 std::string /* origin */,
579 std::string /* target */)
580
[email protected]d5a04832011-03-12 21:46:26581// Notification that the page has an OpenSearch description document
582// associated with it.
[email protected]2ccf45c2011-08-19 23:35:50583IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD,
[email protected]d5a04832011-03-12 21:46:26584 int32 /* page_id */,
585 GURL /* url of OS description document */,
[email protected]c08e7932011-03-29 04:08:14586 search_provider::OSDDType)
[email protected]d5a04832011-03-12 21:46:26587
588// Find out if the given url's security origin is installed as a search
589// provider.
[email protected]2ccf45c2011-08-19 23:35:50590IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState,
[email protected]c08e7932011-03-29 04:08:14591 GURL /* page url */,
592 GURL /* inquiry url */,
593 search_provider::InstallState /* install */)
[email protected]d5a04832011-03-12 21:46:26594
[email protected]d5a04832011-03-12 21:46:26595// Sends back stats about the V8 heap.
[email protected]2ccf45c2011-08-19 23:35:50596IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats,
[email protected]d5a04832011-03-12 21:46:26597 int /* size of heap (allocated from the OS) */,
598 int /* bytes in use */)
599
600// Request for a DNS prefetch of the names in the array.
601// NameList is typedef'ed std::vector<std::string>
[email protected]2ccf45c2011-08-19 23:35:50602IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_DnsPrefetch,
[email protected]2bf2bd92011-03-31 07:12:44603 std::vector<std::string> /* hostnames */)
[email protected]d5a04832011-03-12 21:46:26604
[email protected]b1e7562d2013-05-27 05:47:53605// Request for preconnect to host providing resource specified by URL
606IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_Preconnect,
607 GURL /* preconnect target url */)
608
[email protected]d5a04832011-03-12 21:46:26609// Notifies when a plugin couldn't be loaded because it's outdated.
[email protected]2ccf45c2011-08-19 23:35:50610IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin,
[email protected]27c483892012-02-09 15:59:10611 int /* placeholder ID */,
612 std::string /* plug-in group identifier */)
[email protected]d5a04832011-03-12 21:46:26613
[email protected]e2424012012-02-03 10:26:50614// Notifies when a plugin couldn't be loaded because it requires
615// user authorization.
[email protected]51ffaf72012-05-09 21:00:49616IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin,
617 string16 /* name */,
618 std::string /* plug-in group identifier */)
[email protected]e2424012012-02-03 10:26:50619
[email protected]d5a04832011-03-12 21:46:26620// Provide the browser process with information about the WebCore resource
[email protected]872ae5b2011-05-26 20:20:50621// cache and current renderer framerate.
[email protected]2ccf45c2011-08-19 23:35:50622IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats,
[email protected]d5a04832011-03-12 21:46:26623 WebKit::WebCache::ResourceTypeStats)
624
[email protected]d5a04832011-03-12 21:46:26625// Notifies the browser that a page has been translated.
[email protected]2ccf45c2011-08-19 23:35:50626IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_PageTranslated,
[email protected]d5a04832011-03-12 21:46:26627 int, /* page id */
628 std::string /* the original language */,
629 std::string /* the translated language */,
630 TranslateErrors::Type /* the error type if available */)
631
[email protected]4c94b8c2011-05-17 16:17:45632// Message sent from the renderer to the browser to notify it of a
633// window.print() call which should cancel the prerender. The message is sent
634// only when the renderer is prerendering.
[email protected]2ccf45c2011-08-19 23:35:50635IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting)
[email protected]4c94b8c2011-05-17 16:17:45636
[email protected]ab2eb9f2011-05-03 23:02:37637// Sent by the renderer to check if a URL has permission to trigger a clipboard
638// read/write operation from the DOM.
[email protected]2ccf45c2011-08-19 23:35:50639IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_CanTriggerClipboardRead,
[email protected]34eec7ffe32011-11-02 23:49:02640 GURL /* origin */,
[email protected]ab2eb9f2011-05-03 23:02:37641 bool /* allowed */)
[email protected]2ccf45c2011-08-19 23:35:50642IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_CanTriggerClipboardWrite,
[email protected]34eec7ffe32011-11-02 23:49:02643 GURL /* origin */,
[email protected]ab2eb9f2011-05-03 23:02:37644 bool /* allowed */)
645
[email protected]68cafdb2011-06-10 21:42:18646// Sent when the renderer was prevented from displaying insecure content in
647// a secure page by a security policy. The page may appear incomplete.
[email protected]2ccf45c2011-08-19 23:35:50648IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent)
[email protected]68cafdb2011-06-10 21:42:18649
650// Sent when the renderer was prevented from running insecure content in
651// a secure origin by a security policy. The page may appear incomplete.
[email protected]2ccf45c2011-08-19 23:35:50652IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent)
[email protected]68cafdb2011-06-10 21:42:18653
[email protected]51208252013-08-19 21:05:30654#if defined(OS_ANDROID)
655// Contains info about whether the current page can be treated as a webapp.
[email protected]0dd45112013-10-04 21:40:37656IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveWebappInformation,
[email protected]51208252013-08-19 21:05:30657 bool /* success */,
[email protected]0dd45112013-10-04 21:40:37658 bool /* is_mobile_webapp_capable */,
659 bool /* is_apple_mobile_webapp_capable */,
[email protected]5820d32c2013-08-28 10:03:50660 GURL /* expected_url */)
[email protected]51208252013-08-19 21:05:30661#endif // defined(OS_ANDROID)
662
[email protected]2d0f2e92011-10-03 09:02:24663// Message sent from renderer to the browser when the element that is focused
[email protected]e15ad752012-12-21 19:12:02664// has been touched. A bool is passed in this message which indicates if the
665// node is editable.
666IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FocusedNodeTouched,
667 bool /* editable */)
[email protected]2d0f2e92011-10-03 09:02:24668
[email protected]21d898342011-08-23 18:14:41669// The currently displayed PDF has an unsupported feature.
670IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature)
[email protected]d5a04832011-03-12 21:46:26671
[email protected]3c71576ce2013-07-23 02:00:01672// Brings up SaveAs... dialog to save specified URL.
673IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PDFSaveURLAs,
674 GURL /* url */,
675 content::Referrer /* referrer */)
676
677// Updates the content restrictions, i.e. to disable print/copy.
678IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_PDFUpdateContentRestrictions,
679 int /* restrictions */)
680
[email protected]b32505712013-09-13 18:29:13681// Brings up a Password... dialog for protected documents.
682IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_PDFModalPromptForPassword,
683 std::string /* prompt */,
684 std::string /* actual_value */)
685
[email protected]83af80b22011-09-06 18:49:19686// This message indicates the error appeared in the frame.
687IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError,
688 int /* error */)
689
[email protected]ebce9522011-10-27 19:17:17690// This message indicates the monitored frame loading had completed.
691IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted)
692
[email protected]6a3eede2011-08-29 23:48:05693// The following messages are used to set and get cookies for ChromeFrame
694// processes.
695// Used to set a cookie. The cookie is set asynchronously, but will be
696// available to a subsequent ChromeViewHostMsg_GetCookies request.
697IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SetCookie,
698 GURL /* url */,
699 GURL /* first_party_for_cookies */,
700 std::string /* cookie */)
701
702// Used to get cookies for the given URL. This may block waiting for a
703// previous SetCookie message to be processed.
704IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies,
705 GURL /* url */,
706 GURL /* first_party_for_cookies */,
707 std::string /* cookies */)
[email protected]a1127f82011-09-08 17:27:01708
709// Provide the browser process with current renderer framerate.
710IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS,
711 int /* routing id */,
712 float /* frames per second */)
[email protected]38fe2892013-07-11 00:21:04713
[email protected]09da02f2013-08-14 01:41:59714// Logs events from InstantExtended New Tab Pages.
715IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_LogEvent,
716 int /* page_id */,
717 NTPLoggingEventType /* event */)
[email protected]38fe2892013-07-11 00:21:04718
[email protected]d76376d2013-10-31 06:44:42719// The Instant page asks for Chrome identity check against |identity|.
720IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ChromeIdentityCheck,
721 int /* page_id */,
722 string16 /* identity */)
723
[email protected]38fe2892013-07-11 00:21:04724// Tells InstantExtended to set the omnibox focus state.
725IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FocusOmnibox,
726 int /* page_id */,
727 OmniboxFocusState /* state */)
728
[email protected]6cf51b62013-08-10 13:49:22729// Tells InstantExtended to paste text into the omnibox. If text is empty,
730// the clipboard contents will be pasted. This causes the omnibox dropdown to
731// open.
732IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PasteAndOpenDropdown,
733 int /* page_id */,
734 string16 /* text to be pasted */)
735
[email protected]38fe2892013-07-11 00:21:04736// Tells InstantExtended whether the embedded search API is supported.
737// See http://dev.chromium.org/embeddedsearch
738IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined,
739 int /* page_id */,
740 bool /* result */)
741
742// Tells InstantExtended to delete a most visited item.
743IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem,
744 int /* page_id */,
745 GURL /* url */)
746
[email protected]064f57a2013-10-28 21:50:56747// Tells InstantExtended to navigate the active tab to a possibly privileged
[email protected]38fe2892013-07-11 00:21:04748// URL.
[email protected]064f57a2013-10-28 21:50:56749IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_SearchBoxNavigate,
[email protected]38fe2892013-07-11 00:21:04750 int /* page_id */,
751 GURL /* destination */,
[email protected]38fe2892013-07-11 00:21:04752 WindowOpenDisposition /* disposition */,
[email protected]064f57a2013-10-28 21:50:56753 bool /*is_most_visited_item_url*/)
[email protected]38fe2892013-07-11 00:21:04754
755// Tells InstantExtended to undo all most visited item deletions.
756IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions,
757 int /* page_id */)
758
759// Tells InstantExtended to undo one most visited item deletion.
760IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion,
761 int /* page_id */,
762 GURL /* url */)
763
764// Tells InstantExtended whether the page supports voice search.
765IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetVoiceSearchSupported,
766 int /* page_id */,
767 bool /* supported */)
[email protected]88b50b62013-09-01 23:05:06768
[email protected]2309e912013-10-01 01:33:30769// Tells the renderer a list of URLs which should be bounced back to the browser
770// process so that they can be assigned to an Instant renderer.
771IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs,
772 std::vector<GURL> /* search_urls */,
773 GURL /* new_tab_page_url */)
774
[email protected]88b50b62013-09-01 23:05:06775// Tells listeners that a detailed message was reported to the console by
776// WebKit.
777IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DetailedConsoleMessageAdded,
778 string16 /* message */,
779 string16 /* source */,
780 extensions::StackTrace /* stack trace */,
781 int32 /* severity level */)