blob: 46fb90e2fd2aec2ae89c1b89ad760f150f6e1550 [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.
[email protected]e5a7a2a2014-03-27 16:16:036#include <stdint.h>
[email protected]d5a04832011-03-12 21:46:267#include <map>
8#include <set>
initial.commit09911bf2008-07-26 23:55:299#include <string>
10#include <vector>
11
[email protected]57999812013-02-24 05:40:5212#include "base/files/file_path.h"
[email protected]65654eeb2013-07-17 06:51:2413#include "base/memory/shared_memory.h"
[email protected]f15e58122013-07-23 15:42:3414#include "base/process/process.h"
[email protected]3c8a6b02013-06-11 00:49:4915#include "base/strings/string16.h"
16#include "base/strings/stringprintf.h"
[email protected]d5a04832011-03-12 21:46:2617#include "base/values.h"
18#include "build/build_config.h"
[email protected]b77ddff2013-05-24 07:49:0119#include "chrome/common/autocomplete_match_type.h"
[email protected]79d68c62011-04-15 21:07:0320#include "chrome/common/common_param_traits.h"
[email protected]c14406092011-10-27 13:43:4221#include "chrome/common/content_settings.h"
[email protected]610ca832011-10-19 12:59:2022#include "chrome/common/content_settings_pattern.h"
[email protected]1c9c7fb2011-03-11 16:38:3823#include "chrome/common/instant_types.h"
[email protected]09da02f2013-08-14 01:41:5924#include "chrome/common/ntp_logging_events.h"
[email protected]ca98bd32013-04-09 05:16:0525#include "chrome/common/omnibox_focus_state.h"
[email protected]c08e7932011-03-29 04:08:1426#include "chrome/common/search_provider.h"
[email protected]512b5bd2013-07-23 20:24:0027#include "components/nacl/common/nacl_types.h"
[email protected]19a5c7442011-10-21 20:00:4128#include "content/public/common/common_param_traits.h"
[email protected]3c71576ce2013-07-23 02:00:0129#include "content/public/common/referrer.h"
[email protected]9b003482013-05-21 14:00:1730#include "content/public/common/top_controls_state.h"
[email protected]88b50b62013-09-01 23:05:0631#include "extensions/common/stack_frame.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]2255a9332013-06-17 05:12:3136#include "third_party/WebKit/public/web/WebCache.h"
37#include "third_party/WebKit/public/web/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]51b63f62011-10-05 18:55:4245// This enum is inside a struct so that we can forward-declare the struct in
46// others headers without having to include this one.
47struct ChromeViewHostMsg_GetPluginInfo_Status {
[email protected]51b63f62011-10-05 18:55:4248 enum Value {
49 kAllowed,
[email protected]8aa7a412011-11-07 12:33:4250 kBlocked,
[email protected]6a9d1deb2014-01-13 19:39:4151 kBlockedByPolicy,
[email protected]8aa7a412011-11-07 12:33:4252 kClickToPlay,
[email protected]51b63f62011-10-05 18:55:4253 kDisabled,
54 kNotFound,
[email protected]a1199132012-10-26 22:14:4155 kNPAPINotSupported,
[email protected]8aa7a412011-11-07 12:33:4256 kOutdatedBlocked,
57 kOutdatedDisallowed,
58 kUnauthorized,
[email protected]51b63f62011-10-05 18:55:4259 };
60
61 ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed) {}
62
63 Value value;
64};
65
[email protected]7d5c3ac2009-02-04 08:58:1966namespace IPC {
67
[email protected]9c7453d2012-01-21 00:45:4068#if defined(OS_POSIX) && !defined(USE_AURA) && !defined(OS_ANDROID)
[email protected]661eb9d2009-02-03 02:11:4869
70// TODO(port): this shouldn't exist. However, the plugin stuff is really using
71// HWNDS (NativeView), and making Windows calls based on them. I've not figured
72// out the deal with plugins yet.
[email protected]9c7453d2012-01-21 00:45:4073// TODO(android): a gfx::NativeView is the same as a gfx::NativeWindow.
[email protected]661eb9d2009-02-03 02:11:4874template <>
75struct ParamTraits<gfx::NativeView> {
76 typedef gfx::NativeView param_type;
[email protected]7d5c3ac2009-02-04 08:58:1977 static void Write(Message* m, const param_type& p) {
[email protected]661eb9d2009-02-03 02:11:4878 NOTIMPLEMENTED();
79 }
80
[email protected]ce208f872012-03-07 20:42:5681 static bool Read(const Message* m, PickleIterator* iter, param_type* p) {
[email protected]661eb9d2009-02-03 02:11:4882 NOTIMPLEMENTED();
83 *p = NULL;
84 return true;
85 }
86
[email protected]252cad62010-08-18 18:33:5787 static void Log(const param_type& p, std::string* l) {
[email protected]93f10522010-10-31 16:27:4888 l->append(base::StringPrintf("<gfx::NativeView>"));
[email protected]661eb9d2009-02-03 02:11:4889 }
90};
91
[email protected]9c7453d2012-01-21 00:45:4092#endif // defined(OS_POSIX) && !defined(USE_AURA) && !defined(OS_ANDROID)
[email protected]661eb9d2009-02-03 02:11:4893
[email protected]7b291f92009-08-14 05:43:5394template <>
[email protected]610ca832011-10-19 12:59:2095struct ParamTraits<ContentSettingsPattern> {
96 typedef ContentSettingsPattern param_type;
97 static void Write(Message* m, const param_type& p);
[email protected]ce208f872012-03-07 20:42:5698 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
[email protected]610ca832011-10-19 12:59:2099 static void Log(const param_type& p, std::string* l);
100};
101
[email protected]b3df5a42010-05-11 14:31:09102} // namespace IPC
[email protected]9f4db512010-05-10 20:21:41103
[email protected]5a52f162008-08-27 04:15:31104#endif // CHROME_COMMON_RENDER_MESSAGES_H_
[email protected]d5a04832011-03-12 21:46:26105
[email protected]778574e2011-03-21 22:03:50106#define IPC_MESSAGE_START ChromeMsgStart
[email protected]d5a04832011-03-12 21:46:26107
[email protected]6a9d1deb2014-01-13 19:39:41108IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status::Value,
109 ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized)
[email protected]8d4c276d2013-05-29 19:39:52110IPC_ENUM_TRAITS(OmniboxFocusChangeReason)
[email protected]ca98bd32013-04-09 05:16:05111IPC_ENUM_TRAITS(OmniboxFocusState)
[email protected]c08e7932011-03-29 04:08:14112IPC_ENUM_TRAITS(search_provider::OSDDType)
113IPC_ENUM_TRAITS(search_provider::InstallState)
[email protected]a6827652012-11-20 23:41:08114IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment)
115IPC_ENUM_TRAITS(ThemeBackgroundImageTiling)
[email protected]a1221aea2013-11-07 01:31:30116IPC_ENUM_TRAITS(blink::WebConsoleMessage::Level)
[email protected]9b003482013-05-21 14:00:17117IPC_ENUM_TRAITS(content::TopControlsState)
[email protected]fffaf972011-03-24 01:34:35118
[email protected]51b63f62011-10-05 18:55:42119IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status)
120IPC_STRUCT_TRAITS_MEMBER(value)
121IPC_STRUCT_TRAITS_END()
122
[email protected]cd33d282012-09-21 12:53:04123// Output parameters for ChromeViewHostMsg_GetPluginInfo message.
124IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output)
125 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status)
[email protected]d7bd3e52013-07-21 04:29:20126 IPC_STRUCT_MEMBER(content::WebPluginInfo, plugin)
[email protected]cd33d282012-09-21 12:53:04127 IPC_STRUCT_MEMBER(std::string, actual_mime_type)
128 IPC_STRUCT_MEMBER(std::string, group_identifier)
[email protected]428fac12013-12-05 21:38:49129 IPC_STRUCT_MEMBER(base::string16, group_name)
[email protected]cd33d282012-09-21 12:53:04130IPC_STRUCT_END()
131
[email protected]610ca832011-10-19 12:59:20132IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts)
133 IPC_STRUCT_TRAITS_MEMBER(scheme)
134 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard)
135 IPC_STRUCT_TRAITS_MEMBER(host)
136 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard)
137 IPC_STRUCT_TRAITS_MEMBER(port)
138 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard)
139 IPC_STRUCT_TRAITS_MEMBER(path)
[email protected]ae689aab2012-01-23 17:52:08140 IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard)
[email protected]610ca832011-10-19 12:59:20141IPC_STRUCT_TRAITS_END()
142
[email protected]c14406092011-10-27 13:43:42143IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource)
144 IPC_STRUCT_TRAITS_MEMBER(primary_pattern)
145 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern)
146 IPC_STRUCT_TRAITS_MEMBER(setting)
147 IPC_STRUCT_TRAITS_MEMBER(source)
148 IPC_STRUCT_TRAITS_MEMBER(incognito)
149IPC_STRUCT_TRAITS_END()
150
[email protected]987fad782013-08-28 06:23:18151IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion)
152 IPC_STRUCT_TRAITS_MEMBER(text)
153 IPC_STRUCT_TRAITS_MEMBER(metadata)
154IPC_STRUCT_TRAITS_END()
155
[email protected]e7868c82013-03-12 03:55:56156IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem)
[email protected]dfee2f62013-02-22 06:46:06157 IPC_STRUCT_TRAITS_MEMBER(url)
158 IPC_STRUCT_TRAITS_MEMBER(title)
159IPC_STRUCT_TRAITS_END()
160
[email protected]edece212011-11-16 11:56:56161IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules)
162 IPC_STRUCT_TRAITS_MEMBER(image_rules)
163 IPC_STRUCT_TRAITS_MEMBER(script_rules)
164IPC_STRUCT_TRAITS_END()
165
[email protected]a8c28472013-07-17 05:34:29166IPC_STRUCT_TRAITS_BEGIN(RGBAColor)
167 IPC_STRUCT_TRAITS_MEMBER(r)
168 IPC_STRUCT_TRAITS_MEMBER(g)
169 IPC_STRUCT_TRAITS_MEMBER(b)
170 IPC_STRUCT_TRAITS_MEMBER(a)
171IPC_STRUCT_TRAITS_END()
172
[email protected]a6827652012-11-20 23:41:08173IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo)
[email protected]a8c28472013-07-17 05:34:29174 IPC_STRUCT_TRAITS_MEMBER(using_default_theme)
175 IPC_STRUCT_TRAITS_MEMBER(background_color)
176 IPC_STRUCT_TRAITS_MEMBER(text_color)
177 IPC_STRUCT_TRAITS_MEMBER(link_color)
178 IPC_STRUCT_TRAITS_MEMBER(text_color_light)
179 IPC_STRUCT_TRAITS_MEMBER(header_color)
180 IPC_STRUCT_TRAITS_MEMBER(section_border_color)
[email protected]a6827652012-11-20 23:41:08181 IPC_STRUCT_TRAITS_MEMBER(theme_id)
182 IPC_STRUCT_TRAITS_MEMBER(image_horizontal_alignment)
183 IPC_STRUCT_TRAITS_MEMBER(image_vertical_alignment)
184 IPC_STRUCT_TRAITS_MEMBER(image_tiling)
185 IPC_STRUCT_TRAITS_MEMBER(image_height)
[email protected]5189fa12013-03-20 23:00:05186 IPC_STRUCT_TRAITS_MEMBER(has_attribution)
[email protected]a8c28472013-07-17 05:34:29187 IPC_STRUCT_TRAITS_MEMBER(logo_alternate)
[email protected]a6827652012-11-20 23:41:08188IPC_STRUCT_TRAITS_END()
189
[email protected]a1221aea2013-11-07 01:31:30190IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStat)
[email protected]fffaf972011-03-24 01:34:35191 IPC_STRUCT_TRAITS_MEMBER(count)
192 IPC_STRUCT_TRAITS_MEMBER(size)
193 IPC_STRUCT_TRAITS_MEMBER(liveSize)
194 IPC_STRUCT_TRAITS_MEMBER(decodedSize)
195IPC_STRUCT_TRAITS_END()
196
[email protected]a1221aea2013-11-07 01:31:30197IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStats)
[email protected]fffaf972011-03-24 01:34:35198 IPC_STRUCT_TRAITS_MEMBER(images)
199 IPC_STRUCT_TRAITS_MEMBER(cssStyleSheets)
200 IPC_STRUCT_TRAITS_MEMBER(scripts)
201 IPC_STRUCT_TRAITS_MEMBER(xslStyleSheets)
202 IPC_STRUCT_TRAITS_MEMBER(fonts)
203IPC_STRUCT_TRAITS_END()
204
[email protected]a1221aea2013-11-07 01:31:30205IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::UsageStats)
[email protected]fffaf972011-03-24 01:34:35206 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity)
207 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity)
208 IPC_STRUCT_TRAITS_MEMBER(capacity)
209 IPC_STRUCT_TRAITS_MEMBER(liveSize)
210 IPC_STRUCT_TRAITS_MEMBER(deadSize)
211IPC_STRUCT_TRAITS_END()
212
[email protected]88b50b62013-09-01 23:05:06213IPC_STRUCT_TRAITS_BEGIN(extensions::StackFrame)
214 IPC_STRUCT_TRAITS_MEMBER(line_number)
215 IPC_STRUCT_TRAITS_MEMBER(column_number)
216 IPC_STRUCT_TRAITS_MEMBER(source)
217 IPC_STRUCT_TRAITS_MEMBER(function)
218IPC_STRUCT_TRAITS_END()
219
[email protected]09da02f2013-08-14 01:41:59220IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType,
221 NTP_NUM_EVENT_TYPES)
222
[email protected]d5a04832011-03-12 21:46:26223//-----------------------------------------------------------------------------
224// RenderView messages
225// These are messages sent from the browser to the renderer process.
226
[email protected]d5a04832011-03-12 21:46:26227// Tells the renderer to set its maximum cache size to the supplied value.
[email protected]2ccf45c2011-08-19 23:35:50228IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities,
[email protected]d5a04832011-03-12 21:46:26229 size_t /* min_dead_capacity */,
230 size_t /* max_dead_capacity */,
231 size_t /* capacity */)
232
233// Tells the renderer to clear the cache.
[email protected]e81d4d72011-09-29 16:54:31234IPC_MESSAGE_CONTROL1(ChromeViewMsg_ClearCache,
235 bool /* on_navigation */)
[email protected]d5a04832011-03-12 21:46:26236
[email protected]504073e2014-05-22 18:17:46237// Set the top-level frame to the provided name.
238IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetName,
239 std::string /* frame_name */)
240
[email protected]db3be76f2014-03-25 02:27:47241// For WebUI testing, this message requests JavaScript to be executed at a time
242// which is late enough to not be thrown out, and early enough to be before
243// onload events are fired.
244IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript,
245 base::string16 /* javascript */)
[email protected]350019f2011-08-02 04:18:33246
[email protected]edece212011-11-16 11:56:56247// Set the content setting rules stored by the renderer.
248IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules,
249 RendererContentSettingRules /* rules */)
[email protected]c14406092011-10-27 13:43:42250
[email protected]a86c0e962013-12-17 17:10:39251// Tells the render frame to load all blocked plugins with the given identifier.
[email protected]51ffaf72012-05-09 21:00:49252IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins,
253 std::string /* identifier */)
[email protected]d5a04832011-03-12 21:46:26254
[email protected]d5a04832011-03-12 21:46:26255// Asks the renderer to send back stats on the WebCore cache broken down by
256// resource types.
[email protected]2ccf45c2011-08-19 23:35:50257IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats)
[email protected]d5a04832011-03-12 21:46:26258
[email protected]63a8ba12011-04-29 05:42:22259// Tells the renderer to create a FieldTrial, and by using a 100% probability
260// for the FieldTrial, forces the FieldTrial to have assigned group name.
[email protected]2ccf45c2011-08-19 23:35:50261IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup,
[email protected]63a8ba12011-04-29 05:42:22262 std::string /* field trial name */,
263 std::string /* group name that was assigned. */)
264
[email protected]d5a04832011-03-12 21:46:26265// Asks the renderer to send back V8 heap stats.
[email protected]2ccf45c2011-08-19 23:35:50266IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats)
[email protected]d5a04832011-03-12 21:46:26267
[email protected]c55e3b82012-08-09 15:27:05268IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant)
[email protected]d5a04832011-03-12 21:46:26269
[email protected]987fad782013-08-28 06:23:18270IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetDisplayInstantResults,
271 bool /* display_instant_results */)
272
[email protected]8d4c276d2013-05-29 19:39:52273IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFocusChanged,
274 OmniboxFocusState /* new_focus_state */,
275 OmniboxFocusChangeReason /* reason */)
[email protected]6a6811a2012-12-12 04:18:16276
[email protected]3296da42014-01-30 04:12:15277IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMarginChange, int /* start */)
[email protected]0d0b4a42013-06-14 00:46:26278
[email protected]e7868c82013-03-12 03:55:56279IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged,
[email protected]ab01dd752013-06-08 05:13:36280 std::vector<InstantMostVisitedItem> /* items */)
[email protected]dfee2f62013-02-22 06:46:06281
[email protected]38fe2892013-07-11 00:21:04282IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation,
283 bool /* is_app_launcher_enabled */)
[email protected]dfee2f62013-02-22 06:46:06284
[email protected]38fe2892013-07-11 00:21:04285IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress,
286 bool /* input_in_progress */)
[email protected]dfee2f62013-02-22 06:46:06287
[email protected]987fad782013-08-28 06:23:18288IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch,
289 InstantSuggestion /* suggestion */)
290
[email protected]38fe2892013-07-11 00:21:04291IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSubmit,
[email protected]428fac12013-12-05 21:38:49292 base::string16 /* value */)
[email protected]38fe2892013-07-11 00:21:04293
294IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged,
295 ThemeBackgroundInfo /* value */)
[email protected]dfee2f62013-02-22 06:46:06296
[email protected]d76376d2013-10-31 06:44:42297IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult,
[email protected]428fac12013-12-05 21:38:49298 base::string16 /* identity */,
[email protected]d76376d2013-10-31 06:44:42299 bool /* identity_match */)
300
[email protected]3473ae02013-06-07 00:28:08301IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch)
302
[email protected]1138cce2011-12-02 21:29:36303// Toggles visual muting of the render view area. This is on when a constrained
304// window is showing.
305IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized,
306 bool /* deemphazied */)
307
[email protected]d5a04832011-03-12 21:46:26308// Sent on process startup to indicate whether this process is running in
309// incognito mode.
[email protected]2ccf45c2011-08-19 23:35:50310IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess,
[email protected]d5a04832011-03-12 21:46:26311 bool /* is_incognito_processs */)
312
[email protected]68cafdb2011-06-10 21:42:18313// Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent.
[email protected]2ccf45c2011-08-19 23:35:50314IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent,
[email protected]68cafdb2011-06-10 21:42:18315 bool /* allowed */)
316
317// Sent in response to ViewHostMsg_DidBlockRunningInsecureContent.
[email protected]2ccf45c2011-08-19 23:35:50318IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent,
[email protected]68cafdb2011-06-10 21:42:18319 bool /* allowed */)
320
[email protected]a86c0e962013-12-17 17:10:39321IPC_MESSAGE_ROUTED0(ChromeViewMsg_ReloadFrame)
322
[email protected]a230f2f2014-05-24 01:37:54323// Tells the renderer whether or not a file system access has been allowed.
324IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestFileSystemAccessAsyncResponse,
325 int /* request_id */,
326 bool /* allowed */)
327
[email protected]8c40da62011-07-13 22:58:46328// Sent when the profile changes the kSafeBrowsingEnabled preference.
[email protected]2ccf45c2011-08-19 23:35:50329IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection,
[email protected]8c40da62011-07-13 22:58:46330 bool /* enable_phishing_detection */)
331
[email protected]31dd25ab2013-07-31 21:59:05332// Asks the renderer for a thumbnail of the image selected by the most
333// recently opened context menu, if there is one. If the image's area
334// is greater than thumbnail_min_area it will be downscaled to
335// be within thumbnail_max_size. The possibly downsampled image will be
336// returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message.
337IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode,
338 int /* thumbnail_min_area_pixels */,
339 gfx::Size /* thumbnail_max_size_pixels */)
340
[email protected]9b003482013-05-21 14:00:17341// Notifies the renderer whether hiding/showing the top controls is enabled,
342// what the current state should be, and whether or not to animate to the
343// proper state.
344IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState,
345 content::TopControlsState /* constraints */,
346 content::TopControlsState /* current */,
347 bool /* animate */)
348
[email protected]31dd25ab2013-07-31 21:59:05349
[email protected]67264062013-07-25 12:39:26350// Updates the window features of the render view.
351IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures,
[email protected]a1221aea2013-11-07 01:31:30352 blink::WebWindowFeatures /* window_features */)
[email protected]67264062013-07-25 12:39:26353
[email protected]2f3bc6512013-08-28 03:56:27354IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK,
355 SkBitmap /* thumbnail */,
356 gfx::Size /* original size of the image */)
[email protected]31dd25ab2013-07-31 21:59:05357
[email protected]51208252013-08-19 21:05:30358#if defined(OS_ANDROID)
359// Asks the renderer to return information about whether the current page can
360// be treated as a webapp.
361IPC_MESSAGE_ROUTED1(ChromeViewMsg_RetrieveWebappInformation,
362 GURL /* expected_url */)
[email protected]33b1c082014-02-01 01:46:35363
364// Asks the renderer to return information about the given meta tag.
365IPC_MESSAGE_ROUTED2(ChromeViewMsg_RetrieveMetaTagContent,
366 GURL /* expected_url */,
367 std::string /* tag_name */ )
[email protected]51208252013-08-19 21:05:30368#endif // defined(OS_ANDROID)
[email protected]31dd25ab2013-07-31 21:59:05369
[email protected]914cf6712013-12-05 01:14:06370// chrome.principals messages ------------------------------------------------
371
372// Message sent from the renderer to the browser to get the list of browser
373// managed accounts for the given origin.
374IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts,
375 GURL /* current URL */,
376 std::vector<std::string> /* managed accounts */)
377
378// Message sent from the renderer to the browser to show the browser account
379// management UI.
380IPC_MESSAGE_CONTROL0(ChromeViewHostMsg_ShowBrowserAccountManagementUI)
381
[email protected]21d898342011-08-23 18:14:41382// JavaScript related messages -----------------------------------------------
383
[email protected]a1127f82011-09-08 17:27:01384// Asks the renderer to send back FPS.
385IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetFPS)
386
[email protected]a86c0e962013-12-17 17:10:39387// Tells the frame it is displaying an interstitial page.
[email protected]6f9f7d82011-12-08 12:13:34388IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial)
389
[email protected]7e771bfb2013-01-14 23:23:21390// Provides the renderer with the results of the browser's investigation into
391// why a recent main frame load failed (currently, just DNS probe result).
392// NetErrorHelper will receive this mesage and replace or update the error
393// page with more specific troubleshooting suggestions.
394IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo,
[email protected]2ea1efe2013-07-17 05:23:13395 int /* DNS probe status */)
[email protected]7e771bfb2013-01-14 23:23:21396
[email protected]26bd3893c2014-04-15 18:59:58397// Provides the information needed by the renderer process to contact a
398// navigation correction service. Handled by the NetErrorHelper.
399IPC_MESSAGE_ROUTED5(ChromeViewMsg_SetNavigationCorrectionInfo,
400 GURL /* Navigation correction service base URL */,
401 std::string /* language */,
402 std::string /* origin_country */,
403 std::string /* API key to use */,
404 GURL /* Google Search URL to use */)
[email protected]3d612f52014-01-13 23:48:29405
[email protected]d5a04832011-03-12 21:46:26406//-----------------------------------------------------------------------------
[email protected]63f72132012-04-18 18:02:44407// Misc messages
[email protected]d5a04832011-03-12 21:46:26408// These are messages sent from the renderer to the browser process.
409
[email protected]2ccf45c2011-08-19 23:35:50410IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats,
[email protected]a1221aea2013-11-07 01:31:30411 blink::WebCache::UsageStats /* stats */)
[email protected]d5a04832011-03-12 21:46:26412
[email protected]d5a04832011-03-12 21:46:26413// Tells the browser that content in the current page was blocked due to the
414// user's content settings.
[email protected]d49f6f7e2013-12-11 15:47:36415IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_ContentBlocked,
416 ContentSettingsType /* type of blocked content */)
[email protected]d5a04832011-03-12 21:46:26417
[email protected]5327dfb2011-05-03 17:50:36418// Sent by the renderer process to check whether access to web databases is
[email protected]bac33eb2011-05-04 01:47:49419// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50420IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase,
[email protected]a86c0e962013-12-17 17:10:39421 int /* render_frame_id */,
[email protected]9a611a92011-05-07 17:06:18422 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15423 GURL /* top origin url */,
[email protected]428fac12013-12-05 21:38:49424 base::string16 /* database name */,
425 base::string16 /* database display name */,
[email protected]8c276642011-05-06 09:41:00426 bool /* allowed */)
[email protected]bac33eb2011-05-04 01:47:49427
428// Sent by the renderer process to check whether access to DOM Storage is
429// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50430IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage,
[email protected]a86c0e962013-12-17 17:10:39431 int /* render_frame_id */,
[email protected]bac33eb2011-05-04 01:47:49432 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15433 GURL /* top origin url */,
[email protected]c729db82011-11-23 17:37:27434 bool /* if true local storage, otherwise session */,
[email protected]8c276642011-05-06 09:41:00435 bool /* allowed */)
[email protected]5327dfb2011-05-03 17:50:36436
[email protected]45316d62011-05-12 18:15:30437// Sent by the renderer process to check whether access to FileSystem is
438// granted by content settings.
[email protected]a230f2f2014-05-24 01:37:54439IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_RequestFileSystemAccessSync,
[email protected]a86c0e962013-12-17 17:10:39440 int /* render_frame_id */,
[email protected]45316d62011-05-12 18:15:30441 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15442 GURL /* top origin url */,
[email protected]45316d62011-05-12 18:15:30443 bool /* allowed */)
444
[email protected]a230f2f2014-05-24 01:37:54445// Sent by the renderer process to check whether access to FileSystem is
446// granted by content settings.
447IPC_MESSAGE_CONTROL4(ChromeViewHostMsg_RequestFileSystemAccessAsync,
448 int /* render_frame_id */,
449 int /* request_id */,
450 GURL /* origin_url */,
451 GURL /* top origin url */)
452
[email protected]9a611a92011-05-07 17:06:18453// Sent by the renderer process to check whether access to Indexed DBis
454// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50455IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB,
[email protected]a86c0e962013-12-17 17:10:39456 int /* render_frame_id */,
[email protected]c0a45a982011-05-25 16:58:15457 GURL /* origin_url */,
458 GURL /* top origin url */,
[email protected]428fac12013-12-05 21:38:49459 base::string16 /* database name */,
[email protected]9a611a92011-05-07 17:06:18460 bool /* allowed */)
[email protected]5327dfb2011-05-03 17:50:36461
[email protected]51b63f62011-10-05 18:55:42462// Return information about a plugin for the given URL and MIME type.
463// In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows
464// about specific reasons why a plug-in can't be used, for example because it's
465// disabled.
[email protected]cd33d282012-09-21 12:53:04466IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo,
[email protected]60eca4eb2013-12-06 00:02:16467 int /* render_frame_id */,
[email protected]51b63f62011-10-05 18:55:42468 GURL /* url */,
469 GURL /* top origin url */,
470 std::string /* mime_type */,
[email protected]cd33d282012-09-21 12:53:04471 ChromeViewHostMsg_GetPluginInfo_Output /* output */)
[email protected]51b63f62011-10-05 18:55:42472
[email protected]3627aa3f2013-09-17 22:32:51473// Returns whether any internal plugin supporting |mime_type| is registered
474// Does not determine whether the plugin can actually be instantiated
475// (e.g. whether it is allowed or has all its dependencies).
[email protected]c33fa1e2013-10-29 06:08:06476// When the returned *|is_registered| is true, |additional_param_names| and
477// |additional_param_values| contain the name-value pairs, if any, specified
478// for the *first* plugin found that is registered for |mime_type|.
479IPC_SYNC_MESSAGE_CONTROL1_3(
[email protected]3627aa3f2013-09-17 22:32:51480 ChromeViewHostMsg_IsInternalPluginRegisteredForMimeType,
481 std::string /* mime_type */,
[email protected]c33fa1e2013-10-29 06:08:06482 bool /* registered */,
483 std::vector<base::string16> /* additional_param_names */,
484 std::vector<base::string16> /* additional_param_values */)
[email protected]3627aa3f2013-09-17 22:32:51485
[email protected]504073e2014-05-22 18:17:46486// Informs the browser of updated frame names.
487IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_UpdateFrameName,
488 bool /* is_top_level */,
489 std::string /* name */)
490
[email protected]43b7eaca2012-01-12 17:27:28491#if defined(ENABLE_PLUGIN_INSTALLATION)
[email protected]1d697f32011-11-28 11:57:51492// Tells the browser to search for a plug-in that can handle the given MIME
493// type. The result will be sent asynchronously to the routing ID
494// |placeholder_id|.
495IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin,
496 int /* placeholder_id */,
497 std::string /* mime_type */)
498
[email protected]3240d2502012-01-26 17:00:33499// Notifies the browser that a missing plug-in placeholder has been removed, so
[email protected]e2424012012-02-03 10:26:50500// the corresponding PluginPlaceholderHost can be deleted.
501IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost,
[email protected]3240d2502012-01-26 17:00:33502 int /* placeholder_id */)
503
[email protected]1d697f32011-11-28 11:57:51504// Notifies a missing plug-in placeholder that a plug-in with name |plugin_name|
505// has been found.
506IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin,
[email protected]428fac12013-12-05 21:38:49507 base::string16 /* plugin_name */)
[email protected]1d697f32011-11-28 11:57:51508
509// Notifies a missing plug-in placeholder that no plug-in has been found.
510IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin)
511
[email protected]0dd9e8b2012-01-04 13:36:16512// Notifies a missing plug-in placeholder that we have started downloading
513// the plug-in.
514IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin)
515
516// Notifies a missing plug-in placeholder that we have finished downloading
517// the plug-in.
518IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin)
519
[email protected]725f6882012-01-13 18:50:06520// Notifies a missing plug-in placeholder that there was an error downloading
521// the plug-in.
522IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin,
523 std::string /* message */)
[email protected]4f62d8052012-01-18 16:16:59524#endif // defined(ENABLE_PLUGIN_INSTALLATION)
525
[email protected]1a86f752012-02-10 13:20:36526// Notifies a missing plug-in placeholder that the user cancelled downloading
527// the plug-in.
528IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin)
529
[email protected]4f62d8052012-01-18 16:16:59530// Tells the browser to open chrome://plugins in a new tab. We use a separate
531// message because renderer processes aren't allowed to directly navigate to
532// chrome:// URLs.
533IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins)
[email protected]725f6882012-01-13 18:50:06534
[email protected]cc5f7812012-05-31 13:50:34535// Tells the browser that there was an error loading a plug-in.
536IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin,
[email protected]a7329162013-02-07 19:21:48537 base::FilePath /* plugin_path */)
[email protected]cc5f7812012-05-31 13:50:34538
[email protected]a1199132012-10-26 22:14:41539// Tells the browser that we blocked a plug-in because NPAPI is not supported.
540IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported,
541 std::string /* identifer */)
542
[email protected]cc7b11012013-05-02 22:02:53543// Tells the renderer that the NPAPI cannot be used. For example Ash on windows.
544IPC_MESSAGE_ROUTED0(ChromeViewMsg_NPAPINotSupported)
545
[email protected]d5a04832011-03-12 21:46:26546// Notification that the page has an OpenSearch description document
547// associated with it.
[email protected]2ccf45c2011-08-19 23:35:50548IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD,
[email protected]0911fd182014-05-22 08:02:35549 GURL /* page_url */,
550 GURL /* osdd_url */,
[email protected]c08e7932011-03-29 04:08:14551 search_provider::OSDDType)
[email protected]d5a04832011-03-12 21:46:26552
553// Find out if the given url's security origin is installed as a search
554// provider.
[email protected]2ccf45c2011-08-19 23:35:50555IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState,
[email protected]c08e7932011-03-29 04:08:14556 GURL /* page url */,
557 GURL /* inquiry url */,
558 search_provider::InstallState /* install */)
[email protected]d5a04832011-03-12 21:46:26559
[email protected]d5a04832011-03-12 21:46:26560// Sends back stats about the V8 heap.
[email protected]2ccf45c2011-08-19 23:35:50561IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats,
[email protected]d5a04832011-03-12 21:46:26562 int /* size of heap (allocated from the OS) */,
563 int /* bytes in use */)
564
565// Request for a DNS prefetch of the names in the array.
566// NameList is typedef'ed std::vector<std::string>
[email protected]2ccf45c2011-08-19 23:35:50567IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_DnsPrefetch,
[email protected]2bf2bd92011-03-31 07:12:44568 std::vector<std::string> /* hostnames */)
[email protected]d5a04832011-03-12 21:46:26569
[email protected]b1e7562d2013-05-27 05:47:53570// Request for preconnect to host providing resource specified by URL
571IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_Preconnect,
572 GURL /* preconnect target url */)
573
[email protected]d5a04832011-03-12 21:46:26574// Notifies when a plugin couldn't be loaded because it's outdated.
[email protected]2ccf45c2011-08-19 23:35:50575IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin,
[email protected]27c483892012-02-09 15:59:10576 int /* placeholder ID */,
577 std::string /* plug-in group identifier */)
[email protected]d5a04832011-03-12 21:46:26578
[email protected]e2424012012-02-03 10:26:50579// Notifies when a plugin couldn't be loaded because it requires
580// user authorization.
[email protected]51ffaf72012-05-09 21:00:49581IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin,
[email protected]428fac12013-12-05 21:38:49582 base::string16 /* name */,
[email protected]51ffaf72012-05-09 21:00:49583 std::string /* plug-in group identifier */)
[email protected]e2424012012-02-03 10:26:50584
[email protected]d5a04832011-03-12 21:46:26585// Provide the browser process with information about the WebCore resource
[email protected]872ae5b2011-05-26 20:20:50586// cache and current renderer framerate.
[email protected]2ccf45c2011-08-19 23:35:50587IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats,
[email protected]a1221aea2013-11-07 01:31:30588 blink::WebCache::ResourceTypeStats)
[email protected]d5a04832011-03-12 21:46:26589
[email protected]4c94b8c2011-05-17 16:17:45590// Message sent from the renderer to the browser to notify it of a
591// window.print() call which should cancel the prerender. The message is sent
592// only when the renderer is prerendering.
[email protected]2ccf45c2011-08-19 23:35:50593IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting)
[email protected]4c94b8c2011-05-17 16:17:45594
[email protected]ab2eb9f2011-05-03 23:02:37595// Sent by the renderer to check if a URL has permission to trigger a clipboard
596// read/write operation from the DOM.
[email protected]a86c0e962013-12-17 17:10:39597IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_CanTriggerClipboardRead,
598 GURL /* origin */,
599 bool /* allowed */)
600IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_CanTriggerClipboardWrite,
601 GURL /* origin */,
602 bool /* allowed */)
[email protected]ab2eb9f2011-05-03 23:02:37603
[email protected]68cafdb2011-06-10 21:42:18604// Sent when the renderer was prevented from displaying insecure content in
605// a secure page by a security policy. The page may appear incomplete.
[email protected]2ccf45c2011-08-19 23:35:50606IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent)
[email protected]68cafdb2011-06-10 21:42:18607
608// Sent when the renderer was prevented from running insecure content in
609// a secure origin by a security policy. The page may appear incomplete.
[email protected]2ccf45c2011-08-19 23:35:50610IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent)
[email protected]68cafdb2011-06-10 21:42:18611
[email protected]51208252013-08-19 21:05:30612#if defined(OS_ANDROID)
613// Contains info about whether the current page can be treated as a webapp.
[email protected]0dd45112013-10-04 21:40:37614IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveWebappInformation,
[email protected]51208252013-08-19 21:05:30615 bool /* success */,
[email protected]0dd45112013-10-04 21:40:37616 bool /* is_mobile_webapp_capable */,
617 bool /* is_apple_mobile_webapp_capable */,
[email protected]5820d32c2013-08-28 10:03:50618 GURL /* expected_url */)
[email protected]33b1c082014-02-01 01:46:35619
620IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveMetaTagContent,
621 bool /* success */,
622 std::string /* tag_name */,
623 std::string /* tag_content */,
624 GURL /* expected_url */)
[email protected]51208252013-08-19 21:05:30625#endif // defined(OS_ANDROID)
626
[email protected]21d898342011-08-23 18:14:41627// The currently displayed PDF has an unsupported feature.
628IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature)
[email protected]d5a04832011-03-12 21:46:26629
[email protected]3c71576ce2013-07-23 02:00:01630// Brings up SaveAs... dialog to save specified URL.
631IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PDFSaveURLAs,
632 GURL /* url */,
633 content::Referrer /* referrer */)
634
635// Updates the content restrictions, i.e. to disable print/copy.
636IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_PDFUpdateContentRestrictions,
637 int /* restrictions */)
638
[email protected]b32505712013-09-13 18:29:13639// Brings up a Password... dialog for protected documents.
640IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_PDFModalPromptForPassword,
641 std::string /* prompt */,
642 std::string /* actual_value */)
643
[email protected]83af80b22011-09-06 18:49:19644// This message indicates the error appeared in the frame.
645IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError,
646 int /* error */)
647
[email protected]ebce9522011-10-27 19:17:17648// This message indicates the monitored frame loading had completed.
649IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted)
650
[email protected]a1127f82011-09-08 17:27:01651// Provide the browser process with current renderer framerate.
652IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS,
653 int /* routing id */,
654 float /* frames per second */)
[email protected]38fe2892013-07-11 00:21:04655
[email protected]09da02f2013-08-14 01:41:59656// Logs events from InstantExtended New Tab Pages.
657IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_LogEvent,
658 int /* page_id */,
659 NTPLoggingEventType /* event */)
[email protected]38fe2892013-07-11 00:21:04660
[email protected]c74876d2013-12-14 00:27:13661// Logs an impression on one of the Most Visited tile on the InstantExtended
662// New Tab Page.
[email protected]abd6c4d2014-03-17 06:48:17663IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedImpression,
664 int /* page_id */,
665 int /* position */,
666 base::string16 /* provider */)
667
668// Logs a navigation on one of the Most Visited tile on the InstantExtended
669// New Tab Page.
670IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedNavigation,
[email protected]c74876d2013-12-14 00:27:13671 int /* page_id */,
672 int /* position */,
673 base::string16 /* provider */)
674
[email protected]d76376d2013-10-31 06:44:42675// The Instant page asks for Chrome identity check against |identity|.
676IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ChromeIdentityCheck,
677 int /* page_id */,
[email protected]428fac12013-12-05 21:38:49678 base::string16 /* identity */)
[email protected]d76376d2013-10-31 06:44:42679
[email protected]38fe2892013-07-11 00:21:04680// Tells InstantExtended to set the omnibox focus state.
681IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FocusOmnibox,
682 int /* page_id */,
683 OmniboxFocusState /* state */)
684
[email protected]6cf51b62013-08-10 13:49:22685// Tells InstantExtended to paste text into the omnibox. If text is empty,
686// the clipboard contents will be pasted. This causes the omnibox dropdown to
687// open.
688IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PasteAndOpenDropdown,
689 int /* page_id */,
[email protected]428fac12013-12-05 21:38:49690 base::string16 /* text to be pasted */)
[email protected]6cf51b62013-08-10 13:49:22691
[email protected]38fe2892013-07-11 00:21:04692// Tells InstantExtended whether the embedded search API is supported.
693// See http://dev.chromium.org/embeddedsearch
694IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined,
695 int /* page_id */,
696 bool /* result */)
697
698// Tells InstantExtended to delete a most visited item.
699IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem,
700 int /* page_id */,
701 GURL /* url */)
702
[email protected]064f57a2013-10-28 21:50:56703// Tells InstantExtended to navigate the active tab to a possibly privileged
[email protected]38fe2892013-07-11 00:21:04704// URL.
[email protected]064f57a2013-10-28 21:50:56705IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_SearchBoxNavigate,
[email protected]38fe2892013-07-11 00:21:04706 int /* page_id */,
707 GURL /* destination */,
[email protected]38fe2892013-07-11 00:21:04708 WindowOpenDisposition /* disposition */,
[email protected]064f57a2013-10-28 21:50:56709 bool /*is_most_visited_item_url*/)
[email protected]38fe2892013-07-11 00:21:04710
711// Tells InstantExtended to undo all most visited item deletions.
712IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions,
713 int /* page_id */)
714
715// Tells InstantExtended to undo one most visited item deletion.
716IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion,
717 int /* page_id */,
718 GURL /* url */)
719
720// Tells InstantExtended whether the page supports voice search.
721IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetVoiceSearchSupported,
722 int /* page_id */,
723 bool /* supported */)
[email protected]88b50b62013-09-01 23:05:06724
[email protected]2309e912013-10-01 01:33:30725// Tells the renderer a list of URLs which should be bounced back to the browser
726// process so that they can be assigned to an Instant renderer.
727IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs,
728 std::vector<GURL> /* search_urls */,
729 GURL /* new_tab_page_url */)
730
[email protected]88b50b62013-09-01 23:05:06731// Tells listeners that a detailed message was reported to the console by
732// WebKit.
733IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DetailedConsoleMessageAdded,
[email protected]428fac12013-12-05 21:38:49734 base::string16 /* message */,
735 base::string16 /* source */,
[email protected]88b50b62013-09-01 23:05:06736 extensions::StackTrace /* stack trace */,
737 int32 /* severity level */)
[email protected]1ef13cf2014-03-21 22:44:01738
739// Sent by the renderer to check if crash reporting is enabled.
740IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled,
741 bool /* enabled */)