blob: 7d7ed1b038971b6254f9fc10e8c0a2a0eb5f13b1 [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]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]d5a04832011-03-12 21:46:2624#include "chrome/common/nacl_types.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]c3917742012-11-21 01:51:1427#include "chrome/common/search_types.h"
[email protected]b2ed9c672013-06-06 23:34:0028#include "chrome/common/translate/language_detection_details.h"
29#include "chrome/common/translate/translate_errors.h"
[email protected]19a5c7442011-10-21 20:00:4130#include "content/public/common/common_param_traits.h"
[email protected]9b003482013-05-21 14:00:1731#include "content/public/common/top_controls_state.h"
[email protected]17b5a8172012-06-22 21:09:0932#include "ipc/ipc_channel_handle.h"
[email protected]d5a04832011-03-12 21:46:2633#include "ipc/ipc_message_macros.h"
[email protected]e7f009d2011-06-14 19:35:1034#include "ipc/ipc_platform_file.h"
[email protected]1d4ecf42011-08-26 21:27:3035#include "third_party/skia/include/core/SkBitmap.h"
[email protected]fffaf972011-03-24 01:34:3536#include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h"
[email protected]fffaf972011-03-24 01:34:3537#include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h"
[email protected]3c3acca2013-02-26 03:07:0738#include "ui/base/window_open_disposition.h"
[email protected]d5a04832011-03-12 21:46:2639#include "ui/gfx/rect.h"
[email protected]7a4de7a62010-08-17 18:38:2440
[email protected]44c49c92011-03-28 16:17:2341// Singly-included section for enums and custom IPC traits.
[email protected]d5a04832011-03-12 21:46:2642#ifndef CHROME_COMMON_RENDER_MESSAGES_H_
43#define CHROME_COMMON_RENDER_MESSAGES_H_
[email protected]049eec22010-10-20 21:32:5244
[email protected]992db4c2011-05-12 15:37:1545class SkBitmap;
46
[email protected]a6097f42011-01-10 08:50:5147// Command values for the cmd parameter of the
48// ViewHost_JavaScriptStressTestControl message. For each command the parameter
49// passed has a different meaning:
50// For the command kJavaScriptStressTestSetStressRunType the parameter it the
51// type taken from the enumeration v8::Testing::StressType.
52// For the command kJavaScriptStressTestPrepareStressRun the parameter it the
53// number of the stress run about to take place.
54enum ViewHostMsg_JavaScriptStressTestControl_Commands {
55 kJavaScriptStressTestSetStressRunType = 0,
56 kJavaScriptStressTestPrepareStressRun = 1,
57};
58
[email protected]51b63f62011-10-05 18:55:4259// This enum is inside a struct so that we can forward-declare the struct in
60// others headers without having to include this one.
61struct ChromeViewHostMsg_GetPluginInfo_Status {
[email protected]51b63f62011-10-05 18:55:4262 enum Value {
63 kAllowed,
[email protected]8aa7a412011-11-07 12:33:4264 kBlocked,
65 kClickToPlay,
[email protected]51b63f62011-10-05 18:55:4266 kDisabled,
67 kNotFound,
[email protected]a1199132012-10-26 22:14:4168 kNPAPINotSupported,
[email protected]8aa7a412011-11-07 12:33:4269 kOutdatedBlocked,
70 kOutdatedDisallowed,
71 kUnauthorized,
[email protected]51b63f62011-10-05 18:55:4272 };
73
74 ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed) {}
75
76 Value value;
77};
78
[email protected]7d5c3ac2009-02-04 08:58:1979namespace IPC {
80
[email protected]9c7453d2012-01-21 00:45:4081#if defined(OS_POSIX) && !defined(USE_AURA) && !defined(OS_ANDROID)
[email protected]661eb9d2009-02-03 02:11:4882
83// TODO(port): this shouldn't exist. However, the plugin stuff is really using
84// HWNDS (NativeView), and making Windows calls based on them. I've not figured
85// out the deal with plugins yet.
[email protected]9c7453d2012-01-21 00:45:4086// TODO(android): a gfx::NativeView is the same as a gfx::NativeWindow.
[email protected]661eb9d2009-02-03 02:11:4887template <>
88struct ParamTraits<gfx::NativeView> {
89 typedef gfx::NativeView param_type;
[email protected]7d5c3ac2009-02-04 08:58:1990 static void Write(Message* m, const param_type& p) {
[email protected]661eb9d2009-02-03 02:11:4891 NOTIMPLEMENTED();
92 }
93
[email protected]ce208f872012-03-07 20:42:5694 static bool Read(const Message* m, PickleIterator* iter, param_type* p) {
[email protected]661eb9d2009-02-03 02:11:4895 NOTIMPLEMENTED();
96 *p = NULL;
97 return true;
98 }
99
[email protected]252cad62010-08-18 18:33:57100 static void Log(const param_type& p, std::string* l) {
[email protected]93f10522010-10-31 16:27:48101 l->append(base::StringPrintf("<gfx::NativeView>"));
[email protected]661eb9d2009-02-03 02:11:48102 }
103};
104
[email protected]9c7453d2012-01-21 00:45:40105#endif // defined(OS_POSIX) && !defined(USE_AURA) && !defined(OS_ANDROID)
[email protected]661eb9d2009-02-03 02:11:48106
[email protected]7b291f92009-08-14 05:43:53107template <>
[email protected]610ca832011-10-19 12:59:20108struct ParamTraits<ContentSettingsPattern> {
109 typedef ContentSettingsPattern param_type;
110 static void Write(Message* m, const param_type& p);
[email protected]ce208f872012-03-07 20:42:56111 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
[email protected]610ca832011-10-19 12:59:20112 static void Log(const param_type& p, std::string* l);
113};
114
[email protected]b3df5a42010-05-11 14:31:09115} // namespace IPC
[email protected]9f4db512010-05-10 20:21:41116
[email protected]5a52f162008-08-27 04:15:31117#endif // CHROME_COMMON_RENDER_MESSAGES_H_
[email protected]d5a04832011-03-12 21:46:26118
[email protected]778574e2011-03-21 22:03:50119#define IPC_MESSAGE_START ChromeMsgStart
[email protected]d5a04832011-03-12 21:46:26120
[email protected]b77ddff2013-05-24 07:49:01121IPC_ENUM_TRAITS(AutocompleteMatchType::Type)
[email protected]51b63f62011-10-05 18:55:42122IPC_ENUM_TRAITS(ChromeViewHostMsg_GetPluginInfo_Status::Value)
[email protected]fffaf972011-03-24 01:34:35123IPC_ENUM_TRAITS(InstantCompleteBehavior)
[email protected]0e7cb682012-08-15 04:04:38124IPC_ENUM_TRAITS(InstantSizeUnits)
125IPC_ENUM_TRAITS(InstantSuggestionType)
[email protected]8d4c276d2013-05-29 19:39:52126IPC_ENUM_TRAITS(OmniboxFocusChangeReason)
[email protected]ca98bd32013-04-09 05:16:05127IPC_ENUM_TRAITS(OmniboxFocusState)
[email protected]c08e7932011-03-29 04:08:14128IPC_ENUM_TRAITS(search_provider::OSDDType)
129IPC_ENUM_TRAITS(search_provider::InstallState)
[email protected]a6827652012-11-20 23:41:08130IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment)
131IPC_ENUM_TRAITS(ThemeBackgroundImageTiling)
[email protected]fffaf972011-03-24 01:34:35132IPC_ENUM_TRAITS(TranslateErrors::Type)
[email protected]fffaf972011-03-24 01:34:35133IPC_ENUM_TRAITS(WebKit::WebConsoleMessage::Level)
[email protected]9b003482013-05-21 14:00:17134IPC_ENUM_TRAITS(content::TopControlsState)
[email protected]fffaf972011-03-24 01:34:35135
[email protected]51b63f62011-10-05 18:55:42136IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status)
137IPC_STRUCT_TRAITS_MEMBER(value)
138IPC_STRUCT_TRAITS_END()
139
[email protected]cd33d282012-09-21 12:53:04140// Output parameters for ChromeViewHostMsg_GetPluginInfo message.
141IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output)
142 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status)
143 IPC_STRUCT_MEMBER(webkit::WebPluginInfo, plugin)
144 IPC_STRUCT_MEMBER(std::string, actual_mime_type)
145 IPC_STRUCT_MEMBER(std::string, group_identifier)
146 IPC_STRUCT_MEMBER(string16, group_name)
147IPC_STRUCT_END()
148
[email protected]610ca832011-10-19 12:59:20149IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts)
150 IPC_STRUCT_TRAITS_MEMBER(scheme)
151 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard)
152 IPC_STRUCT_TRAITS_MEMBER(host)
153 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard)
154 IPC_STRUCT_TRAITS_MEMBER(port)
155 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard)
156 IPC_STRUCT_TRAITS_MEMBER(path)
[email protected]ae689aab2012-01-23 17:52:08157 IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard)
[email protected]610ca832011-10-19 12:59:20158IPC_STRUCT_TRAITS_END()
159
[email protected]c14406092011-10-27 13:43:42160IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource)
161 IPC_STRUCT_TRAITS_MEMBER(primary_pattern)
162 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern)
163 IPC_STRUCT_TRAITS_MEMBER(setting)
164 IPC_STRUCT_TRAITS_MEMBER(source)
165 IPC_STRUCT_TRAITS_MEMBER(incognito)
166IPC_STRUCT_TRAITS_END()
167
[email protected]0e7cb682012-08-15 04:04:38168IPC_STRUCT_TRAITS_BEGIN(InstantAutocompleteResult)
169 IPC_STRUCT_TRAITS_MEMBER(provider)
[email protected]6dcd25762012-11-14 05:31:51170 IPC_STRUCT_TRAITS_MEMBER(type)
171 IPC_STRUCT_TRAITS_MEMBER(description)
[email protected]0e7cb682012-08-15 04:04:38172 IPC_STRUCT_TRAITS_MEMBER(destination_url)
[email protected]6bc88f572013-03-24 20:28:09173 IPC_STRUCT_TRAITS_MEMBER(search_query)
[email protected]404b65f2012-12-18 00:52:07174 IPC_STRUCT_TRAITS_MEMBER(transition)
[email protected]0e7cb682012-08-15 04:04:38175 IPC_STRUCT_TRAITS_MEMBER(relevance)
[email protected]2485c8122013-05-07 03:17:52176 IPC_STRUCT_TRAITS_MEMBER(autocomplete_match_index)
[email protected]0e7cb682012-08-15 04:04:38177IPC_STRUCT_TRAITS_END()
178
[email protected]e7868c82013-03-12 03:55:56179IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem)
[email protected]dfee2f62013-02-22 06:46:06180 IPC_STRUCT_TRAITS_MEMBER(url)
181 IPC_STRUCT_TRAITS_MEMBER(title)
182IPC_STRUCT_TRAITS_END()
183
[email protected]0e7cb682012-08-15 04:04:38184IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion)
185 IPC_STRUCT_TRAITS_MEMBER(text)
186 IPC_STRUCT_TRAITS_MEMBER(behavior)
187 IPC_STRUCT_TRAITS_MEMBER(type)
[email protected]10f588e32013-03-15 22:34:55188 IPC_STRUCT_TRAITS_MEMBER(query)
[email protected]2485c8122013-05-07 03:17:52189 IPC_STRUCT_TRAITS_MEMBER(autocomplete_match_index)
[email protected]0e7cb682012-08-15 04:04:38190IPC_STRUCT_TRAITS_END()
191
[email protected]165fe422013-03-27 06:34:03192IPC_ENUM_TRAITS(SearchMode::Type)
193IPC_ENUM_TRAITS(SearchMode::Origin)
194IPC_STRUCT_TRAITS_BEGIN(SearchMode)
[email protected]c3917742012-11-21 01:51:14195 IPC_STRUCT_TRAITS_MEMBER(mode)
196 IPC_STRUCT_TRAITS_MEMBER(origin)
197IPC_STRUCT_TRAITS_END()
198
[email protected]4a7a91bd2013-01-10 23:41:04199IPC_STRUCT_TRAITS_BEGIN(nacl::NaClLaunchParams)
200 IPC_STRUCT_TRAITS_MEMBER(manifest_url)
201 IPC_STRUCT_TRAITS_MEMBER(render_view_id)
202 IPC_STRUCT_TRAITS_MEMBER(permission_bits)
[email protected]2e1e6f02013-01-11 18:22:56203 IPC_STRUCT_TRAITS_MEMBER(uses_irt)
[email protected]be524622013-04-23 00:12:19204 IPC_STRUCT_TRAITS_MEMBER(enable_dyncode_syscalls)
[email protected]4a7a91bd2013-01-10 23:41:04205IPC_STRUCT_TRAITS_END()
206
[email protected]edece212011-11-16 11:56:56207IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules)
208 IPC_STRUCT_TRAITS_MEMBER(image_rules)
209 IPC_STRUCT_TRAITS_MEMBER(script_rules)
210IPC_STRUCT_TRAITS_END()
211
[email protected]a6827652012-11-20 23:41:08212IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo)
213 IPC_STRUCT_TRAITS_MEMBER(color_r)
214 IPC_STRUCT_TRAITS_MEMBER(color_g)
215 IPC_STRUCT_TRAITS_MEMBER(color_b)
216 IPC_STRUCT_TRAITS_MEMBER(color_a)
217 IPC_STRUCT_TRAITS_MEMBER(theme_id)
218 IPC_STRUCT_TRAITS_MEMBER(image_horizontal_alignment)
219 IPC_STRUCT_TRAITS_MEMBER(image_vertical_alignment)
220 IPC_STRUCT_TRAITS_MEMBER(image_tiling)
221 IPC_STRUCT_TRAITS_MEMBER(image_height)
[email protected]5189fa12013-03-20 23:00:05222 IPC_STRUCT_TRAITS_MEMBER(has_attribution)
[email protected]a6827652012-11-20 23:41:08223IPC_STRUCT_TRAITS_END()
224
[email protected]fffaf972011-03-24 01:34:35225IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::ResourceTypeStat)
226 IPC_STRUCT_TRAITS_MEMBER(count)
227 IPC_STRUCT_TRAITS_MEMBER(size)
228 IPC_STRUCT_TRAITS_MEMBER(liveSize)
229 IPC_STRUCT_TRAITS_MEMBER(decodedSize)
230IPC_STRUCT_TRAITS_END()
231
232IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::ResourceTypeStats)
233 IPC_STRUCT_TRAITS_MEMBER(images)
234 IPC_STRUCT_TRAITS_MEMBER(cssStyleSheets)
235 IPC_STRUCT_TRAITS_MEMBER(scripts)
236 IPC_STRUCT_TRAITS_MEMBER(xslStyleSheets)
237 IPC_STRUCT_TRAITS_MEMBER(fonts)
238IPC_STRUCT_TRAITS_END()
239
240IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::UsageStats)
241 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity)
242 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity)
243 IPC_STRUCT_TRAITS_MEMBER(capacity)
244 IPC_STRUCT_TRAITS_MEMBER(liveSize)
245 IPC_STRUCT_TRAITS_MEMBER(deadSize)
246IPC_STRUCT_TRAITS_END()
247
[email protected]27eff892013-05-21 16:40:52248IPC_STRUCT_TRAITS_BEGIN(LanguageDetectionDetails)
249 IPC_STRUCT_TRAITS_MEMBER(time)
250 IPC_STRUCT_TRAITS_MEMBER(url)
251 IPC_STRUCT_TRAITS_MEMBER(content_language)
252 IPC_STRUCT_TRAITS_MEMBER(cld_language)
253 IPC_STRUCT_TRAITS_MEMBER(is_cld_reliable)
[email protected]20efbf2f2013-05-31 06:42:37254 IPC_STRUCT_TRAITS_MEMBER(html_root_language)
[email protected]27eff892013-05-21 16:40:52255 IPC_STRUCT_TRAITS_MEMBER(adopted_language)
[email protected]d861d972013-05-30 06:02:31256 IPC_STRUCT_TRAITS_MEMBER(contents)
[email protected]27eff892013-05-21 16:40:52257IPC_STRUCT_TRAITS_END()
258
[email protected]d5a04832011-03-12 21:46:26259//-----------------------------------------------------------------------------
260// RenderView messages
261// These are messages sent from the browser to the renderer process.
262
[email protected]d5a04832011-03-12 21:46:26263// Tells the renderer to set its maximum cache size to the supplied value.
[email protected]2ccf45c2011-08-19 23:35:50264IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities,
[email protected]d5a04832011-03-12 21:46:26265 size_t /* min_dead_capacity */,
266 size_t /* max_dead_capacity */,
267 size_t /* capacity */)
268
269// Tells the renderer to clear the cache.
[email protected]e81d4d72011-09-29 16:54:31270IPC_MESSAGE_CONTROL1(ChromeViewMsg_ClearCache,
271 bool /* on_navigation */)
[email protected]d5a04832011-03-12 21:46:26272
[email protected]55722152011-03-22 01:33:53273// Tells the renderer to dump as much memory as it can, perhaps because we
274// have memory pressure or the renderer is (or will be) paged out. This
275// should only result in purging objects we can recalculate, e.g. caches or
276// JS garbage, not in purging irreplaceable objects.
[email protected]2ccf45c2011-08-19 23:35:50277IPC_MESSAGE_CONTROL0(ChromeViewMsg_PurgeMemory)
[email protected]55722152011-03-22 01:33:53278
[email protected]350019f2011-08-02 04:18:33279// For WebUI testing, this message stores parameters to do ScriptEvalRequest at
280// a time which is late enough to not be thrown out, and early enough to be
281// before onload events are fired.
[email protected]2ccf45c2011-08-19 23:35:50282IPC_MESSAGE_ROUTED4(ChromeViewMsg_WebUIJavaScript,
[email protected]350019f2011-08-02 04:18:33283 string16, /* frame_xpath */
284 string16, /* jscript_url */
285 int, /* ID */
286 bool /* If true, result is sent back. */)
287
[email protected]edece212011-11-16 11:56:56288// Set the content setting rules stored by the renderer.
289IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules,
290 RendererContentSettingRules /* rules */)
[email protected]c14406092011-10-27 13:43:42291
[email protected]51ffaf72012-05-09 21:00:49292// Tells the render view to load all blocked plugins with the given identifier.
293IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins,
294 std::string /* identifier */)
[email protected]d5a04832011-03-12 21:46:26295
[email protected]d5a04832011-03-12 21:46:26296// Asks the renderer to send back stats on the WebCore cache broken down by
297// resource types.
[email protected]2ccf45c2011-08-19 23:35:50298IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats)
[email protected]d5a04832011-03-12 21:46:26299
[email protected]63a8ba12011-04-29 05:42:22300// Tells the renderer to create a FieldTrial, and by using a 100% probability
301// for the FieldTrial, forces the FieldTrial to have assigned group name.
[email protected]2ccf45c2011-08-19 23:35:50302IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup,
[email protected]63a8ba12011-04-29 05:42:22303 std::string /* field trial name */,
304 std::string /* group name that was assigned. */)
305
[email protected]d5a04832011-03-12 21:46:26306// Asks the renderer to send back V8 heap stats.
[email protected]2ccf45c2011-08-19 23:35:50307IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats)
[email protected]d5a04832011-03-12 21:46:26308
[email protected]d5a04832011-03-12 21:46:26309// Posts a message to the renderer.
[email protected]2ccf45c2011-08-19 23:35:50310IPC_MESSAGE_ROUTED3(ChromeViewMsg_HandleMessageFromExternalHost,
[email protected]d5a04832011-03-12 21:46:26311 std::string /* The message */,
312 std::string /* The origin */,
313 std::string /* The target*/)
314
[email protected]2ccf45c2011-08-19 23:35:50315IPC_MESSAGE_ROUTED4(ChromeViewMsg_SearchBoxChange,
[email protected]d5a04832011-03-12 21:46:26316 string16 /* value */,
317 bool /* verbatim */,
[email protected]c55e3b82012-08-09 15:27:05318 size_t /* selection_start */,
319 size_t /* selection_end */)
[email protected]0e7cb682012-08-15 04:04:38320
[email protected]c55e3b82012-08-09 15:27:05321IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSubmit,
322 string16 /* value */)
[email protected]0e7cb682012-08-15 04:04:38323
[email protected]c55e3b82012-08-09 15:27:05324IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxCancel,
325 string16 /* value */)
[email protected]0e7cb682012-08-15 04:04:38326
[email protected]ec4aad542012-12-14 01:11:04327IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPopupResize,
328 gfx::Rect /* bounds */)
329
330IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxMarginChange,
331 int /* start */,
332 int /* end */)
[email protected]0e7cb682012-08-15 04:04:38333
[email protected]5ee671f2013-03-19 11:23:05334IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxBarsHidden)
335
[email protected]c55e3b82012-08-09 15:27:05336IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant)
[email protected]d5a04832011-03-12 21:46:26337
[email protected]0e7cb682012-08-15 04:04:38338IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxAutocompleteResults,
339 std::vector<InstantAutocompleteResult>
340 /* native_suggestions */)
341
[email protected]056793e2012-09-19 00:40:28342IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxUpOrDownKeyPressed,
343 int /* count */)
[email protected]0e7cb682012-08-15 04:04:38344
[email protected]b067bde2013-05-07 03:02:02345IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxEscKeyPressed)
346
[email protected]24ee99a2013-04-03 05:16:56347IPC_MESSAGE_ROUTED4(ChromeViewMsg_SearchBoxCancelSelection,
348 string16 /* value */,
349 bool /* verbatim */,
350 size_t /* selection_start */,
351 size_t /* selection_end */)
[email protected]01b8d6502013-02-15 17:35:55352
[email protected]c3917742012-11-21 01:51:14353IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxModeChanged,
[email protected]165fe422013-03-27 06:34:03354 SearchMode /* mode */)
[email protected]0b10c9ff2012-10-09 17:31:55355
[email protected]d8125852012-11-30 00:47:34356IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetDisplayInstantResults,
357 bool /* display_instant_results */)
358
[email protected]a6827652012-11-20 23:41:08359IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged,
360 ThemeBackgroundInfo /* value */)
361
[email protected]3ff3a452012-12-15 21:45:31362IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFontInformation,
363 string16 /* omnibox_font */,
364 size_t /* omnibox_font_size */)
365
[email protected]8d4c276d2013-05-29 19:39:52366IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFocusChanged,
367 OmniboxFocusState /* new_focus_state */,
368 OmniboxFocusChangeReason /* reason */)
[email protected]6a6811a2012-12-12 04:18:16369
[email protected]e7868c82013-03-12 03:55:56370IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged,
[email protected]ab01dd752013-06-08 05:13:36371 std::vector<InstantMostVisitedItem> /* items */)
[email protected]dfee2f62013-02-22 06:46:06372
[email protected]72238aac32013-06-09 12:58:23373IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem,
374 int /* page_id */,
[email protected]280be992013-06-04 03:19:51375 GURL /* url */)
[email protected]dfee2f62013-02-22 06:46:06376
[email protected]72238aac32013-06-09 12:58:23377IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion,
378 int /* page_id */,
[email protected]280be992013-06-04 03:19:51379 GURL /* url */)
[email protected]dfee2f62013-02-22 06:46:06380
[email protected]72238aac32013-06-09 12:58:23381IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions,
382 int /* page_id */)
[email protected]dfee2f62013-02-22 06:46:06383
[email protected]3473ae02013-06-07 00:28:08384IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch)
385
[email protected]1138cce2011-12-02 21:29:36386// Toggles visual muting of the render view area. This is on when a constrained
387// window is showing.
388IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized,
389 bool /* deemphazied */)
390
[email protected]d5a04832011-03-12 21:46:26391// Tells the renderer to translate the page contents from one language to
392// another.
[email protected]2ccf45c2011-08-19 23:35:50393IPC_MESSAGE_ROUTED4(ChromeViewMsg_TranslatePage,
[email protected]d5a04832011-03-12 21:46:26394 int /* page id */,
395 std::string, /* the script injected in the page */
396 std::string, /* BCP 47/RFC 5646 language code the page
397 is in */
398 std::string /* BCP 47/RFC 5646 language code to translate
399 to */)
400
401// Tells the renderer to revert the text of translated page to its original
402// contents.
[email protected]2ccf45c2011-08-19 23:35:50403IPC_MESSAGE_ROUTED1(ChromeViewMsg_RevertTranslation,
[email protected]d5a04832011-03-12 21:46:26404 int /* page id */)
405
[email protected]d5a04832011-03-12 21:46:26406// Sent on process startup to indicate whether this process is running in
407// incognito mode.
[email protected]2ccf45c2011-08-19 23:35:50408IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess,
[email protected]d5a04832011-03-12 21:46:26409 bool /* is_incognito_processs */)
410
[email protected]24665682013-02-25 20:59:38411// Sent on process startup to indicate whether the extension activity
412// log is enabled.
413IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetExtensionActivityLogEnabled,
414 bool /* extension_activity_log_enabled */)
415
[email protected]68cafdb2011-06-10 21:42:18416// Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent.
[email protected]2ccf45c2011-08-19 23:35:50417IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent,
[email protected]68cafdb2011-06-10 21:42:18418 bool /* allowed */)
419
420// Sent in response to ViewHostMsg_DidBlockRunningInsecureContent.
[email protected]2ccf45c2011-08-19 23:35:50421IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent,
[email protected]68cafdb2011-06-10 21:42:18422 bool /* allowed */)
423
[email protected]92d213842011-11-02 20:09:43424// Tells renderer to always enforce mixed content blocking for this host.
425IPC_MESSAGE_ROUTED1(ChromeViewMsg_AddStrictSecurityHost,
426 std::string /* host */)
427
[email protected]8c40da62011-07-13 22:58:46428// Sent when the profile changes the kSafeBrowsingEnabled preference.
[email protected]2ccf45c2011-08-19 23:35:50429IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection,
[email protected]8c40da62011-07-13 22:58:46430 bool /* enable_phishing_detection */)
431
[email protected]83af80b22011-09-06 18:49:19432// This message asks frame sniffer start.
433IPC_MESSAGE_ROUTED1(ChromeViewMsg_StartFrameSniffer,
434 string16 /* frame-name */)
435
[email protected]9b003482013-05-21 14:00:17436// Notifies the renderer whether hiding/showing the top controls is enabled,
437// what the current state should be, and whether or not to animate to the
438// proper state.
439IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState,
440 content::TopControlsState /* constraints */,
441 content::TopControlsState /* current */,
442 bool /* animate */)
443
[email protected]21d898342011-08-23 18:14:41444// JavaScript related messages -----------------------------------------------
445
446// Notify the JavaScript engine in the render to change its parameters
447// while performing stress testing.
448IPC_MESSAGE_ROUTED2(ChromeViewMsg_JavaScriptStressTestControl,
449 int /* cmd */,
450 int /* param */)
451
[email protected]a1127f82011-09-08 17:27:01452// Asks the renderer to send back FPS.
453IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetFPS)
454
[email protected]6f9f7d82011-12-08 12:13:34455// Tells the view it is displaying an interstitial page.
456IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial)
457
[email protected]7e771bfb2013-01-14 23:23:21458// Provides the renderer with the results of the browser's investigation into
459// why a recent main frame load failed (currently, just DNS probe result).
460// NetErrorHelper will receive this mesage and replace or update the error
461// page with more specific troubleshooting suggestions.
462IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo,
463 int /* DNS probe result */)
464
[email protected]d5a04832011-03-12 21:46:26465//-----------------------------------------------------------------------------
[email protected]63f72132012-04-18 18:02:44466// Misc messages
[email protected]d5a04832011-03-12 21:46:26467// These are messages sent from the renderer to the browser process.
468
[email protected]93b9d692011-04-13 00:44:31469// Provides the contents for the given page that was loaded recently.
[email protected]2ccf45c2011-08-19 23:35:50470IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageContents,
[email protected]93b9d692011-04-13 00:44:31471 GURL /* URL of the page */,
472 int32 /* page id */,
473 string16 /* page contents */)
474
475// Notification that the language for the tab has been determined.
[email protected]2ccf45c2011-08-19 23:35:50476IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_TranslateLanguageDetermined,
[email protected]27eff892013-05-21 16:40:52477 LanguageDetectionDetails /* details about lang detection */,
478 bool /* whether the page needs translation */)
[email protected]93b9d692011-04-13 00:44:31479
[email protected]2ccf45c2011-08-19 23:35:50480IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats,
[email protected]d5a04832011-03-12 21:46:26481 WebKit::WebCache::UsageStats /* stats */)
482
[email protected]d5a04832011-03-12 21:46:26483// Tells the browser that content in the current page was blocked due to the
484// user's content settings.
[email protected]2ccf45c2011-08-19 23:35:50485IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ContentBlocked,
[email protected]d5a04832011-03-12 21:46:26486 ContentSettingsType, /* type of blocked content */
487 std::string /* resource identifier */)
488
[email protected]5327dfb2011-05-03 17:50:36489// Sent by the renderer process to check whether access to web databases is
[email protected]bac33eb2011-05-04 01:47:49490// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50491IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase,
[email protected]9a611a92011-05-07 17:06:18492 int /* render_view_id */,
493 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15494 GURL /* top origin url */,
[email protected]bac33eb2011-05-04 01:47:49495 string16 /* database name */,
496 string16 /* database display name */,
[email protected]8c276642011-05-06 09:41:00497 bool /* allowed */)
[email protected]bac33eb2011-05-04 01:47:49498
499// Sent by the renderer process to check whether access to DOM Storage is
500// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50501IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage,
[email protected]bac33eb2011-05-04 01:47:49502 int /* render_view_id */,
503 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15504 GURL /* top origin url */,
[email protected]c729db82011-11-23 17:37:27505 bool /* if true local storage, otherwise session */,
[email protected]8c276642011-05-06 09:41:00506 bool /* allowed */)
[email protected]5327dfb2011-05-03 17:50:36507
[email protected]45316d62011-05-12 18:15:30508// Sent by the renderer process to check whether access to FileSystem is
509// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50510IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_AllowFileSystem,
[email protected]45316d62011-05-12 18:15:30511 int /* render_view_id */,
512 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15513 GURL /* top origin url */,
[email protected]45316d62011-05-12 18:15:30514 bool /* allowed */)
515
[email protected]9a611a92011-05-07 17:06:18516// Sent by the renderer process to check whether access to Indexed DBis
517// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50518IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB,
[email protected]9a611a92011-05-07 17:06:18519 int /* render_view_id */,
[email protected]c0a45a982011-05-25 16:58:15520 GURL /* origin_url */,
521 GURL /* top origin url */,
[email protected]9a611a92011-05-07 17:06:18522 string16 /* database name */,
523 bool /* allowed */)
[email protected]5327dfb2011-05-03 17:50:36524
[email protected]51b63f62011-10-05 18:55:42525// Return information about a plugin for the given URL and MIME type.
526// In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows
527// about specific reasons why a plug-in can't be used, for example because it's
528// disabled.
[email protected]cd33d282012-09-21 12:53:04529IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo,
[email protected]51b63f62011-10-05 18:55:42530 int /* render_view_id */,
531 GURL /* url */,
532 GURL /* top origin url */,
533 std::string /* mime_type */,
[email protected]cd33d282012-09-21 12:53:04534 ChromeViewHostMsg_GetPluginInfo_Output /* output */)
[email protected]51b63f62011-10-05 18:55:42535
[email protected]43b7eaca2012-01-12 17:27:28536#if defined(ENABLE_PLUGIN_INSTALLATION)
[email protected]1d697f32011-11-28 11:57:51537// Tells the browser to search for a plug-in that can handle the given MIME
538// type. The result will be sent asynchronously to the routing ID
539// |placeholder_id|.
540IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin,
541 int /* placeholder_id */,
542 std::string /* mime_type */)
543
[email protected]3240d2502012-01-26 17:00:33544// Notifies the browser that a missing plug-in placeholder has been removed, so
[email protected]e2424012012-02-03 10:26:50545// the corresponding PluginPlaceholderHost can be deleted.
546IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost,
[email protected]3240d2502012-01-26 17:00:33547 int /* placeholder_id */)
548
[email protected]1d697f32011-11-28 11:57:51549// Notifies a missing plug-in placeholder that a plug-in with name |plugin_name|
550// has been found.
551IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin,
552 string16 /* plugin_name */)
553
554// Notifies a missing plug-in placeholder that no plug-in has been found.
555IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin)
556
[email protected]0dd9e8b2012-01-04 13:36:16557// Notifies a missing plug-in placeholder that we have started downloading
558// the plug-in.
559IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin)
560
561// Notifies a missing plug-in placeholder that we have finished downloading
562// the plug-in.
563IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin)
564
[email protected]725f6882012-01-13 18:50:06565// Notifies a missing plug-in placeholder that there was an error downloading
566// the plug-in.
567IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin,
568 std::string /* message */)
[email protected]4f62d8052012-01-18 16:16:59569#endif // defined(ENABLE_PLUGIN_INSTALLATION)
570
[email protected]1a86f752012-02-10 13:20:36571// Notifies a missing plug-in placeholder that the user cancelled downloading
572// the plug-in.
573IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin)
574
[email protected]4f62d8052012-01-18 16:16:59575// Tells the browser to open chrome://plugins in a new tab. We use a separate
576// message because renderer processes aren't allowed to directly navigate to
577// chrome:// URLs.
578IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins)
[email protected]725f6882012-01-13 18:50:06579
[email protected]cc5f7812012-05-31 13:50:34580// Tells the browser that there was an error loading a plug-in.
581IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin,
[email protected]a7329162013-02-07 19:21:48582 base::FilePath /* plugin_path */)
[email protected]cc5f7812012-05-31 13:50:34583
[email protected]a1199132012-10-26 22:14:41584// Tells the browser that we blocked a plug-in because NPAPI is not supported.
585IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported,
586 std::string /* identifer */)
587
[email protected]cc7b11012013-05-02 22:02:53588// Tells the renderer that the NPAPI cannot be used. For example Ash on windows.
589IPC_MESSAGE_ROUTED0(ChromeViewMsg_NPAPINotSupported)
590
[email protected]d5a04832011-03-12 21:46:26591// A message for an external host.
[email protected]2ccf45c2011-08-19 23:35:50592IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ForwardMessageToExternalHost,
[email protected]d5a04832011-03-12 21:46:26593 std::string /* message */,
594 std::string /* origin */,
595 std::string /* target */)
596
[email protected]d5a04832011-03-12 21:46:26597// A renderer sends this to the browser process when it wants to start
598// a new instance of the Native Client process. The browser will launch
[email protected]17b5a8172012-06-22 21:09:09599// the process and return an IPC channel handle. This handle will only
600// be valid if the NaCl IPC proxy is enabled.
[email protected]4a7a91bd2013-01-10 23:41:04601IPC_SYNC_MESSAGE_CONTROL1_4(ChromeViewHostMsg_LaunchNaCl,
602 nacl::NaClLaunchParams /* launch_params */,
[email protected]6294dd02013-01-09 17:27:23603 nacl::FileDescriptor /* imc channel handle */,
[email protected]2b7197b2012-10-23 21:54:42604 IPC::ChannelHandle /* ipc_channel_handle */,
[email protected]108fd342013-01-04 20:46:54605 base::ProcessId /* plugin_pid */,
[email protected]2b7197b2012-10-23 21:54:42606 int /* plugin_child_id */)
[email protected]d5a04832011-03-12 21:46:26607
[email protected]9a807152012-07-30 17:13:01608// A renderer sends this to the browser process when it wants to
[email protected]1787bb42012-07-23 22:26:50609// open a file for from the Pnacl component directory.
610IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetReadonlyPnaclFD,
611 std::string /* name of requested PNaCl file */,
612 IPC::PlatformFileForTransit /* output file */)
613
[email protected]9a807152012-07-30 17:13:01614// A renderer sends this to the browser process when it wants to
615// create a temporary file.
616IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_NaClCreateTemporaryFile,
617 IPC::PlatformFileForTransit /* out file */)
618
[email protected]923c1162012-12-14 10:07:46619// A renderer sends this to the browser process to display infobar
620IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_NaClErrorStatus,
621 int /* render_view_id */,
622 int /* Error ID */)
623
[email protected]96e6a5f2013-04-23 22:32:35624// A renderer sends this to the browser process when it wants to
625// open a NaCl executable file from an installed application directory.
[email protected]041834522013-05-29 00:19:27626IPC_SYNC_MESSAGE_CONTROL2_3(ChromeViewHostMsg_OpenNaClExecutable,
[email protected]96e6a5f2013-04-23 22:32:35627 int /* render_view_id */,
628 GURL /* URL of NaCl executable file */,
[email protected]041834522013-05-29 00:19:27629 IPC::PlatformFileForTransit /* output file */,
630 uint64_t /* file_token_lo */,
631 uint64_t /* file_token_hi */)
[email protected]96e6a5f2013-04-23 22:32:35632
[email protected]d5a04832011-03-12 21:46:26633// Notification that the page has an OpenSearch description document
634// associated with it.
[email protected]2ccf45c2011-08-19 23:35:50635IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD,
[email protected]d5a04832011-03-12 21:46:26636 int32 /* page_id */,
637 GURL /* url of OS description document */,
[email protected]c08e7932011-03-29 04:08:14638 search_provider::OSDDType)
[email protected]d5a04832011-03-12 21:46:26639
640// Find out if the given url's security origin is installed as a search
641// provider.
[email protected]2ccf45c2011-08-19 23:35:50642IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState,
[email protected]c08e7932011-03-29 04:08:14643 GURL /* page url */,
644 GURL /* inquiry url */,
645 search_provider::InstallState /* install */)
[email protected]d5a04832011-03-12 21:46:26646
[email protected]d5a04832011-03-12 21:46:26647// Sends back stats about the V8 heap.
[email protected]2ccf45c2011-08-19 23:35:50648IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats,
[email protected]d5a04832011-03-12 21:46:26649 int /* size of heap (allocated from the OS) */,
650 int /* bytes in use */)
651
652// Request for a DNS prefetch of the names in the array.
653// NameList is typedef'ed std::vector<std::string>
[email protected]2ccf45c2011-08-19 23:35:50654IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_DnsPrefetch,
[email protected]2bf2bd92011-03-31 07:12:44655 std::vector<std::string> /* hostnames */)
[email protected]d5a04832011-03-12 21:46:26656
[email protected]b1e7562d2013-05-27 05:47:53657// Request for preconnect to host providing resource specified by URL
658IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_Preconnect,
659 GURL /* preconnect target url */)
660
[email protected]d5a04832011-03-12 21:46:26661// Notifies when a plugin couldn't be loaded because it's outdated.
[email protected]2ccf45c2011-08-19 23:35:50662IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin,
[email protected]27c483892012-02-09 15:59:10663 int /* placeholder ID */,
664 std::string /* plug-in group identifier */)
[email protected]d5a04832011-03-12 21:46:26665
[email protected]e2424012012-02-03 10:26:50666// Notifies when a plugin couldn't be loaded because it requires
667// user authorization.
[email protected]51ffaf72012-05-09 21:00:49668IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin,
669 string16 /* name */,
670 std::string /* plug-in group identifier */)
[email protected]e2424012012-02-03 10:26:50671
[email protected]d5a04832011-03-12 21:46:26672// Provide the browser process with information about the WebCore resource
[email protected]872ae5b2011-05-26 20:20:50673// cache and current renderer framerate.
[email protected]2ccf45c2011-08-19 23:35:50674IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats,
[email protected]d5a04832011-03-12 21:46:26675 WebKit::WebCache::ResourceTypeStats)
676
[email protected]d5a04832011-03-12 21:46:26677// Notifies the browser that a page has been translated.
[email protected]2ccf45c2011-08-19 23:35:50678IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_PageTranslated,
[email protected]d5a04832011-03-12 21:46:26679 int, /* page id */
680 std::string /* the original language */,
681 std::string /* the translated language */,
682 TranslateErrors::Type /* the error type if available */)
683
[email protected]16e923d2011-04-30 00:41:44684// Message sent from the renderer to the browser to notify it of events which
685// may lead to the cancellation of a prerender. The message is sent only when
686// the renderer is prerendering.
[email protected]2ccf45c2011-08-19 23:35:50687IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_MaybeCancelPrerenderForHTML5Media)
[email protected]16e923d2011-04-30 00:41:44688
[email protected]4c94b8c2011-05-17 16:17:45689// Message sent from the renderer to the browser to notify it of a
690// window.print() call which should cancel the prerender. The message is sent
691// only when the renderer is prerendering.
[email protected]2ccf45c2011-08-19 23:35:50692IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting)
[email protected]4c94b8c2011-05-17 16:17:45693
[email protected]ab2eb9f2011-05-03 23:02:37694// Sent by the renderer to check if a URL has permission to trigger a clipboard
695// read/write operation from the DOM.
[email protected]2ccf45c2011-08-19 23:35:50696IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_CanTriggerClipboardRead,
[email protected]34eec7ffe32011-11-02 23:49:02697 GURL /* origin */,
[email protected]ab2eb9f2011-05-03 23:02:37698 bool /* allowed */)
[email protected]2ccf45c2011-08-19 23:35:50699IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_CanTriggerClipboardWrite,
[email protected]34eec7ffe32011-11-02 23:49:02700 GURL /* origin */,
[email protected]ab2eb9f2011-05-03 23:02:37701 bool /* allowed */)
702
[email protected]68cafdb2011-06-10 21:42:18703// Sent when the renderer was prevented from displaying insecure content in
704// a secure page by a security policy. The page may appear incomplete.
[email protected]2ccf45c2011-08-19 23:35:50705IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent)
[email protected]68cafdb2011-06-10 21:42:18706
707// Sent when the renderer was prevented from running insecure content in
708// a secure origin by a security policy. The page may appear incomplete.
[email protected]2ccf45c2011-08-19 23:35:50709IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent)
[email protected]68cafdb2011-06-10 21:42:18710
[email protected]2d0f2e92011-10-03 09:02:24711// Message sent from renderer to the browser when the element that is focused
[email protected]e15ad752012-12-21 19:12:02712// has been touched. A bool is passed in this message which indicates if the
713// node is editable.
714IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FocusedNodeTouched,
715 bool /* editable */)
[email protected]2d0f2e92011-10-03 09:02:24716
[email protected]d5a04832011-03-12 21:46:26717// Suggest results -----------------------------------------------------------
718
[email protected]10f588e32013-03-15 22:34:55719// Sent by Instant to populate the omnibox with query or URL suggestions.
[email protected]0e7cb682012-08-15 04:04:38720IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetSuggestions,
[email protected]c55e3b82012-08-09 15:27:05721 int /* page_id */,
[email protected]0e7cb682012-08-15 04:04:38722 std::vector<InstantSuggestion> /* suggestions */)
[email protected]d5a04832011-03-12 21:46:26723
[email protected]74a237fb2013-02-15 04:17:18724// Sent by Instant to indicate whether the page supports the Instant API
725// (http://dev.chromium.org/searchbox).
[email protected]2ccf45c2011-08-19 23:35:50726IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined,
[email protected]c55e3b82012-08-09 15:27:05727 int /* page_id */,
728 bool /* result */)
[email protected]d5a04832011-03-12 21:46:26729
[email protected]63bd68642013-05-13 23:02:55730IPC_MESSAGE_ROUTED5(ChromeViewHostMsg_SearchBoxNavigate,
[email protected]e3033eb2012-12-13 23:46:08731 int /* page_id */,
732 GURL /* destination */,
[email protected]3c3acca2013-02-26 03:07:07733 content::PageTransition /* transition */,
[email protected]63bd68642013-05-13 23:02:55734 WindowOpenDisposition /* disposition */,
735 bool /* is_search_type */)
[email protected]e3033eb2012-12-13 23:46:08736
[email protected]74a237fb2013-02-15 04:17:18737// Sent by the Instant overlay asking to show itself with the given height.
[email protected]2b1625112013-03-16 18:58:29738IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ShowInstantOverlay,
[email protected]0e7cb682012-08-15 04:04:38739 int /* page_id */,
740 int /* height */,
741 InstantSizeUnits /* units */)
742
[email protected]10aec592013-03-06 20:19:00743// Sent by Instant to focus the omnibox.
[email protected]ca98bd32013-04-09 05:16:05744IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FocusOmnibox,
745 int /* page_id */,
746 OmniboxFocusState /* state */)
[email protected]10aec592013-03-06 20:19:00747
[email protected]5ee671f2013-03-19 11:23:05748// Sent by Instant to show any attached bars.
749IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxShowBars,
750 int /* page_id */)
751
752// Sent by Instant to hide any attached bars.
753IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxHideBars,
754 int /* page_id */)
755
[email protected]21d898342011-08-23 18:14:41756// The currently displayed PDF has an unsupported feature.
757IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature)
[email protected]d5a04832011-03-12 21:46:26758
[email protected]83af80b22011-09-06 18:49:19759// This message indicates the error appeared in the frame.
760IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError,
761 int /* error */)
762
[email protected]ebce9522011-10-27 19:17:17763// This message indicates the monitored frame loading had completed.
764IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted)
765
[email protected]6a3eede2011-08-29 23:48:05766// The following messages are used to set and get cookies for ChromeFrame
767// processes.
768// Used to set a cookie. The cookie is set asynchronously, but will be
769// available to a subsequent ChromeViewHostMsg_GetCookies request.
770IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SetCookie,
771 GURL /* url */,
772 GURL /* first_party_for_cookies */,
773 std::string /* cookie */)
774
775// Used to get cookies for the given URL. This may block waiting for a
776// previous SetCookie message to be processed.
777IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies,
778 GURL /* url */,
779 GURL /* first_party_for_cookies */,
780 std::string /* cookies */)
[email protected]a1127f82011-09-08 17:27:01781
782// Provide the browser process with current renderer framerate.
783IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS,
784 int /* routing id */,
785 float /* frames per second */)