blob: 584d9a7ee14b4541758c0ff31c7ce00a43dbc087 [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]27eff892013-05-21 16:40:5223#include "chrome/common/language_detection_details.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]152b8ba32010-03-29 19:40:1628#include "chrome/common/translate_errors.h"
[email protected]19a5c7442011-10-21 20:00:4129#include "content/public/common/common_param_traits.h"
[email protected]9b003482013-05-21 14:00:1730#include "content/public/common/top_controls_state.h"
[email protected]17b5a8172012-06-22 21:09:0931#include "ipc/ipc_channel_handle.h"
[email protected]d5a04832011-03-12 21:46:2632#include "ipc/ipc_message_macros.h"
[email protected]e7f009d2011-06-14 19:35:1033#include "ipc/ipc_platform_file.h"
[email protected]1d4ecf42011-08-26 21:27:3034#include "third_party/skia/include/core/SkBitmap.h"
[email protected]fffaf972011-03-24 01:34:3535#include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h"
[email protected]fffaf972011-03-24 01:34:3536#include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h"
[email protected]3c3acca2013-02-26 03:07:0737#include "ui/base/window_open_disposition.h"
[email protected]d5a04832011-03-12 21:46:2638#include "ui/gfx/rect.h"
[email protected]7a4de7a62010-08-17 18:38:2439
[email protected]44c49c92011-03-28 16:17:2340// Singly-included section for enums and custom IPC traits.
[email protected]d5a04832011-03-12 21:46:2641#ifndef CHROME_COMMON_RENDER_MESSAGES_H_
42#define CHROME_COMMON_RENDER_MESSAGES_H_
[email protected]049eec22010-10-20 21:32:5243
[email protected]992db4c2011-05-12 15:37:1544class SkBitmap;
45
[email protected]a6097f42011-01-10 08:50:5146// Command values for the cmd parameter of the
47// ViewHost_JavaScriptStressTestControl message. For each command the parameter
48// passed has a different meaning:
49// For the command kJavaScriptStressTestSetStressRunType the parameter it the
50// type taken from the enumeration v8::Testing::StressType.
51// For the command kJavaScriptStressTestPrepareStressRun the parameter it the
52// number of the stress run about to take place.
53enum ViewHostMsg_JavaScriptStressTestControl_Commands {
54 kJavaScriptStressTestSetStressRunType = 0,
55 kJavaScriptStressTestPrepareStressRun = 1,
56};
57
[email protected]51b63f62011-10-05 18:55:4258// This enum is inside a struct so that we can forward-declare the struct in
59// others headers without having to include this one.
60struct ChromeViewHostMsg_GetPluginInfo_Status {
[email protected]51b63f62011-10-05 18:55:4261 enum Value {
62 kAllowed,
[email protected]8aa7a412011-11-07 12:33:4263 kBlocked,
64 kClickToPlay,
[email protected]51b63f62011-10-05 18:55:4265 kDisabled,
66 kNotFound,
[email protected]a1199132012-10-26 22:14:4167 kNPAPINotSupported,
[email protected]8aa7a412011-11-07 12:33:4268 kOutdatedBlocked,
69 kOutdatedDisallowed,
70 kUnauthorized,
[email protected]51b63f62011-10-05 18:55:4271 };
72
73 ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed) {}
74
75 Value value;
76};
77
[email protected]7d5c3ac2009-02-04 08:58:1978namespace IPC {
79
[email protected]9c7453d2012-01-21 00:45:4080#if defined(OS_POSIX) && !defined(USE_AURA) && !defined(OS_ANDROID)
[email protected]661eb9d2009-02-03 02:11:4881
82// TODO(port): this shouldn't exist. However, the plugin stuff is really using
83// HWNDS (NativeView), and making Windows calls based on them. I've not figured
84// out the deal with plugins yet.
[email protected]9c7453d2012-01-21 00:45:4085// TODO(android): a gfx::NativeView is the same as a gfx::NativeWindow.
[email protected]661eb9d2009-02-03 02:11:4886template <>
87struct ParamTraits<gfx::NativeView> {
88 typedef gfx::NativeView param_type;
[email protected]7d5c3ac2009-02-04 08:58:1989 static void Write(Message* m, const param_type& p) {
[email protected]661eb9d2009-02-03 02:11:4890 NOTIMPLEMENTED();
91 }
92
[email protected]ce208f872012-03-07 20:42:5693 static bool Read(const Message* m, PickleIterator* iter, param_type* p) {
[email protected]661eb9d2009-02-03 02:11:4894 NOTIMPLEMENTED();
95 *p = NULL;
96 return true;
97 }
98
[email protected]252cad62010-08-18 18:33:5799 static void Log(const param_type& p, std::string* l) {
[email protected]93f10522010-10-31 16:27:48100 l->append(base::StringPrintf("<gfx::NativeView>"));
[email protected]661eb9d2009-02-03 02:11:48101 }
102};
103
[email protected]9c7453d2012-01-21 00:45:40104#endif // defined(OS_POSIX) && !defined(USE_AURA) && !defined(OS_ANDROID)
[email protected]661eb9d2009-02-03 02:11:48105
[email protected]7b291f92009-08-14 05:43:53106template <>
[email protected]610ca832011-10-19 12:59:20107struct ParamTraits<ContentSettingsPattern> {
108 typedef ContentSettingsPattern param_type;
109 static void Write(Message* m, const param_type& p);
[email protected]ce208f872012-03-07 20:42:56110 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
[email protected]610ca832011-10-19 12:59:20111 static void Log(const param_type& p, std::string* l);
112};
113
[email protected]b3df5a42010-05-11 14:31:09114} // namespace IPC
[email protected]9f4db512010-05-10 20:21:41115
[email protected]5a52f162008-08-27 04:15:31116#endif // CHROME_COMMON_RENDER_MESSAGES_H_
[email protected]d5a04832011-03-12 21:46:26117
[email protected]778574e2011-03-21 22:03:50118#define IPC_MESSAGE_START ChromeMsgStart
[email protected]d5a04832011-03-12 21:46:26119
[email protected]51b63f62011-10-05 18:55:42120IPC_ENUM_TRAITS(ChromeViewHostMsg_GetPluginInfo_Status::Value)
[email protected]fffaf972011-03-24 01:34:35121IPC_ENUM_TRAITS(InstantCompleteBehavior)
[email protected]0e7cb682012-08-15 04:04:38122IPC_ENUM_TRAITS(InstantSizeUnits)
123IPC_ENUM_TRAITS(InstantSuggestionType)
[email protected]ca98bd32013-04-09 05:16:05124IPC_ENUM_TRAITS(OmniboxFocusState)
[email protected]c08e7932011-03-29 04:08:14125IPC_ENUM_TRAITS(search_provider::OSDDType)
126IPC_ENUM_TRAITS(search_provider::InstallState)
[email protected]a6827652012-11-20 23:41:08127IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment)
128IPC_ENUM_TRAITS(ThemeBackgroundImageTiling)
[email protected]fffaf972011-03-24 01:34:35129IPC_ENUM_TRAITS(TranslateErrors::Type)
[email protected]fffaf972011-03-24 01:34:35130IPC_ENUM_TRAITS(WebKit::WebConsoleMessage::Level)
[email protected]9b003482013-05-21 14:00:17131IPC_ENUM_TRAITS(content::TopControlsState)
[email protected]fffaf972011-03-24 01:34:35132
[email protected]51b63f62011-10-05 18:55:42133IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status)
134IPC_STRUCT_TRAITS_MEMBER(value)
135IPC_STRUCT_TRAITS_END()
136
[email protected]cd33d282012-09-21 12:53:04137// Output parameters for ChromeViewHostMsg_GetPluginInfo message.
138IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output)
139 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status)
140 IPC_STRUCT_MEMBER(webkit::WebPluginInfo, plugin)
141 IPC_STRUCT_MEMBER(std::string, actual_mime_type)
142 IPC_STRUCT_MEMBER(std::string, group_identifier)
143 IPC_STRUCT_MEMBER(string16, group_name)
144IPC_STRUCT_END()
145
[email protected]610ca832011-10-19 12:59:20146IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts)
147 IPC_STRUCT_TRAITS_MEMBER(scheme)
148 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard)
149 IPC_STRUCT_TRAITS_MEMBER(host)
150 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard)
151 IPC_STRUCT_TRAITS_MEMBER(port)
152 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard)
153 IPC_STRUCT_TRAITS_MEMBER(path)
[email protected]ae689aab2012-01-23 17:52:08154 IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard)
[email protected]610ca832011-10-19 12:59:20155IPC_STRUCT_TRAITS_END()
156
[email protected]c14406092011-10-27 13:43:42157IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource)
158 IPC_STRUCT_TRAITS_MEMBER(primary_pattern)
159 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern)
160 IPC_STRUCT_TRAITS_MEMBER(setting)
161 IPC_STRUCT_TRAITS_MEMBER(source)
162 IPC_STRUCT_TRAITS_MEMBER(incognito)
163IPC_STRUCT_TRAITS_END()
164
[email protected]0e7cb682012-08-15 04:04:38165IPC_STRUCT_TRAITS_BEGIN(InstantAutocompleteResult)
166 IPC_STRUCT_TRAITS_MEMBER(provider)
[email protected]6dcd25762012-11-14 05:31:51167 IPC_STRUCT_TRAITS_MEMBER(type)
168 IPC_STRUCT_TRAITS_MEMBER(description)
[email protected]0e7cb682012-08-15 04:04:38169 IPC_STRUCT_TRAITS_MEMBER(destination_url)
[email protected]6bc88f572013-03-24 20:28:09170 IPC_STRUCT_TRAITS_MEMBER(search_query)
[email protected]404b65f2012-12-18 00:52:07171 IPC_STRUCT_TRAITS_MEMBER(transition)
[email protected]0e7cb682012-08-15 04:04:38172 IPC_STRUCT_TRAITS_MEMBER(relevance)
[email protected]2485c8122013-05-07 03:17:52173 IPC_STRUCT_TRAITS_MEMBER(autocomplete_match_index)
[email protected]0e7cb682012-08-15 04:04:38174IPC_STRUCT_TRAITS_END()
175
[email protected]e7868c82013-03-12 03:55:56176IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem)
[email protected]dfee2f62013-02-22 06:46:06177 IPC_STRUCT_TRAITS_MEMBER(url)
178 IPC_STRUCT_TRAITS_MEMBER(title)
179IPC_STRUCT_TRAITS_END()
180
[email protected]0e7cb682012-08-15 04:04:38181IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion)
182 IPC_STRUCT_TRAITS_MEMBER(text)
183 IPC_STRUCT_TRAITS_MEMBER(behavior)
184 IPC_STRUCT_TRAITS_MEMBER(type)
[email protected]10f588e32013-03-15 22:34:55185 IPC_STRUCT_TRAITS_MEMBER(query)
[email protected]2485c8122013-05-07 03:17:52186 IPC_STRUCT_TRAITS_MEMBER(autocomplete_match_index)
[email protected]0e7cb682012-08-15 04:04:38187IPC_STRUCT_TRAITS_END()
188
[email protected]165fe422013-03-27 06:34:03189IPC_ENUM_TRAITS(SearchMode::Type)
190IPC_ENUM_TRAITS(SearchMode::Origin)
191IPC_STRUCT_TRAITS_BEGIN(SearchMode)
[email protected]c3917742012-11-21 01:51:14192 IPC_STRUCT_TRAITS_MEMBER(mode)
193 IPC_STRUCT_TRAITS_MEMBER(origin)
194IPC_STRUCT_TRAITS_END()
195
[email protected]4a7a91bd2013-01-10 23:41:04196IPC_STRUCT_TRAITS_BEGIN(nacl::NaClLaunchParams)
197 IPC_STRUCT_TRAITS_MEMBER(manifest_url)
198 IPC_STRUCT_TRAITS_MEMBER(render_view_id)
199 IPC_STRUCT_TRAITS_MEMBER(permission_bits)
[email protected]2e1e6f02013-01-11 18:22:56200 IPC_STRUCT_TRAITS_MEMBER(uses_irt)
[email protected]be524622013-04-23 00:12:19201 IPC_STRUCT_TRAITS_MEMBER(enable_dyncode_syscalls)
[email protected]4a7a91bd2013-01-10 23:41:04202IPC_STRUCT_TRAITS_END()
203
[email protected]edece212011-11-16 11:56:56204IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules)
205 IPC_STRUCT_TRAITS_MEMBER(image_rules)
206 IPC_STRUCT_TRAITS_MEMBER(script_rules)
207IPC_STRUCT_TRAITS_END()
208
[email protected]a6827652012-11-20 23:41:08209IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo)
210 IPC_STRUCT_TRAITS_MEMBER(color_r)
211 IPC_STRUCT_TRAITS_MEMBER(color_g)
212 IPC_STRUCT_TRAITS_MEMBER(color_b)
213 IPC_STRUCT_TRAITS_MEMBER(color_a)
214 IPC_STRUCT_TRAITS_MEMBER(theme_id)
215 IPC_STRUCT_TRAITS_MEMBER(image_horizontal_alignment)
216 IPC_STRUCT_TRAITS_MEMBER(image_vertical_alignment)
217 IPC_STRUCT_TRAITS_MEMBER(image_tiling)
218 IPC_STRUCT_TRAITS_MEMBER(image_height)
[email protected]5189fa12013-03-20 23:00:05219 IPC_STRUCT_TRAITS_MEMBER(has_attribution)
[email protected]a6827652012-11-20 23:41:08220IPC_STRUCT_TRAITS_END()
221
[email protected]fffaf972011-03-24 01:34:35222IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::ResourceTypeStat)
223 IPC_STRUCT_TRAITS_MEMBER(count)
224 IPC_STRUCT_TRAITS_MEMBER(size)
225 IPC_STRUCT_TRAITS_MEMBER(liveSize)
226 IPC_STRUCT_TRAITS_MEMBER(decodedSize)
227IPC_STRUCT_TRAITS_END()
228
229IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::ResourceTypeStats)
230 IPC_STRUCT_TRAITS_MEMBER(images)
231 IPC_STRUCT_TRAITS_MEMBER(cssStyleSheets)
232 IPC_STRUCT_TRAITS_MEMBER(scripts)
233 IPC_STRUCT_TRAITS_MEMBER(xslStyleSheets)
234 IPC_STRUCT_TRAITS_MEMBER(fonts)
235IPC_STRUCT_TRAITS_END()
236
237IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::UsageStats)
238 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity)
239 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity)
240 IPC_STRUCT_TRAITS_MEMBER(capacity)
241 IPC_STRUCT_TRAITS_MEMBER(liveSize)
242 IPC_STRUCT_TRAITS_MEMBER(deadSize)
243IPC_STRUCT_TRAITS_END()
244
[email protected]27eff892013-05-21 16:40:52245IPC_STRUCT_TRAITS_BEGIN(LanguageDetectionDetails)
246 IPC_STRUCT_TRAITS_MEMBER(time)
247 IPC_STRUCT_TRAITS_MEMBER(url)
248 IPC_STRUCT_TRAITS_MEMBER(content_language)
249 IPC_STRUCT_TRAITS_MEMBER(cld_language)
250 IPC_STRUCT_TRAITS_MEMBER(is_cld_reliable)
251 IPC_STRUCT_TRAITS_MEMBER(adopted_language)
252IPC_STRUCT_TRAITS_END()
253
[email protected]d5a04832011-03-12 21:46:26254//-----------------------------------------------------------------------------
255// RenderView messages
256// These are messages sent from the browser to the renderer process.
257
[email protected]d5a04832011-03-12 21:46:26258// Tells the renderer to set its maximum cache size to the supplied value.
[email protected]2ccf45c2011-08-19 23:35:50259IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities,
[email protected]d5a04832011-03-12 21:46:26260 size_t /* min_dead_capacity */,
261 size_t /* max_dead_capacity */,
262 size_t /* capacity */)
263
264// Tells the renderer to clear the cache.
[email protected]e81d4d72011-09-29 16:54:31265IPC_MESSAGE_CONTROL1(ChromeViewMsg_ClearCache,
266 bool /* on_navigation */)
[email protected]d5a04832011-03-12 21:46:26267
[email protected]55722152011-03-22 01:33:53268// Tells the renderer to dump as much memory as it can, perhaps because we
269// have memory pressure or the renderer is (or will be) paged out. This
270// should only result in purging objects we can recalculate, e.g. caches or
271// JS garbage, not in purging irreplaceable objects.
[email protected]2ccf45c2011-08-19 23:35:50272IPC_MESSAGE_CONTROL0(ChromeViewMsg_PurgeMemory)
[email protected]55722152011-03-22 01:33:53273
[email protected]350019f2011-08-02 04:18:33274// For WebUI testing, this message stores parameters to do ScriptEvalRequest at
275// a time which is late enough to not be thrown out, and early enough to be
276// before onload events are fired.
[email protected]2ccf45c2011-08-19 23:35:50277IPC_MESSAGE_ROUTED4(ChromeViewMsg_WebUIJavaScript,
[email protected]350019f2011-08-02 04:18:33278 string16, /* frame_xpath */
279 string16, /* jscript_url */
280 int, /* ID */
281 bool /* If true, result is sent back. */)
282
[email protected]edece212011-11-16 11:56:56283// Set the content setting rules stored by the renderer.
284IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules,
285 RendererContentSettingRules /* rules */)
[email protected]c14406092011-10-27 13:43:42286
[email protected]51ffaf72012-05-09 21:00:49287// Tells the render view to load all blocked plugins with the given identifier.
288IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins,
289 std::string /* identifier */)
[email protected]d5a04832011-03-12 21:46:26290
[email protected]d5a04832011-03-12 21:46:26291// Asks the renderer to send back stats on the WebCore cache broken down by
292// resource types.
[email protected]2ccf45c2011-08-19 23:35:50293IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats)
[email protected]d5a04832011-03-12 21:46:26294
[email protected]63a8ba12011-04-29 05:42:22295// Tells the renderer to create a FieldTrial, and by using a 100% probability
296// for the FieldTrial, forces the FieldTrial to have assigned group name.
[email protected]2ccf45c2011-08-19 23:35:50297IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup,
[email protected]63a8ba12011-04-29 05:42:22298 std::string /* field trial name */,
299 std::string /* group name that was assigned. */)
300
[email protected]d5a04832011-03-12 21:46:26301// Asks the renderer to send back V8 heap stats.
[email protected]2ccf45c2011-08-19 23:35:50302IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats)
[email protected]d5a04832011-03-12 21:46:26303
[email protected]d5a04832011-03-12 21:46:26304// Posts a message to the renderer.
[email protected]2ccf45c2011-08-19 23:35:50305IPC_MESSAGE_ROUTED3(ChromeViewMsg_HandleMessageFromExternalHost,
[email protected]d5a04832011-03-12 21:46:26306 std::string /* The message */,
307 std::string /* The origin */,
308 std::string /* The target*/)
309
[email protected]2ccf45c2011-08-19 23:35:50310IPC_MESSAGE_ROUTED4(ChromeViewMsg_SearchBoxChange,
[email protected]d5a04832011-03-12 21:46:26311 string16 /* value */,
312 bool /* verbatim */,
[email protected]c55e3b82012-08-09 15:27:05313 size_t /* selection_start */,
314 size_t /* selection_end */)
[email protected]0e7cb682012-08-15 04:04:38315
[email protected]c55e3b82012-08-09 15:27:05316IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSubmit,
317 string16 /* value */)
[email protected]0e7cb682012-08-15 04:04:38318
[email protected]c55e3b82012-08-09 15:27:05319IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxCancel,
320 string16 /* value */)
[email protected]0e7cb682012-08-15 04:04:38321
[email protected]ec4aad542012-12-14 01:11:04322IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPopupResize,
323 gfx::Rect /* bounds */)
324
325IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxMarginChange,
326 int /* start */,
327 int /* end */)
[email protected]0e7cb682012-08-15 04:04:38328
[email protected]5ee671f2013-03-19 11:23:05329IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxBarsHidden)
330
[email protected]c55e3b82012-08-09 15:27:05331IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant)
[email protected]d5a04832011-03-12 21:46:26332
[email protected]0e7cb682012-08-15 04:04:38333IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxAutocompleteResults,
334 std::vector<InstantAutocompleteResult>
335 /* native_suggestions */)
336
[email protected]056793e2012-09-19 00:40:28337IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxUpOrDownKeyPressed,
338 int /* count */)
[email protected]0e7cb682012-08-15 04:04:38339
[email protected]b067bde2013-05-07 03:02:02340IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxEscKeyPressed)
341
[email protected]24ee99a2013-04-03 05:16:56342IPC_MESSAGE_ROUTED4(ChromeViewMsg_SearchBoxCancelSelection,
343 string16 /* value */,
344 bool /* verbatim */,
345 size_t /* selection_start */,
346 size_t /* selection_end */)
[email protected]01b8d6502013-02-15 17:35:55347
[email protected]c3917742012-11-21 01:51:14348IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxModeChanged,
[email protected]165fe422013-03-27 06:34:03349 SearchMode /* mode */)
[email protected]0b10c9ff2012-10-09 17:31:55350
[email protected]d8125852012-11-30 00:47:34351IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetDisplayInstantResults,
352 bool /* display_instant_results */)
353
[email protected]a6827652012-11-20 23:41:08354IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged,
355 ThemeBackgroundInfo /* value */)
356
[email protected]3ff3a452012-12-15 21:45:31357IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFontInformation,
358 string16 /* omnibox_font */,
359 size_t /* omnibox_font_size */)
360
[email protected]6a6811a2012-12-12 04:18:16361IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxKeyCaptureChanged,
362 bool /* is_key_capture_enabled */)
363
[email protected]e7868c82013-03-12 03:55:56364IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged,
[email protected]8b169b4b2013-03-23 18:24:46365 std::vector<InstantMostVisitedItemIDPair> /* items */)
[email protected]dfee2f62013-02-22 06:46:06366
[email protected]e7868c82013-03-12 03:55:56367IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem,
[email protected]8b169b4b2013-03-23 18:24:46368 InstantRestrictedID /* most_visited_item_id */)
[email protected]dfee2f62013-02-22 06:46:06369
[email protected]e7868c82013-03-12 03:55:56370IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion,
[email protected]8b169b4b2013-03-23 18:24:46371 InstantRestrictedID /* most_visited_item_id */)
[email protected]dfee2f62013-02-22 06:46:06372
[email protected]e7868c82013-03-12 03:55:56373IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions)
[email protected]dfee2f62013-02-22 06:46:06374
[email protected]1138cce2011-12-02 21:29:36375// Toggles visual muting of the render view area. This is on when a constrained
376// window is showing.
377IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized,
378 bool /* deemphazied */)
379
[email protected]d5a04832011-03-12 21:46:26380// Tells the renderer to translate the page contents from one language to
381// another.
[email protected]2ccf45c2011-08-19 23:35:50382IPC_MESSAGE_ROUTED4(ChromeViewMsg_TranslatePage,
[email protected]d5a04832011-03-12 21:46:26383 int /* page id */,
384 std::string, /* the script injected in the page */
385 std::string, /* BCP 47/RFC 5646 language code the page
386 is in */
387 std::string /* BCP 47/RFC 5646 language code to translate
388 to */)
389
390// Tells the renderer to revert the text of translated page to its original
391// contents.
[email protected]2ccf45c2011-08-19 23:35:50392IPC_MESSAGE_ROUTED1(ChromeViewMsg_RevertTranslation,
[email protected]d5a04832011-03-12 21:46:26393 int /* page id */)
394
[email protected]d5a04832011-03-12 21:46:26395// Sent on process startup to indicate whether this process is running in
396// incognito mode.
[email protected]2ccf45c2011-08-19 23:35:50397IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess,
[email protected]d5a04832011-03-12 21:46:26398 bool /* is_incognito_processs */)
399
[email protected]24665682013-02-25 20:59:38400// Sent on process startup to indicate whether the extension activity
401// log is enabled.
402IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetExtensionActivityLogEnabled,
403 bool /* extension_activity_log_enabled */)
404
[email protected]68cafdb2011-06-10 21:42:18405// Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent.
[email protected]2ccf45c2011-08-19 23:35:50406IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent,
[email protected]68cafdb2011-06-10 21:42:18407 bool /* allowed */)
408
409// Sent in response to ViewHostMsg_DidBlockRunningInsecureContent.
[email protected]2ccf45c2011-08-19 23:35:50410IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent,
[email protected]68cafdb2011-06-10 21:42:18411 bool /* allowed */)
412
[email protected]92d213842011-11-02 20:09:43413// Tells renderer to always enforce mixed content blocking for this host.
414IPC_MESSAGE_ROUTED1(ChromeViewMsg_AddStrictSecurityHost,
415 std::string /* host */)
416
[email protected]8c40da62011-07-13 22:58:46417// Sent when the profile changes the kSafeBrowsingEnabled preference.
[email protected]2ccf45c2011-08-19 23:35:50418IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection,
[email protected]8c40da62011-07-13 22:58:46419 bool /* enable_phishing_detection */)
420
[email protected]83af80b22011-09-06 18:49:19421// This message asks frame sniffer start.
422IPC_MESSAGE_ROUTED1(ChromeViewMsg_StartFrameSniffer,
423 string16 /* frame-name */)
424
[email protected]9b003482013-05-21 14:00:17425// Notifies the renderer whether hiding/showing the top controls is enabled,
426// what the current state should be, and whether or not to animate to the
427// proper state.
428IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState,
429 content::TopControlsState /* constraints */,
430 content::TopControlsState /* current */,
431 bool /* animate */)
432
[email protected]21d898342011-08-23 18:14:41433// JavaScript related messages -----------------------------------------------
434
435// Notify the JavaScript engine in the render to change its parameters
436// while performing stress testing.
437IPC_MESSAGE_ROUTED2(ChromeViewMsg_JavaScriptStressTestControl,
438 int /* cmd */,
439 int /* param */)
440
[email protected]a1127f82011-09-08 17:27:01441// Asks the renderer to send back FPS.
442IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetFPS)
443
[email protected]6f9f7d82011-12-08 12:13:34444// Tells the view it is displaying an interstitial page.
445IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial)
446
[email protected]7e771bfb2013-01-14 23:23:21447// Provides the renderer with the results of the browser's investigation into
448// why a recent main frame load failed (currently, just DNS probe result).
449// NetErrorHelper will receive this mesage and replace or update the error
450// page with more specific troubleshooting suggestions.
451IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo,
452 int /* DNS probe result */)
453
[email protected]d5a04832011-03-12 21:46:26454//-----------------------------------------------------------------------------
[email protected]63f72132012-04-18 18:02:44455// Misc messages
[email protected]d5a04832011-03-12 21:46:26456// These are messages sent from the renderer to the browser process.
457
[email protected]93b9d692011-04-13 00:44:31458// Provides the contents for the given page that was loaded recently.
[email protected]2ccf45c2011-08-19 23:35:50459IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageContents,
[email protected]93b9d692011-04-13 00:44:31460 GURL /* URL of the page */,
461 int32 /* page id */,
462 string16 /* page contents */)
463
464// Notification that the language for the tab has been determined.
[email protected]2ccf45c2011-08-19 23:35:50465IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_TranslateLanguageDetermined,
[email protected]27eff892013-05-21 16:40:52466 LanguageDetectionDetails /* details about lang detection */,
467 bool /* whether the page needs translation */)
[email protected]93b9d692011-04-13 00:44:31468
[email protected]2ccf45c2011-08-19 23:35:50469IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats,
[email protected]d5a04832011-03-12 21:46:26470 WebKit::WebCache::UsageStats /* stats */)
471
[email protected]d5a04832011-03-12 21:46:26472// Tells the browser that content in the current page was blocked due to the
473// user's content settings.
[email protected]2ccf45c2011-08-19 23:35:50474IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ContentBlocked,
[email protected]d5a04832011-03-12 21:46:26475 ContentSettingsType, /* type of blocked content */
476 std::string /* resource identifier */)
477
[email protected]5327dfb2011-05-03 17:50:36478// Sent by the renderer process to check whether access to web databases is
[email protected]bac33eb2011-05-04 01:47:49479// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50480IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase,
[email protected]9a611a92011-05-07 17:06:18481 int /* render_view_id */,
482 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15483 GURL /* top origin url */,
[email protected]bac33eb2011-05-04 01:47:49484 string16 /* database name */,
485 string16 /* database display name */,
[email protected]8c276642011-05-06 09:41:00486 bool /* allowed */)
[email protected]bac33eb2011-05-04 01:47:49487
488// Sent by the renderer process to check whether access to DOM Storage is
489// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50490IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage,
[email protected]bac33eb2011-05-04 01:47:49491 int /* render_view_id */,
492 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15493 GURL /* top origin url */,
[email protected]c729db82011-11-23 17:37:27494 bool /* if true local storage, otherwise session */,
[email protected]8c276642011-05-06 09:41:00495 bool /* allowed */)
[email protected]5327dfb2011-05-03 17:50:36496
[email protected]45316d62011-05-12 18:15:30497// Sent by the renderer process to check whether access to FileSystem is
498// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50499IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_AllowFileSystem,
[email protected]45316d62011-05-12 18:15:30500 int /* render_view_id */,
501 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15502 GURL /* top origin url */,
[email protected]45316d62011-05-12 18:15:30503 bool /* allowed */)
504
[email protected]9a611a92011-05-07 17:06:18505// Sent by the renderer process to check whether access to Indexed DBis
506// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50507IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB,
[email protected]9a611a92011-05-07 17:06:18508 int /* render_view_id */,
[email protected]c0a45a982011-05-25 16:58:15509 GURL /* origin_url */,
510 GURL /* top origin url */,
[email protected]9a611a92011-05-07 17:06:18511 string16 /* database name */,
512 bool /* allowed */)
[email protected]5327dfb2011-05-03 17:50:36513
[email protected]51b63f62011-10-05 18:55:42514// Return information about a plugin for the given URL and MIME type.
515// In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows
516// about specific reasons why a plug-in can't be used, for example because it's
517// disabled.
[email protected]cd33d282012-09-21 12:53:04518IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo,
[email protected]51b63f62011-10-05 18:55:42519 int /* render_view_id */,
520 GURL /* url */,
521 GURL /* top origin url */,
522 std::string /* mime_type */,
[email protected]cd33d282012-09-21 12:53:04523 ChromeViewHostMsg_GetPluginInfo_Output /* output */)
[email protected]51b63f62011-10-05 18:55:42524
[email protected]43b7eaca2012-01-12 17:27:28525#if defined(ENABLE_PLUGIN_INSTALLATION)
[email protected]1d697f32011-11-28 11:57:51526// Tells the browser to search for a plug-in that can handle the given MIME
527// type. The result will be sent asynchronously to the routing ID
528// |placeholder_id|.
529IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin,
530 int /* placeholder_id */,
531 std::string /* mime_type */)
532
[email protected]3240d2502012-01-26 17:00:33533// Notifies the browser that a missing plug-in placeholder has been removed, so
[email protected]e2424012012-02-03 10:26:50534// the corresponding PluginPlaceholderHost can be deleted.
535IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost,
[email protected]3240d2502012-01-26 17:00:33536 int /* placeholder_id */)
537
[email protected]1d697f32011-11-28 11:57:51538// Notifies a missing plug-in placeholder that a plug-in with name |plugin_name|
539// has been found.
540IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin,
541 string16 /* plugin_name */)
542
543// Notifies a missing plug-in placeholder that no plug-in has been found.
544IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin)
545
[email protected]0dd9e8b2012-01-04 13:36:16546// Notifies a missing plug-in placeholder that we have started downloading
547// the plug-in.
548IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin)
549
550// Notifies a missing plug-in placeholder that we have finished downloading
551// the plug-in.
552IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin)
553
[email protected]725f6882012-01-13 18:50:06554// Notifies a missing plug-in placeholder that there was an error downloading
555// the plug-in.
556IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin,
557 std::string /* message */)
[email protected]4f62d8052012-01-18 16:16:59558#endif // defined(ENABLE_PLUGIN_INSTALLATION)
559
[email protected]1a86f752012-02-10 13:20:36560// Notifies a missing plug-in placeholder that the user cancelled downloading
561// the plug-in.
562IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin)
563
[email protected]4f62d8052012-01-18 16:16:59564// Tells the browser to open chrome://plugins in a new tab. We use a separate
565// message because renderer processes aren't allowed to directly navigate to
566// chrome:// URLs.
567IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins)
[email protected]725f6882012-01-13 18:50:06568
[email protected]cc5f7812012-05-31 13:50:34569// Tells the browser that there was an error loading a plug-in.
570IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin,
[email protected]a7329162013-02-07 19:21:48571 base::FilePath /* plugin_path */)
[email protected]cc5f7812012-05-31 13:50:34572
[email protected]a1199132012-10-26 22:14:41573// Tells the browser that we blocked a plug-in because NPAPI is not supported.
574IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported,
575 std::string /* identifer */)
576
[email protected]cc7b11012013-05-02 22:02:53577// Tells the renderer that the NPAPI cannot be used. For example Ash on windows.
578IPC_MESSAGE_ROUTED0(ChromeViewMsg_NPAPINotSupported)
579
[email protected]d5a04832011-03-12 21:46:26580// A message for an external host.
[email protected]2ccf45c2011-08-19 23:35:50581IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ForwardMessageToExternalHost,
[email protected]d5a04832011-03-12 21:46:26582 std::string /* message */,
583 std::string /* origin */,
584 std::string /* target */)
585
[email protected]d5a04832011-03-12 21:46:26586// A renderer sends this to the browser process when it wants to start
587// a new instance of the Native Client process. The browser will launch
[email protected]17b5a8172012-06-22 21:09:09588// the process and return an IPC channel handle. This handle will only
589// be valid if the NaCl IPC proxy is enabled.
[email protected]4a7a91bd2013-01-10 23:41:04590IPC_SYNC_MESSAGE_CONTROL1_4(ChromeViewHostMsg_LaunchNaCl,
591 nacl::NaClLaunchParams /* launch_params */,
[email protected]6294dd02013-01-09 17:27:23592 nacl::FileDescriptor /* imc channel handle */,
[email protected]2b7197b2012-10-23 21:54:42593 IPC::ChannelHandle /* ipc_channel_handle */,
[email protected]108fd342013-01-04 20:46:54594 base::ProcessId /* plugin_pid */,
[email protected]2b7197b2012-10-23 21:54:42595 int /* plugin_child_id */)
[email protected]d5a04832011-03-12 21:46:26596
[email protected]9a807152012-07-30 17:13:01597// A renderer sends this to the browser process when it wants to
[email protected]1787bb42012-07-23 22:26:50598// open a file for from the Pnacl component directory.
599IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetReadonlyPnaclFD,
600 std::string /* name of requested PNaCl file */,
601 IPC::PlatformFileForTransit /* output file */)
602
[email protected]9a807152012-07-30 17:13:01603// A renderer sends this to the browser process when it wants to
604// create a temporary file.
605IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_NaClCreateTemporaryFile,
606 IPC::PlatformFileForTransit /* out file */)
607
[email protected]923c1162012-12-14 10:07:46608// A renderer sends this to the browser process to display infobar
609IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_NaClErrorStatus,
610 int /* render_view_id */,
611 int /* Error ID */)
612
[email protected]96e6a5f2013-04-23 22:32:35613// A renderer sends this to the browser process when it wants to
614// open a NaCl executable file from an installed application directory.
615IPC_SYNC_MESSAGE_CONTROL2_2(ChromeViewHostMsg_OpenNaClExecutable,
616 int /* render_view_id */,
617 GURL /* URL of NaCl executable file */,
618 base::FilePath /* absolute path to opened file */,
619 IPC::PlatformFileForTransit /* output file */)
620
[email protected]d5a04832011-03-12 21:46:26621// Notification that the page has an OpenSearch description document
622// associated with it.
[email protected]2ccf45c2011-08-19 23:35:50623IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD,
[email protected]d5a04832011-03-12 21:46:26624 int32 /* page_id */,
625 GURL /* url of OS description document */,
[email protected]c08e7932011-03-29 04:08:14626 search_provider::OSDDType)
[email protected]d5a04832011-03-12 21:46:26627
628// Find out if the given url's security origin is installed as a search
629// provider.
[email protected]2ccf45c2011-08-19 23:35:50630IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState,
[email protected]c08e7932011-03-29 04:08:14631 GURL /* page url */,
632 GURL /* inquiry url */,
633 search_provider::InstallState /* install */)
[email protected]d5a04832011-03-12 21:46:26634
[email protected]d5a04832011-03-12 21:46:26635// Sends back stats about the V8 heap.
[email protected]2ccf45c2011-08-19 23:35:50636IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats,
[email protected]d5a04832011-03-12 21:46:26637 int /* size of heap (allocated from the OS) */,
638 int /* bytes in use */)
639
640// Request for a DNS prefetch of the names in the array.
641// NameList is typedef'ed std::vector<std::string>
[email protected]2ccf45c2011-08-19 23:35:50642IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_DnsPrefetch,
[email protected]2bf2bd92011-03-31 07:12:44643 std::vector<std::string> /* hostnames */)
[email protected]d5a04832011-03-12 21:46:26644
[email protected]d5a04832011-03-12 21:46:26645// Notifies when a plugin couldn't be loaded because it's outdated.
[email protected]2ccf45c2011-08-19 23:35:50646IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin,
[email protected]27c483892012-02-09 15:59:10647 int /* placeholder ID */,
648 std::string /* plug-in group identifier */)
[email protected]d5a04832011-03-12 21:46:26649
[email protected]e2424012012-02-03 10:26:50650// Notifies when a plugin couldn't be loaded because it requires
651// user authorization.
[email protected]51ffaf72012-05-09 21:00:49652IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin,
653 string16 /* name */,
654 std::string /* plug-in group identifier */)
[email protected]e2424012012-02-03 10:26:50655
[email protected]d5a04832011-03-12 21:46:26656// Provide the browser process with information about the WebCore resource
[email protected]872ae5b2011-05-26 20:20:50657// cache and current renderer framerate.
[email protected]2ccf45c2011-08-19 23:35:50658IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats,
[email protected]d5a04832011-03-12 21:46:26659 WebKit::WebCache::ResourceTypeStats)
660
[email protected]d5a04832011-03-12 21:46:26661// Notifies the browser that a page has been translated.
[email protected]2ccf45c2011-08-19 23:35:50662IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_PageTranslated,
[email protected]d5a04832011-03-12 21:46:26663 int, /* page id */
664 std::string /* the original language */,
665 std::string /* the translated language */,
666 TranslateErrors::Type /* the error type if available */)
667
[email protected]16e923d2011-04-30 00:41:44668// Message sent from the renderer to the browser to notify it of events which
669// may lead to the cancellation of a prerender. The message is sent only when
670// the renderer is prerendering.
[email protected]2ccf45c2011-08-19 23:35:50671IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_MaybeCancelPrerenderForHTML5Media)
[email protected]16e923d2011-04-30 00:41:44672
[email protected]4c94b8c2011-05-17 16:17:45673// Message sent from the renderer to the browser to notify it of a
674// window.print() call which should cancel the prerender. The message is sent
675// only when the renderer is prerendering.
[email protected]2ccf45c2011-08-19 23:35:50676IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting)
[email protected]4c94b8c2011-05-17 16:17:45677
[email protected]ab2eb9f2011-05-03 23:02:37678// Sent by the renderer to check if a URL has permission to trigger a clipboard
679// read/write operation from the DOM.
[email protected]2ccf45c2011-08-19 23:35:50680IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_CanTriggerClipboardRead,
[email protected]34eec7ffe32011-11-02 23:49:02681 GURL /* origin */,
[email protected]ab2eb9f2011-05-03 23:02:37682 bool /* allowed */)
[email protected]2ccf45c2011-08-19 23:35:50683IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_CanTriggerClipboardWrite,
[email protected]34eec7ffe32011-11-02 23:49:02684 GURL /* origin */,
[email protected]ab2eb9f2011-05-03 23:02:37685 bool /* allowed */)
686
[email protected]68cafdb2011-06-10 21:42:18687// Sent when the renderer was prevented from displaying insecure content in
688// a secure page by a security policy. The page may appear incomplete.
[email protected]2ccf45c2011-08-19 23:35:50689IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent)
[email protected]68cafdb2011-06-10 21:42:18690
691// Sent when the renderer was prevented from running insecure content in
692// a secure origin by a security policy. The page may appear incomplete.
[email protected]2ccf45c2011-08-19 23:35:50693IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent)
[email protected]68cafdb2011-06-10 21:42:18694
[email protected]2d0f2e92011-10-03 09:02:24695// Message sent from renderer to the browser when the element that is focused
[email protected]e15ad752012-12-21 19:12:02696// has been touched. A bool is passed in this message which indicates if the
697// node is editable.
698IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FocusedNodeTouched,
699 bool /* editable */)
[email protected]2d0f2e92011-10-03 09:02:24700
[email protected]d5a04832011-03-12 21:46:26701// Suggest results -----------------------------------------------------------
702
[email protected]10f588e32013-03-15 22:34:55703// Sent by Instant to populate the omnibox with query or URL suggestions.
[email protected]0e7cb682012-08-15 04:04:38704IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetSuggestions,
[email protected]c55e3b82012-08-09 15:27:05705 int /* page_id */,
[email protected]0e7cb682012-08-15 04:04:38706 std::vector<InstantSuggestion> /* suggestions */)
[email protected]d5a04832011-03-12 21:46:26707
[email protected]74a237fb2013-02-15 04:17:18708// Sent by Instant to indicate whether the page supports the Instant API
709// (http://dev.chromium.org/searchbox).
[email protected]2ccf45c2011-08-19 23:35:50710IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined,
[email protected]c55e3b82012-08-09 15:27:05711 int /* page_id */,
712 bool /* result */)
[email protected]d5a04832011-03-12 21:46:26713
[email protected]63bd68642013-05-13 23:02:55714IPC_MESSAGE_ROUTED5(ChromeViewHostMsg_SearchBoxNavigate,
[email protected]e3033eb2012-12-13 23:46:08715 int /* page_id */,
716 GURL /* destination */,
[email protected]3c3acca2013-02-26 03:07:07717 content::PageTransition /* transition */,
[email protected]63bd68642013-05-13 23:02:55718 WindowOpenDisposition /* disposition */,
719 bool /* is_search_type */)
[email protected]e3033eb2012-12-13 23:46:08720
[email protected]74a237fb2013-02-15 04:17:18721// Sent by the Instant overlay asking to show itself with the given height.
[email protected]2b1625112013-03-16 18:58:29722IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ShowInstantOverlay,
[email protected]0e7cb682012-08-15 04:04:38723 int /* page_id */,
724 int /* height */,
725 InstantSizeUnits /* units */)
726
[email protected]10aec592013-03-06 20:19:00727// Sent by Instant to focus the omnibox.
[email protected]ca98bd32013-04-09 05:16:05728IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FocusOmnibox,
729 int /* page_id */,
730 OmniboxFocusState /* state */)
[email protected]10aec592013-03-06 20:19:00731
[email protected]5ee671f2013-03-19 11:23:05732// Sent by Instant to show any attached bars.
733IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxShowBars,
734 int /* page_id */)
735
736// Sent by Instant to hide any attached bars.
737IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxHideBars,
738 int /* page_id */)
739
[email protected]21d898342011-08-23 18:14:41740// The currently displayed PDF has an unsupported feature.
741IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature)
[email protected]d5a04832011-03-12 21:46:26742
[email protected]83af80b22011-09-06 18:49:19743// This message indicates the error appeared in the frame.
744IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError,
745 int /* error */)
746
[email protected]ebce9522011-10-27 19:17:17747// This message indicates the monitored frame loading had completed.
748IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted)
749
[email protected]6a3eede2011-08-29 23:48:05750// The following messages are used to set and get cookies for ChromeFrame
751// processes.
752// Used to set a cookie. The cookie is set asynchronously, but will be
753// available to a subsequent ChromeViewHostMsg_GetCookies request.
754IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SetCookie,
755 GURL /* url */,
756 GURL /* first_party_for_cookies */,
757 std::string /* cookie */)
758
759// Used to get cookies for the given URL. This may block waiting for a
760// previous SetCookie message to be processed.
761IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies,
762 GURL /* url */,
763 GURL /* first_party_for_cookies */,
764 std::string /* cookies */)
[email protected]a1127f82011-09-08 17:27:01765
766// Provide the browser process with current renderer framerate.
767IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS,
768 int /* routing id */,
769 float /* frames per second */)