blob: 3c84692e9e68689d576913f2672871d8e1d49b7d [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]d5a04832011-03-12 21:46:2613#include "base/process.h"
[email protected]d5a04832011-03-12 21:46:2614#include "base/shared_memory.h"
[email protected]4c79e3e2009-10-23 18:31:3215#include "base/string16.h"
[email protected]6782f832011-05-10 04:06:0016#include "base/stringprintf.h"
[email protected]d5a04832011-03-12 21:46:2617#include "base/values.h"
18#include "build/build_config.h"
[email protected]79d68c62011-04-15 21:07:0319#include "chrome/common/common_param_traits.h"
[email protected]c14406092011-10-27 13:43:4220#include "chrome/common/content_settings.h"
[email protected]610ca832011-10-19 12:59:2021#include "chrome/common/content_settings_pattern.h"
[email protected]1c9c7fb2011-03-11 16:38:3822#include "chrome/common/instant_types.h"
[email protected]d5a04832011-03-12 21:46:2623#include "chrome/common/nacl_types.h"
[email protected]c08e7932011-03-29 04:08:1424#include "chrome/common/search_provider.h"
[email protected]c3917742012-11-21 01:51:1425#include "chrome/common/search_types.h"
[email protected]152b8ba32010-03-29 19:40:1626#include "chrome/common/translate_errors.h"
[email protected]19a5c7442011-10-21 20:00:4127#include "content/public/common/common_param_traits.h"
[email protected]17b5a8172012-06-22 21:09:0928#include "ipc/ipc_channel_handle.h"
[email protected]d5a04832011-03-12 21:46:2629#include "ipc/ipc_message_macros.h"
[email protected]e7f009d2011-06-14 19:35:1030#include "ipc/ipc_platform_file.h"
[email protected]1d4ecf42011-08-26 21:27:3031#include "third_party/skia/include/core/SkBitmap.h"
[email protected]fffaf972011-03-24 01:34:3532#include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h"
[email protected]fffaf972011-03-24 01:34:3533#include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h"
[email protected]d5a04832011-03-12 21:46:2634#include "ui/gfx/rect.h"
[email protected]7a4de7a62010-08-17 18:38:2435
[email protected]44c49c92011-03-28 16:17:2336// Singly-included section for enums and custom IPC traits.
[email protected]d5a04832011-03-12 21:46:2637#ifndef CHROME_COMMON_RENDER_MESSAGES_H_
38#define CHROME_COMMON_RENDER_MESSAGES_H_
[email protected]049eec22010-10-20 21:32:5239
[email protected]992db4c2011-05-12 15:37:1540class SkBitmap;
41
[email protected]a6097f42011-01-10 08:50:5142// Command values for the cmd parameter of the
43// ViewHost_JavaScriptStressTestControl message. For each command the parameter
44// passed has a different meaning:
45// For the command kJavaScriptStressTestSetStressRunType the parameter it the
46// type taken from the enumeration v8::Testing::StressType.
47// For the command kJavaScriptStressTestPrepareStressRun the parameter it the
48// number of the stress run about to take place.
49enum ViewHostMsg_JavaScriptStressTestControl_Commands {
50 kJavaScriptStressTestSetStressRunType = 0,
51 kJavaScriptStressTestPrepareStressRun = 1,
52};
53
[email protected]51b63f62011-10-05 18:55:4254// This enum is inside a struct so that we can forward-declare the struct in
55// others headers without having to include this one.
56struct ChromeViewHostMsg_GetPluginInfo_Status {
[email protected]51b63f62011-10-05 18:55:4257 enum Value {
58 kAllowed,
[email protected]8aa7a412011-11-07 12:33:4259 kBlocked,
60 kClickToPlay,
[email protected]51b63f62011-10-05 18:55:4261 kDisabled,
62 kNotFound,
[email protected]a1199132012-10-26 22:14:4163 kNPAPINotSupported,
[email protected]8aa7a412011-11-07 12:33:4264 kOutdatedBlocked,
65 kOutdatedDisallowed,
66 kUnauthorized,
[email protected]51b63f62011-10-05 18:55:4267 };
68
69 ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed) {}
70
71 Value value;
72};
73
[email protected]7d5c3ac2009-02-04 08:58:1974namespace IPC {
75
[email protected]9c7453d2012-01-21 00:45:4076#if defined(OS_POSIX) && !defined(USE_AURA) && !defined(OS_ANDROID)
[email protected]661eb9d2009-02-03 02:11:4877
78// TODO(port): this shouldn't exist. However, the plugin stuff is really using
79// HWNDS (NativeView), and making Windows calls based on them. I've not figured
80// out the deal with plugins yet.
[email protected]9c7453d2012-01-21 00:45:4081// TODO(android): a gfx::NativeView is the same as a gfx::NativeWindow.
[email protected]661eb9d2009-02-03 02:11:4882template <>
83struct ParamTraits<gfx::NativeView> {
84 typedef gfx::NativeView param_type;
[email protected]7d5c3ac2009-02-04 08:58:1985 static void Write(Message* m, const param_type& p) {
[email protected]661eb9d2009-02-03 02:11:4886 NOTIMPLEMENTED();
87 }
88
[email protected]ce208f872012-03-07 20:42:5689 static bool Read(const Message* m, PickleIterator* iter, param_type* p) {
[email protected]661eb9d2009-02-03 02:11:4890 NOTIMPLEMENTED();
91 *p = NULL;
92 return true;
93 }
94
[email protected]252cad62010-08-18 18:33:5795 static void Log(const param_type& p, std::string* l) {
[email protected]93f10522010-10-31 16:27:4896 l->append(base::StringPrintf("<gfx::NativeView>"));
[email protected]661eb9d2009-02-03 02:11:4897 }
98};
99
[email protected]9c7453d2012-01-21 00:45:40100#endif // defined(OS_POSIX) && !defined(USE_AURA) && !defined(OS_ANDROID)
[email protected]661eb9d2009-02-03 02:11:48101
[email protected]7b291f92009-08-14 05:43:53102template <>
[email protected]610ca832011-10-19 12:59:20103struct ParamTraits<ContentSettingsPattern> {
104 typedef ContentSettingsPattern param_type;
105 static void Write(Message* m, const param_type& p);
[email protected]ce208f872012-03-07 20:42:56106 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
[email protected]610ca832011-10-19 12:59:20107 static void Log(const param_type& p, std::string* l);
108};
109
[email protected]b3df5a42010-05-11 14:31:09110} // namespace IPC
[email protected]9f4db512010-05-10 20:21:41111
[email protected]5a52f162008-08-27 04:15:31112#endif // CHROME_COMMON_RENDER_MESSAGES_H_
[email protected]d5a04832011-03-12 21:46:26113
[email protected]778574e2011-03-21 22:03:50114#define IPC_MESSAGE_START ChromeMsgStart
[email protected]d5a04832011-03-12 21:46:26115
[email protected]51b63f62011-10-05 18:55:42116IPC_ENUM_TRAITS(ChromeViewHostMsg_GetPluginInfo_Status::Value)
[email protected]fffaf972011-03-24 01:34:35117IPC_ENUM_TRAITS(InstantCompleteBehavior)
[email protected]0e7cb682012-08-15 04:04:38118IPC_ENUM_TRAITS(InstantSizeUnits)
119IPC_ENUM_TRAITS(InstantSuggestionType)
[email protected]c2c82962012-10-20 00:02:24120IPC_ENUM_TRAITS(InstantShownReason)
[email protected]c08e7932011-03-29 04:08:14121IPC_ENUM_TRAITS(search_provider::OSDDType)
122IPC_ENUM_TRAITS(search_provider::InstallState)
[email protected]a6827652012-11-20 23:41:08123IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment)
124IPC_ENUM_TRAITS(ThemeBackgroundImageTiling)
[email protected]fffaf972011-03-24 01:34:35125IPC_ENUM_TRAITS(TranslateErrors::Type)
[email protected]fffaf972011-03-24 01:34:35126IPC_ENUM_TRAITS(WebKit::WebConsoleMessage::Level)
[email protected]fffaf972011-03-24 01:34:35127
[email protected]51b63f62011-10-05 18:55:42128IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status)
129IPC_STRUCT_TRAITS_MEMBER(value)
130IPC_STRUCT_TRAITS_END()
131
[email protected]cd33d282012-09-21 12:53:04132// Output parameters for ChromeViewHostMsg_GetPluginInfo message.
133IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output)
134 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status)
135 IPC_STRUCT_MEMBER(webkit::WebPluginInfo, plugin)
136 IPC_STRUCT_MEMBER(std::string, actual_mime_type)
137 IPC_STRUCT_MEMBER(std::string, group_identifier)
138 IPC_STRUCT_MEMBER(string16, group_name)
139IPC_STRUCT_END()
140
[email protected]610ca832011-10-19 12:59:20141IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts)
142 IPC_STRUCT_TRAITS_MEMBER(scheme)
143 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard)
144 IPC_STRUCT_TRAITS_MEMBER(host)
145 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard)
146 IPC_STRUCT_TRAITS_MEMBER(port)
147 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard)
148 IPC_STRUCT_TRAITS_MEMBER(path)
[email protected]ae689aab2012-01-23 17:52:08149 IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard)
[email protected]610ca832011-10-19 12:59:20150IPC_STRUCT_TRAITS_END()
151
[email protected]c14406092011-10-27 13:43:42152IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource)
153 IPC_STRUCT_TRAITS_MEMBER(primary_pattern)
154 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern)
155 IPC_STRUCT_TRAITS_MEMBER(setting)
156 IPC_STRUCT_TRAITS_MEMBER(source)
157 IPC_STRUCT_TRAITS_MEMBER(incognito)
158IPC_STRUCT_TRAITS_END()
159
[email protected]0e7cb682012-08-15 04:04:38160IPC_STRUCT_TRAITS_BEGIN(InstantAutocompleteResult)
161 IPC_STRUCT_TRAITS_MEMBER(provider)
[email protected]6dcd25762012-11-14 05:31:51162 IPC_STRUCT_TRAITS_MEMBER(type)
163 IPC_STRUCT_TRAITS_MEMBER(description)
[email protected]0e7cb682012-08-15 04:04:38164 IPC_STRUCT_TRAITS_MEMBER(destination_url)
[email protected]404b65f2012-12-18 00:52:07165 IPC_STRUCT_TRAITS_MEMBER(transition)
[email protected]0e7cb682012-08-15 04:04:38166 IPC_STRUCT_TRAITS_MEMBER(relevance)
167IPC_STRUCT_TRAITS_END()
168
[email protected]dfee2f62013-02-22 06:46:06169IPC_STRUCT_TRAITS_BEGIN(MostVisitedItem)
170 IPC_STRUCT_TRAITS_MEMBER(url)
171 IPC_STRUCT_TRAITS_MEMBER(title)
172IPC_STRUCT_TRAITS_END()
173
[email protected]0e7cb682012-08-15 04:04:38174IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion)
175 IPC_STRUCT_TRAITS_MEMBER(text)
176 IPC_STRUCT_TRAITS_MEMBER(behavior)
177 IPC_STRUCT_TRAITS_MEMBER(type)
178IPC_STRUCT_TRAITS_END()
179
[email protected]c3917742012-11-21 01:51:14180IPC_ENUM_TRAITS(chrome::search::Mode::Type)
181IPC_ENUM_TRAITS(chrome::search::Mode::Origin)
182IPC_STRUCT_TRAITS_BEGIN(chrome::search::Mode)
183 IPC_STRUCT_TRAITS_MEMBER(mode)
184 IPC_STRUCT_TRAITS_MEMBER(origin)
185IPC_STRUCT_TRAITS_END()
186
[email protected]4a7a91bd2013-01-10 23:41:04187IPC_STRUCT_TRAITS_BEGIN(nacl::NaClLaunchParams)
188 IPC_STRUCT_TRAITS_MEMBER(manifest_url)
189 IPC_STRUCT_TRAITS_MEMBER(render_view_id)
190 IPC_STRUCT_TRAITS_MEMBER(permission_bits)
[email protected]2e1e6f02013-01-11 18:22:56191 IPC_STRUCT_TRAITS_MEMBER(uses_irt)
[email protected]4a7a91bd2013-01-10 23:41:04192IPC_STRUCT_TRAITS_END()
193
[email protected]edece212011-11-16 11:56:56194IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules)
195 IPC_STRUCT_TRAITS_MEMBER(image_rules)
196 IPC_STRUCT_TRAITS_MEMBER(script_rules)
197IPC_STRUCT_TRAITS_END()
198
[email protected]a6827652012-11-20 23:41:08199IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo)
200 IPC_STRUCT_TRAITS_MEMBER(color_r)
201 IPC_STRUCT_TRAITS_MEMBER(color_g)
202 IPC_STRUCT_TRAITS_MEMBER(color_b)
203 IPC_STRUCT_TRAITS_MEMBER(color_a)
204 IPC_STRUCT_TRAITS_MEMBER(theme_id)
205 IPC_STRUCT_TRAITS_MEMBER(image_horizontal_alignment)
206 IPC_STRUCT_TRAITS_MEMBER(image_vertical_alignment)
[email protected]e4a379c2013-02-15 19:27:19207 IPC_STRUCT_TRAITS_MEMBER(image_top_offset)
[email protected]a6827652012-11-20 23:41:08208 IPC_STRUCT_TRAITS_MEMBER(image_tiling)
209 IPC_STRUCT_TRAITS_MEMBER(image_height)
210IPC_STRUCT_TRAITS_END()
211
[email protected]fffaf972011-03-24 01:34:35212IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::ResourceTypeStat)
213 IPC_STRUCT_TRAITS_MEMBER(count)
214 IPC_STRUCT_TRAITS_MEMBER(size)
215 IPC_STRUCT_TRAITS_MEMBER(liveSize)
216 IPC_STRUCT_TRAITS_MEMBER(decodedSize)
217IPC_STRUCT_TRAITS_END()
218
219IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::ResourceTypeStats)
220 IPC_STRUCT_TRAITS_MEMBER(images)
221 IPC_STRUCT_TRAITS_MEMBER(cssStyleSheets)
222 IPC_STRUCT_TRAITS_MEMBER(scripts)
223 IPC_STRUCT_TRAITS_MEMBER(xslStyleSheets)
224 IPC_STRUCT_TRAITS_MEMBER(fonts)
225IPC_STRUCT_TRAITS_END()
226
227IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::UsageStats)
228 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity)
229 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity)
230 IPC_STRUCT_TRAITS_MEMBER(capacity)
231 IPC_STRUCT_TRAITS_MEMBER(liveSize)
232 IPC_STRUCT_TRAITS_MEMBER(deadSize)
233IPC_STRUCT_TRAITS_END()
234
[email protected]d5a04832011-03-12 21:46:26235//-----------------------------------------------------------------------------
236// RenderView messages
237// These are messages sent from the browser to the renderer process.
238
[email protected]d5a04832011-03-12 21:46:26239// Tells the renderer to set its maximum cache size to the supplied value.
[email protected]2ccf45c2011-08-19 23:35:50240IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities,
[email protected]d5a04832011-03-12 21:46:26241 size_t /* min_dead_capacity */,
242 size_t /* max_dead_capacity */,
243 size_t /* capacity */)
244
245// Tells the renderer to clear the cache.
[email protected]e81d4d72011-09-29 16:54:31246IPC_MESSAGE_CONTROL1(ChromeViewMsg_ClearCache,
247 bool /* on_navigation */)
[email protected]d5a04832011-03-12 21:46:26248
[email protected]55722152011-03-22 01:33:53249// Tells the renderer to dump as much memory as it can, perhaps because we
250// have memory pressure or the renderer is (or will be) paged out. This
251// should only result in purging objects we can recalculate, e.g. caches or
252// JS garbage, not in purging irreplaceable objects.
[email protected]2ccf45c2011-08-19 23:35:50253IPC_MESSAGE_CONTROL0(ChromeViewMsg_PurgeMemory)
[email protected]55722152011-03-22 01:33:53254
[email protected]350019f2011-08-02 04:18:33255// For WebUI testing, this message stores parameters to do ScriptEvalRequest at
256// a time which is late enough to not be thrown out, and early enough to be
257// before onload events are fired.
[email protected]2ccf45c2011-08-19 23:35:50258IPC_MESSAGE_ROUTED4(ChromeViewMsg_WebUIJavaScript,
[email protected]350019f2011-08-02 04:18:33259 string16, /* frame_xpath */
260 string16, /* jscript_url */
261 int, /* ID */
262 bool /* If true, result is sent back. */)
263
[email protected]55722152011-03-22 01:33:53264// Tells the render view to capture a thumbnail image of the page. The
[email protected]2ccf45c2011-08-19 23:35:50265// render view responds with a ChromeViewHostMsg_Snapshot.
266IPC_MESSAGE_ROUTED0(ChromeViewMsg_CaptureSnapshot)
[email protected]d5a04832011-03-12 21:46:26267
[email protected]edece212011-11-16 11:56:56268// Set the content setting rules stored by the renderer.
269IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules,
270 RendererContentSettingRules /* rules */)
[email protected]c14406092011-10-27 13:43:42271
[email protected]51ffaf72012-05-09 21:00:49272// Tells the render view to load all blocked plugins with the given identifier.
273IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins,
274 std::string /* identifier */)
[email protected]d5a04832011-03-12 21:46:26275
[email protected]d5a04832011-03-12 21:46:26276// Asks the renderer to send back stats on the WebCore cache broken down by
277// resource types.
[email protected]2ccf45c2011-08-19 23:35:50278IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats)
[email protected]d5a04832011-03-12 21:46:26279
[email protected]63a8ba12011-04-29 05:42:22280// Tells the renderer to create a FieldTrial, and by using a 100% probability
281// for the FieldTrial, forces the FieldTrial to have assigned group name.
[email protected]2ccf45c2011-08-19 23:35:50282IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup,
[email protected]63a8ba12011-04-29 05:42:22283 std::string /* field trial name */,
284 std::string /* group name that was assigned. */)
285
[email protected]d5a04832011-03-12 21:46:26286// Asks the renderer to send back V8 heap stats.
[email protected]2ccf45c2011-08-19 23:35:50287IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats)
[email protected]d5a04832011-03-12 21:46:26288
[email protected]d5a04832011-03-12 21:46:26289// Posts a message to the renderer.
[email protected]2ccf45c2011-08-19 23:35:50290IPC_MESSAGE_ROUTED3(ChromeViewMsg_HandleMessageFromExternalHost,
[email protected]d5a04832011-03-12 21:46:26291 std::string /* The message */,
292 std::string /* The origin */,
293 std::string /* The target*/)
294
[email protected]2ccf45c2011-08-19 23:35:50295IPC_MESSAGE_ROUTED4(ChromeViewMsg_SearchBoxChange,
[email protected]d5a04832011-03-12 21:46:26296 string16 /* value */,
297 bool /* verbatim */,
[email protected]c55e3b82012-08-09 15:27:05298 size_t /* selection_start */,
299 size_t /* selection_end */)
[email protected]0e7cb682012-08-15 04:04:38300
[email protected]c55e3b82012-08-09 15:27:05301IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSubmit,
302 string16 /* value */)
[email protected]0e7cb682012-08-15 04:04:38303
[email protected]c55e3b82012-08-09 15:27:05304IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxCancel,
305 string16 /* value */)
[email protected]0e7cb682012-08-15 04:04:38306
[email protected]ec4aad542012-12-14 01:11:04307IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPopupResize,
308 gfx::Rect /* bounds */)
309
310IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxMarginChange,
311 int /* start */,
312 int /* end */)
[email protected]0e7cb682012-08-15 04:04:38313
[email protected]c55e3b82012-08-09 15:27:05314IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant)
[email protected]d5a04832011-03-12 21:46:26315
[email protected]0e7cb682012-08-15 04:04:38316IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxAutocompleteResults,
317 std::vector<InstantAutocompleteResult>
318 /* native_suggestions */)
319
[email protected]056793e2012-09-19 00:40:28320IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxUpOrDownKeyPressed,
321 int /* count */)
[email protected]0e7cb682012-08-15 04:04:38322
[email protected]01b8d6502013-02-15 17:35:55323IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxCancelSelection,
324 string16 /* value */)
325
[email protected]c3917742012-11-21 01:51:14326IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxModeChanged,
327 chrome::search::Mode /* mode */)
[email protected]0b10c9ff2012-10-09 17:31:55328
[email protected]d8125852012-11-30 00:47:34329IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetDisplayInstantResults,
330 bool /* display_instant_results */)
331
[email protected]a6827652012-11-20 23:41:08332IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged,
333 ThemeBackgroundInfo /* value */)
334
[email protected]3ff3a452012-12-15 21:45:31335IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFontInformation,
336 string16 /* omnibox_font */,
337 size_t /* omnibox_font_size */)
338
[email protected]6a6811a2012-12-12 04:18:16339IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxKeyCaptureChanged,
340 bool /* is_key_capture_enabled */)
341
[email protected]dfee2f62013-02-22 06:46:06342IPC_MESSAGE_ROUTED1(ChromeViewMsg_InstantMostVisitedItemsChanged,
343 std::vector<MostVisitedItem> /* items */)
344
345IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_InstantDeleteMostVisitedItem,
346 GURL /* url */)
347
348IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_InstantUndoMostVisitedDeletion,
349 GURL /* url */)
350
351IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_InstantUndoAllMostVisitedDeletions)
352
[email protected]1138cce2011-12-02 21:29:36353// Toggles visual muting of the render view area. This is on when a constrained
354// window is showing.
355IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized,
356 bool /* deemphazied */)
357
[email protected]d5a04832011-03-12 21:46:26358// Tells the renderer to translate the page contents from one language to
359// another.
[email protected]2ccf45c2011-08-19 23:35:50360IPC_MESSAGE_ROUTED4(ChromeViewMsg_TranslatePage,
[email protected]d5a04832011-03-12 21:46:26361 int /* page id */,
362 std::string, /* the script injected in the page */
363 std::string, /* BCP 47/RFC 5646 language code the page
364 is in */
365 std::string /* BCP 47/RFC 5646 language code to translate
366 to */)
367
368// Tells the renderer to revert the text of translated page to its original
369// contents.
[email protected]2ccf45c2011-08-19 23:35:50370IPC_MESSAGE_ROUTED1(ChromeViewMsg_RevertTranslation,
[email protected]d5a04832011-03-12 21:46:26371 int /* page id */)
372
[email protected]d5a04832011-03-12 21:46:26373// Sent on process startup to indicate whether this process is running in
374// incognito mode.
[email protected]2ccf45c2011-08-19 23:35:50375IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess,
[email protected]d5a04832011-03-12 21:46:26376 bool /* is_incognito_processs */)
377
[email protected]68cafdb2011-06-10 21:42:18378// Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent.
[email protected]2ccf45c2011-08-19 23:35:50379IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent,
[email protected]68cafdb2011-06-10 21:42:18380 bool /* allowed */)
381
382// Sent in response to ViewHostMsg_DidBlockRunningInsecureContent.
[email protected]2ccf45c2011-08-19 23:35:50383IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent,
[email protected]68cafdb2011-06-10 21:42:18384 bool /* allowed */)
385
[email protected]92d213842011-11-02 20:09:43386// Tells renderer to always enforce mixed content blocking for this host.
387IPC_MESSAGE_ROUTED1(ChromeViewMsg_AddStrictSecurityHost,
388 std::string /* host */)
389
[email protected]8c40da62011-07-13 22:58:46390// Sent when the profile changes the kSafeBrowsingEnabled preference.
[email protected]2ccf45c2011-08-19 23:35:50391IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection,
[email protected]8c40da62011-07-13 22:58:46392 bool /* enable_phishing_detection */)
393
[email protected]83af80b22011-09-06 18:49:19394// This message asks frame sniffer start.
395IPC_MESSAGE_ROUTED1(ChromeViewMsg_StartFrameSniffer,
396 string16 /* frame-name */)
397
[email protected]21d898342011-08-23 18:14:41398// JavaScript related messages -----------------------------------------------
399
400// Notify the JavaScript engine in the render to change its parameters
401// while performing stress testing.
402IPC_MESSAGE_ROUTED2(ChromeViewMsg_JavaScriptStressTestControl,
403 int /* cmd */,
404 int /* param */)
405
[email protected]a1127f82011-09-08 17:27:01406// Asks the renderer to send back FPS.
407IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetFPS)
408
[email protected]6f9f7d82011-12-08 12:13:34409// Tells the view it is displaying an interstitial page.
410IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial)
411
[email protected]a1a7ff32012-07-19 14:03:51412// Tells the renderer to suspend/resume the webkit timers.
413IPC_MESSAGE_CONTROL1(ChromeViewMsg_ToggleWebKitSharedTimer,
414 bool /* suspend */)
415
[email protected]7e771bfb2013-01-14 23:23:21416// Provides the renderer with the results of the browser's investigation into
417// why a recent main frame load failed (currently, just DNS probe result).
418// NetErrorHelper will receive this mesage and replace or update the error
419// page with more specific troubleshooting suggestions.
420IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo,
421 int /* DNS probe result */)
422
[email protected]d5a04832011-03-12 21:46:26423//-----------------------------------------------------------------------------
[email protected]63f72132012-04-18 18:02:44424// Misc messages
[email protected]d5a04832011-03-12 21:46:26425// These are messages sent from the renderer to the browser process.
426
[email protected]93b9d692011-04-13 00:44:31427// Provides the contents for the given page that was loaded recently.
[email protected]2ccf45c2011-08-19 23:35:50428IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageContents,
[email protected]93b9d692011-04-13 00:44:31429 GURL /* URL of the page */,
430 int32 /* page id */,
431 string16 /* page contents */)
432
433// Notification that the language for the tab has been determined.
[email protected]2ccf45c2011-08-19 23:35:50434IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_TranslateLanguageDetermined,
[email protected]93b9d692011-04-13 00:44:31435 std::string /* page ISO639_1 language code */,
436 bool /* whether the page can be translated */)
437
[email protected]2ccf45c2011-08-19 23:35:50438IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats,
[email protected]d5a04832011-03-12 21:46:26439 WebKit::WebCache::UsageStats /* stats */)
440
[email protected]d5a04832011-03-12 21:46:26441// Tells the browser that content in the current page was blocked due to the
442// user's content settings.
[email protected]2ccf45c2011-08-19 23:35:50443IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ContentBlocked,
[email protected]d5a04832011-03-12 21:46:26444 ContentSettingsType, /* type of blocked content */
445 std::string /* resource identifier */)
446
[email protected]5327dfb2011-05-03 17:50:36447// Sent by the renderer process to check whether access to web databases is
[email protected]bac33eb2011-05-04 01:47:49448// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50449IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase,
[email protected]9a611a92011-05-07 17:06:18450 int /* render_view_id */,
451 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15452 GURL /* top origin url */,
[email protected]bac33eb2011-05-04 01:47:49453 string16 /* database name */,
454 string16 /* database display name */,
[email protected]8c276642011-05-06 09:41:00455 bool /* allowed */)
[email protected]bac33eb2011-05-04 01:47:49456
457// Sent by the renderer process to check whether access to DOM Storage is
458// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50459IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage,
[email protected]bac33eb2011-05-04 01:47:49460 int /* render_view_id */,
461 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15462 GURL /* top origin url */,
[email protected]c729db82011-11-23 17:37:27463 bool /* if true local storage, otherwise session */,
[email protected]8c276642011-05-06 09:41:00464 bool /* allowed */)
[email protected]5327dfb2011-05-03 17:50:36465
[email protected]45316d62011-05-12 18:15:30466// Sent by the renderer process to check whether access to FileSystem is
467// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50468IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_AllowFileSystem,
[email protected]45316d62011-05-12 18:15:30469 int /* render_view_id */,
470 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15471 GURL /* top origin url */,
[email protected]45316d62011-05-12 18:15:30472 bool /* allowed */)
473
[email protected]9a611a92011-05-07 17:06:18474// Sent by the renderer process to check whether access to Indexed DBis
475// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50476IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB,
[email protected]9a611a92011-05-07 17:06:18477 int /* render_view_id */,
[email protected]c0a45a982011-05-25 16:58:15478 GURL /* origin_url */,
479 GURL /* top origin url */,
[email protected]9a611a92011-05-07 17:06:18480 string16 /* database name */,
481 bool /* allowed */)
[email protected]5327dfb2011-05-03 17:50:36482
[email protected]51b63f62011-10-05 18:55:42483// Return information about a plugin for the given URL and MIME type.
484// In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows
485// about specific reasons why a plug-in can't be used, for example because it's
486// disabled.
[email protected]cd33d282012-09-21 12:53:04487IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo,
[email protected]51b63f62011-10-05 18:55:42488 int /* render_view_id */,
489 GURL /* url */,
490 GURL /* top origin url */,
491 std::string /* mime_type */,
[email protected]cd33d282012-09-21 12:53:04492 ChromeViewHostMsg_GetPluginInfo_Output /* output */)
[email protected]51b63f62011-10-05 18:55:42493
[email protected]43b7eaca2012-01-12 17:27:28494#if defined(ENABLE_PLUGIN_INSTALLATION)
[email protected]1d697f32011-11-28 11:57:51495// Tells the browser to search for a plug-in that can handle the given MIME
496// type. The result will be sent asynchronously to the routing ID
497// |placeholder_id|.
498IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin,
499 int /* placeholder_id */,
500 std::string /* mime_type */)
501
[email protected]3240d2502012-01-26 17:00:33502// Notifies the browser that a missing plug-in placeholder has been removed, so
[email protected]e2424012012-02-03 10:26:50503// the corresponding PluginPlaceholderHost can be deleted.
504IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost,
[email protected]3240d2502012-01-26 17:00:33505 int /* placeholder_id */)
506
[email protected]1d697f32011-11-28 11:57:51507// Notifies a missing plug-in placeholder that a plug-in with name |plugin_name|
508// has been found.
509IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin,
510 string16 /* plugin_name */)
511
512// Notifies a missing plug-in placeholder that no plug-in has been found.
513IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin)
514
[email protected]0dd9e8b2012-01-04 13:36:16515// Notifies a missing plug-in placeholder that we have started downloading
516// the plug-in.
517IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin)
518
519// Notifies a missing plug-in placeholder that we have finished downloading
520// the plug-in.
521IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin)
522
[email protected]725f6882012-01-13 18:50:06523// Notifies a missing plug-in placeholder that there was an error downloading
524// the plug-in.
525IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin,
526 std::string /* message */)
[email protected]4f62d8052012-01-18 16:16:59527#endif // defined(ENABLE_PLUGIN_INSTALLATION)
528
[email protected]1a86f752012-02-10 13:20:36529// Notifies a missing plug-in placeholder that the user cancelled downloading
530// the plug-in.
531IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin)
532
[email protected]4f62d8052012-01-18 16:16:59533// Tells the browser to open chrome://plugins in a new tab. We use a separate
534// message because renderer processes aren't allowed to directly navigate to
535// chrome:// URLs.
536IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins)
[email protected]725f6882012-01-13 18:50:06537
[email protected]cc5f7812012-05-31 13:50:34538// Tells the browser that there was an error loading a plug-in.
539IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin,
[email protected]a7329162013-02-07 19:21:48540 base::FilePath /* plugin_path */)
[email protected]cc5f7812012-05-31 13:50:34541
[email protected]a1199132012-10-26 22:14:41542// Tells the browser that we blocked a plug-in because NPAPI is not supported.
543IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported,
544 std::string /* identifer */)
545
[email protected]d5a04832011-03-12 21:46:26546// Send a snapshot of the tab contents to the render host.
[email protected]2ccf45c2011-08-19 23:35:50547IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_Snapshot,
[email protected]d5a04832011-03-12 21:46:26548 SkBitmap /* bitmap */)
549
[email protected]d5a04832011-03-12 21:46:26550// A message for an external host.
[email protected]2ccf45c2011-08-19 23:35:50551IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ForwardMessageToExternalHost,
[email protected]d5a04832011-03-12 21:46:26552 std::string /* message */,
553 std::string /* origin */,
554 std::string /* target */)
555
[email protected]d5a04832011-03-12 21:46:26556// A renderer sends this to the browser process when it wants to start
557// a new instance of the Native Client process. The browser will launch
[email protected]17b5a8172012-06-22 21:09:09558// the process and return an IPC channel handle. This handle will only
559// be valid if the NaCl IPC proxy is enabled.
[email protected]4a7a91bd2013-01-10 23:41:04560IPC_SYNC_MESSAGE_CONTROL1_4(ChromeViewHostMsg_LaunchNaCl,
561 nacl::NaClLaunchParams /* launch_params */,
[email protected]6294dd02013-01-09 17:27:23562 nacl::FileDescriptor /* imc channel handle */,
[email protected]2b7197b2012-10-23 21:54:42563 IPC::ChannelHandle /* ipc_channel_handle */,
[email protected]108fd342013-01-04 20:46:54564 base::ProcessId /* plugin_pid */,
[email protected]2b7197b2012-10-23 21:54:42565 int /* plugin_child_id */)
[email protected]d5a04832011-03-12 21:46:26566
[email protected]9a807152012-07-30 17:13:01567// A renderer sends this to the browser process when it wants to
[email protected]1787bb42012-07-23 22:26:50568// open a file for from the Pnacl component directory.
569IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetReadonlyPnaclFD,
570 std::string /* name of requested PNaCl file */,
571 IPC::PlatformFileForTransit /* output file */)
572
[email protected]9a807152012-07-30 17:13:01573// A renderer sends this to the browser process when it wants to
574// create a temporary file.
575IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_NaClCreateTemporaryFile,
576 IPC::PlatformFileForTransit /* out file */)
577
[email protected]923c1162012-12-14 10:07:46578// A renderer sends this to the browser process to display infobar
579IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_NaClErrorStatus,
580 int /* render_view_id */,
581 int /* Error ID */)
582
[email protected]d5a04832011-03-12 21:46:26583// Notification that the page has an OpenSearch description document
584// associated with it.
[email protected]2ccf45c2011-08-19 23:35:50585IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD,
[email protected]d5a04832011-03-12 21:46:26586 int32 /* page_id */,
587 GURL /* url of OS description document */,
[email protected]c08e7932011-03-29 04:08:14588 search_provider::OSDDType)
[email protected]d5a04832011-03-12 21:46:26589
590// Find out if the given url's security origin is installed as a search
591// provider.
[email protected]2ccf45c2011-08-19 23:35:50592IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState,
[email protected]c08e7932011-03-29 04:08:14593 GURL /* page url */,
594 GURL /* inquiry url */,
595 search_provider::InstallState /* install */)
[email protected]d5a04832011-03-12 21:46:26596
[email protected]d5a04832011-03-12 21:46:26597// Sends back stats about the V8 heap.
[email protected]2ccf45c2011-08-19 23:35:50598IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats,
[email protected]d5a04832011-03-12 21:46:26599 int /* size of heap (allocated from the OS) */,
600 int /* bytes in use */)
601
602// Request for a DNS prefetch of the names in the array.
603// NameList is typedef'ed std::vector<std::string>
[email protected]2ccf45c2011-08-19 23:35:50604IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_DnsPrefetch,
[email protected]2bf2bd92011-03-31 07:12:44605 std::vector<std::string> /* hostnames */)
[email protected]d5a04832011-03-12 21:46:26606
[email protected]d5a04832011-03-12 21:46:26607// Notifies when a plugin couldn't be loaded because it's outdated.
[email protected]2ccf45c2011-08-19 23:35:50608IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin,
[email protected]27c483892012-02-09 15:59:10609 int /* placeholder ID */,
610 std::string /* plug-in group identifier */)
[email protected]d5a04832011-03-12 21:46:26611
[email protected]e2424012012-02-03 10:26:50612// Notifies when a plugin couldn't be loaded because it requires
613// user authorization.
[email protected]51ffaf72012-05-09 21:00:49614IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin,
615 string16 /* name */,
616 std::string /* plug-in group identifier */)
[email protected]e2424012012-02-03 10:26:50617
[email protected]d5a04832011-03-12 21:46:26618// Provide the browser process with information about the WebCore resource
[email protected]872ae5b2011-05-26 20:20:50619// cache and current renderer framerate.
[email protected]2ccf45c2011-08-19 23:35:50620IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats,
[email protected]d5a04832011-03-12 21:46:26621 WebKit::WebCache::ResourceTypeStats)
622
[email protected]d5a04832011-03-12 21:46:26623// Notifies the browser that a page has been translated.
[email protected]2ccf45c2011-08-19 23:35:50624IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_PageTranslated,
[email protected]d5a04832011-03-12 21:46:26625 int, /* page id */
626 std::string /* the original language */,
627 std::string /* the translated language */,
628 TranslateErrors::Type /* the error type if available */)
629
[email protected]16e923d2011-04-30 00:41:44630// Message sent from the renderer to the browser to notify it of events which
631// may lead to the cancellation of a prerender. The message is sent only when
632// the renderer is prerendering.
[email protected]2ccf45c2011-08-19 23:35:50633IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_MaybeCancelPrerenderForHTML5Media)
[email protected]16e923d2011-04-30 00:41:44634
[email protected]4c94b8c2011-05-17 16:17:45635// Message sent from the renderer to the browser to notify it of a
636// window.print() call which should cancel the prerender. The message is sent
637// only when the renderer is prerendering.
[email protected]2ccf45c2011-08-19 23:35:50638IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting)
[email protected]4c94b8c2011-05-17 16:17:45639
[email protected]ab2eb9f2011-05-03 23:02:37640// Sent by the renderer to check if a URL has permission to trigger a clipboard
641// read/write operation from the DOM.
[email protected]2ccf45c2011-08-19 23:35:50642IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_CanTriggerClipboardRead,
[email protected]34eec7ffe32011-11-02 23:49:02643 GURL /* origin */,
[email protected]ab2eb9f2011-05-03 23:02:37644 bool /* allowed */)
[email protected]2ccf45c2011-08-19 23:35:50645IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_CanTriggerClipboardWrite,
[email protected]34eec7ffe32011-11-02 23:49:02646 GURL /* origin */,
[email protected]ab2eb9f2011-05-03 23:02:37647 bool /* allowed */)
648
[email protected]68cafdb2011-06-10 21:42:18649// Sent when the renderer was prevented from displaying insecure content in
650// a secure page by a security policy. The page may appear incomplete.
[email protected]2ccf45c2011-08-19 23:35:50651IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent)
[email protected]68cafdb2011-06-10 21:42:18652
653// Sent when the renderer was prevented from running insecure content in
654// a secure origin by a security policy. The page may appear incomplete.
[email protected]2ccf45c2011-08-19 23:35:50655IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent)
[email protected]68cafdb2011-06-10 21:42:18656
[email protected]2d0f2e92011-10-03 09:02:24657// Message sent from renderer to the browser when the element that is focused
[email protected]e15ad752012-12-21 19:12:02658// has been touched. A bool is passed in this message which indicates if the
659// node is editable.
660IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FocusedNodeTouched,
661 bool /* editable */)
[email protected]2d0f2e92011-10-03 09:02:24662
[email protected]d5a04832011-03-12 21:46:26663// Suggest results -----------------------------------------------------------
664
[email protected]74a237fb2013-02-15 04:17:18665// Sent by Instant to populate the omnibox with query suggestions.
[email protected]0e7cb682012-08-15 04:04:38666IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetSuggestions,
[email protected]c55e3b82012-08-09 15:27:05667 int /* page_id */,
[email protected]0e7cb682012-08-15 04:04:38668 std::vector<InstantSuggestion> /* suggestions */)
[email protected]d5a04832011-03-12 21:46:26669
[email protected]74a237fb2013-02-15 04:17:18670// Sent by Instant to indicate whether the page supports the Instant API
671// (http://dev.chromium.org/searchbox).
[email protected]2ccf45c2011-08-19 23:35:50672IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined,
[email protected]c55e3b82012-08-09 15:27:05673 int /* page_id */,
674 bool /* result */)
[email protected]d5a04832011-03-12 21:46:26675
[email protected]e3033eb2012-12-13 23:46:08676IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SearchBoxNavigate,
677 int /* page_id */,
678 GURL /* destination */,
679 content::PageTransition /* transition */)
680
[email protected]74a237fb2013-02-15 04:17:18681// Sent by the Instant overlay asking to show itself with the given height.
682IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_ShowInstantOverlay,
[email protected]0e7cb682012-08-15 04:04:38683 int /* page_id */,
[email protected]c2c82962012-10-20 00:02:24684 InstantShownReason /* reason */,
[email protected]0e7cb682012-08-15 04:04:38685 int /* height */,
686 InstantSizeUnits /* units */)
687
[email protected]c18cb672012-12-05 04:42:12688IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_StartCapturingKeyStrokes,
689 int /* page_id */)
690
691IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_StopCapturingKeyStrokes,
692 int /* page_id */)
693
[email protected]21d898342011-08-23 18:14:41694// The currently displayed PDF has an unsupported feature.
695IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature)
[email protected]d5a04832011-03-12 21:46:26696
[email protected]83af80b22011-09-06 18:49:19697// This message indicates the error appeared in the frame.
698IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError,
699 int /* error */)
700
[email protected]ebce9522011-10-27 19:17:17701// This message indicates the monitored frame loading had completed.
702IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted)
703
[email protected]6a3eede2011-08-29 23:48:05704// The following messages are used to set and get cookies for ChromeFrame
705// processes.
706// Used to set a cookie. The cookie is set asynchronously, but will be
707// available to a subsequent ChromeViewHostMsg_GetCookies request.
708IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SetCookie,
709 GURL /* url */,
710 GURL /* first_party_for_cookies */,
711 std::string /* cookie */)
712
713// Used to get cookies for the given URL. This may block waiting for a
714// previous SetCookie message to be processed.
715IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies,
716 GURL /* url */,
717 GURL /* first_party_for_cookies */,
718 std::string /* cookies */)
[email protected]a1127f82011-09-08 17:27:01719
720// Provide the browser process with current renderer framerate.
721IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS,
722 int /* routing id */,
723 float /* frames per second */)