blob: 6fe1581e9752bbf30489b593eacdba782609ffd4 [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]79d68c62011-04-15 21:07:0319#include "chrome/common/common_param_traits.h"
[email protected]1c9c7fb2011-03-11 16:38:3820#include "chrome/common/instant_types.h"
[email protected]09da02f2013-08-14 01:41:5921#include "chrome/common/ntp_logging_events.h"
[email protected]ca98bd32013-04-09 05:16:0522#include "chrome/common/omnibox_focus_state.h"
[email protected]c08e7932011-03-29 04:08:1423#include "chrome/common/search_provider.h"
mlamouri89ccc632014-09-16 19:29:5824#include "chrome/common/web_application_info.h"
mukai077089f2014-09-11 18:41:5225#include "components/content_settings/core/common/content_settings.h"
vasiliif62dbf92014-09-05 10:23:1326#include "components/content_settings/core/common/content_settings_pattern.h"
[email protected]08f71012014-07-25 10:27:5427#include "components/content_settings/core/common/content_settings_types.h"
[email protected]512b5bd2013-07-23 20:24:0028#include "components/nacl/common/nacl_types.h"
[email protected]19a5c7442011-10-21 20:00:4129#include "content/public/common/common_param_traits.h"
[email protected]3c71576ce2013-07-23 02:00:0130#include "content/public/common/referrer.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"
mlamouri01fe080d2015-03-11 14:27:1735#include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerPromptReply.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]ffff5b32014-06-25 21:31:0838#include "third_party/skia/include/core/SkBitmap.h"
[email protected]3c3acca2013-02-26 03:07:0739#include "ui/base/window_open_disposition.h"
tfarina3b0452d2014-12-31 15:20:0940#include "ui/gfx/geometry/rect.h"
[email protected]ffff5b32014-06-25 21:31:0841#include "ui/gfx/ipc/gfx_param_traits.h"
[email protected]7a4de7a62010-08-17 18:38:2442
[email protected]44c49c92011-03-28 16:17:2343// Singly-included section for enums and custom IPC traits.
[email protected]d5a04832011-03-12 21:46:2644#ifndef CHROME_COMMON_RENDER_MESSAGES_H_
45#define CHROME_COMMON_RENDER_MESSAGES_H_
[email protected]049eec22010-10-20 21:32:5246
[email protected]51b63f62011-10-05 18:55:4247// This enum is inside a struct so that we can forward-declare the struct in
48// others headers without having to include this one.
49struct ChromeViewHostMsg_GetPluginInfo_Status {
[email protected]51b63f62011-10-05 18:55:4250 enum Value {
51 kAllowed,
[email protected]8aa7a412011-11-07 12:33:4252 kBlocked,
[email protected]6a9d1deb2014-01-13 19:39:4153 kBlockedByPolicy,
[email protected]51b63f62011-10-05 18:55:4254 kDisabled,
55 kNotFound,
[email protected]a1199132012-10-26 22:14:4156 kNPAPINotSupported,
[email protected]8aa7a412011-11-07 12:33:4257 kOutdatedBlocked,
58 kOutdatedDisallowed,
tommyclia23713b2014-12-17 23:17:4459 kPlayImportantContent,
[email protected]8aa7a412011-11-07 12:33:4260 kUnauthorized,
[email protected]51b63f62011-10-05 18:55:4261 };
62
63 ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed) {}
64
65 Value value;
66};
67
[email protected]7d5c3ac2009-02-04 08:58:1968namespace IPC {
69
[email protected]7b291f92009-08-14 05:43:5370template <>
[email protected]610ca832011-10-19 12:59:2071struct ParamTraits<ContentSettingsPattern> {
72 typedef ContentSettingsPattern param_type;
73 static void Write(Message* m, const param_type& p);
[email protected]ce208f872012-03-07 20:42:5674 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
[email protected]610ca832011-10-19 12:59:2075 static void Log(const param_type& p, std::string* l);
76};
77
[email protected]b3df5a42010-05-11 14:31:0978} // namespace IPC
[email protected]9f4db512010-05-10 20:21:4179
[email protected]5a52f162008-08-27 04:15:3180#endif // CHROME_COMMON_RENDER_MESSAGES_H_
[email protected]d5a04832011-03-12 21:46:2681
[email protected]778574e2011-03-21 22:03:5082#define IPC_MESSAGE_START ChromeMsgStart
[email protected]d5a04832011-03-12 21:46:2683
[email protected]6a9d1deb2014-01-13 19:39:4184IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status::Value,
85 ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized)
anujk.sharmaef612ee2014-10-09 12:16:3086IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusChangeReason,
87 OMNIBOX_FOCUS_CHANGE_REASON_LAST)
88IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusState, OMNIBOX_FOCUS_STATE_LAST)
anujk.sharmabca743c2014-09-29 03:52:3989IPC_ENUM_TRAITS_MAX_VALUE(search_provider::OSDDType,
90 search_provider::OSDD_TYPE_LAST)
[email protected]c08e7932011-03-29 04:08:1491IPC_ENUM_TRAITS(search_provider::InstallState)
[email protected]a6827652012-11-20 23:41:0892IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment)
93IPC_ENUM_TRAITS(ThemeBackgroundImageTiling)
[email protected]a1221aea2013-11-07 01:31:3094IPC_ENUM_TRAITS(blink::WebConsoleMessage::Level)
[email protected]9b003482013-05-21 14:00:1795IPC_ENUM_TRAITS(content::TopControlsState)
[email protected]fffaf972011-03-24 01:34:3596
[email protected]51b63f62011-10-05 18:55:4297IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status)
98IPC_STRUCT_TRAITS_MEMBER(value)
99IPC_STRUCT_TRAITS_END()
100
[email protected]cd33d282012-09-21 12:53:04101// Output parameters for ChromeViewHostMsg_GetPluginInfo message.
102IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output)
103 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status)
[email protected]d7bd3e52013-07-21 04:29:20104 IPC_STRUCT_MEMBER(content::WebPluginInfo, plugin)
[email protected]cd33d282012-09-21 12:53:04105 IPC_STRUCT_MEMBER(std::string, actual_mime_type)
106 IPC_STRUCT_MEMBER(std::string, group_identifier)
[email protected]428fac12013-12-05 21:38:49107 IPC_STRUCT_MEMBER(base::string16, group_name)
[email protected]cd33d282012-09-21 12:53:04108IPC_STRUCT_END()
109
[email protected]610ca832011-10-19 12:59:20110IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts)
111 IPC_STRUCT_TRAITS_MEMBER(scheme)
112 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard)
113 IPC_STRUCT_TRAITS_MEMBER(host)
114 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard)
115 IPC_STRUCT_TRAITS_MEMBER(port)
116 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard)
117 IPC_STRUCT_TRAITS_MEMBER(path)
[email protected]ae689aab2012-01-23 17:52:08118 IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard)
[email protected]610ca832011-10-19 12:59:20119IPC_STRUCT_TRAITS_END()
120
[email protected]c14406092011-10-27 13:43:42121IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource)
122 IPC_STRUCT_TRAITS_MEMBER(primary_pattern)
123 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern)
124 IPC_STRUCT_TRAITS_MEMBER(setting)
125 IPC_STRUCT_TRAITS_MEMBER(source)
126 IPC_STRUCT_TRAITS_MEMBER(incognito)
127IPC_STRUCT_TRAITS_END()
128
kmadhusu562c49c82014-11-18 02:08:03129IPC_STRUCT_TRAITS_BEGIN(EmbeddedSearchRequestParams)
130 IPC_STRUCT_TRAITS_MEMBER(search_query)
131 IPC_STRUCT_TRAITS_MEMBER(original_query)
132 IPC_STRUCT_TRAITS_MEMBER(rlz_parameter_value)
133 IPC_STRUCT_TRAITS_MEMBER(input_encoding)
134 IPC_STRUCT_TRAITS_MEMBER(assisted_query_stats)
135IPC_STRUCT_TRAITS_END()
136
[email protected]987fad782013-08-28 06:23:18137IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion)
138 IPC_STRUCT_TRAITS_MEMBER(text)
139 IPC_STRUCT_TRAITS_MEMBER(metadata)
140IPC_STRUCT_TRAITS_END()
141
[email protected]e7868c82013-03-12 03:55:56142IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem)
[email protected]dfee2f62013-02-22 06:46:06143 IPC_STRUCT_TRAITS_MEMBER(url)
144 IPC_STRUCT_TRAITS_MEMBER(title)
145IPC_STRUCT_TRAITS_END()
146
[email protected]edece212011-11-16 11:56:56147IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules)
148 IPC_STRUCT_TRAITS_MEMBER(image_rules)
149 IPC_STRUCT_TRAITS_MEMBER(script_rules)
150IPC_STRUCT_TRAITS_END()
151
[email protected]a8c28472013-07-17 05:34:29152IPC_STRUCT_TRAITS_BEGIN(RGBAColor)
153 IPC_STRUCT_TRAITS_MEMBER(r)
154 IPC_STRUCT_TRAITS_MEMBER(g)
155 IPC_STRUCT_TRAITS_MEMBER(b)
156 IPC_STRUCT_TRAITS_MEMBER(a)
157IPC_STRUCT_TRAITS_END()
158
[email protected]a6827652012-11-20 23:41:08159IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo)
[email protected]a8c28472013-07-17 05:34:29160 IPC_STRUCT_TRAITS_MEMBER(using_default_theme)
161 IPC_STRUCT_TRAITS_MEMBER(background_color)
162 IPC_STRUCT_TRAITS_MEMBER(text_color)
163 IPC_STRUCT_TRAITS_MEMBER(link_color)
164 IPC_STRUCT_TRAITS_MEMBER(text_color_light)
165 IPC_STRUCT_TRAITS_MEMBER(header_color)
166 IPC_STRUCT_TRAITS_MEMBER(section_border_color)
[email protected]a6827652012-11-20 23:41:08167 IPC_STRUCT_TRAITS_MEMBER(theme_id)
168 IPC_STRUCT_TRAITS_MEMBER(image_horizontal_alignment)
169 IPC_STRUCT_TRAITS_MEMBER(image_vertical_alignment)
170 IPC_STRUCT_TRAITS_MEMBER(image_tiling)
171 IPC_STRUCT_TRAITS_MEMBER(image_height)
[email protected]5189fa12013-03-20 23:00:05172 IPC_STRUCT_TRAITS_MEMBER(has_attribution)
[email protected]a8c28472013-07-17 05:34:29173 IPC_STRUCT_TRAITS_MEMBER(logo_alternate)
[email protected]a6827652012-11-20 23:41:08174IPC_STRUCT_TRAITS_END()
175
[email protected]a1221aea2013-11-07 01:31:30176IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStat)
[email protected]fffaf972011-03-24 01:34:35177 IPC_STRUCT_TRAITS_MEMBER(count)
178 IPC_STRUCT_TRAITS_MEMBER(size)
179 IPC_STRUCT_TRAITS_MEMBER(liveSize)
180 IPC_STRUCT_TRAITS_MEMBER(decodedSize)
181IPC_STRUCT_TRAITS_END()
182
[email protected]a1221aea2013-11-07 01:31:30183IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStats)
[email protected]fffaf972011-03-24 01:34:35184 IPC_STRUCT_TRAITS_MEMBER(images)
185 IPC_STRUCT_TRAITS_MEMBER(cssStyleSheets)
186 IPC_STRUCT_TRAITS_MEMBER(scripts)
187 IPC_STRUCT_TRAITS_MEMBER(xslStyleSheets)
188 IPC_STRUCT_TRAITS_MEMBER(fonts)
189IPC_STRUCT_TRAITS_END()
190
[email protected]a1221aea2013-11-07 01:31:30191IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::UsageStats)
[email protected]fffaf972011-03-24 01:34:35192 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity)
193 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity)
194 IPC_STRUCT_TRAITS_MEMBER(capacity)
195 IPC_STRUCT_TRAITS_MEMBER(liveSize)
196 IPC_STRUCT_TRAITS_MEMBER(deadSize)
197IPC_STRUCT_TRAITS_END()
198
[email protected]09da02f2013-08-14 01:41:59199IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType,
johnmec78637e2014-10-20 11:24:45200 NTP_EVENT_TYPE_LAST)
[email protected]09da02f2013-08-14 01:41:59201
mlamouri89ccc632014-09-16 19:29:58202IPC_ENUM_TRAITS_MAX_VALUE(WebApplicationInfo::MobileCapable,
203 WebApplicationInfo::MOBILE_CAPABLE_APPLE)
204
205IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo)
206 IPC_STRUCT_TRAITS_MEMBER(url)
207 IPC_STRUCT_TRAITS_MEMBER(width)
208 IPC_STRUCT_TRAITS_MEMBER(height)
209 IPC_STRUCT_TRAITS_MEMBER(data)
210IPC_STRUCT_TRAITS_END()
211
212IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo)
213 IPC_STRUCT_TRAITS_MEMBER(title)
214 IPC_STRUCT_TRAITS_MEMBER(description)
215 IPC_STRUCT_TRAITS_MEMBER(app_url)
216 IPC_STRUCT_TRAITS_MEMBER(icons)
217 IPC_STRUCT_TRAITS_MEMBER(mobile_capable)
218IPC_STRUCT_TRAITS_END()
219
mlamouri01fe080d2015-03-11 14:27:17220IPC_ENUM_TRAITS_MAX_VALUE(blink::WebAppBannerPromptReply,
221 blink::WebAppBannerPromptReply::Cancel)
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]bd35d3a2014-06-22 01:12:51227#if !defined(OS_ANDROID) && !defined(OS_IOS)
[email protected]db3be76f2014-03-25 02:27:47228// For WebUI testing, this message requests JavaScript to be executed at a time
229// which is late enough to not be thrown out, and early enough to be before
230// onload events are fired.
231IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript,
232 base::string16 /* javascript */)
[email protected]bd35d3a2014-06-22 01:12:51233#endif
[email protected]350019f2011-08-02 04:18:33234
[email protected]edece212011-11-16 11:56:56235// Set the content setting rules stored by the renderer.
236IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules,
237 RendererContentSettingRules /* rules */)
[email protected]c14406092011-10-27 13:43:42238
[email protected]a86c0e962013-12-17 17:10:39239// Tells the render frame to load all blocked plugins with the given identifier.
[email protected]51ffaf72012-05-09 21:00:49240IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins,
241 std::string /* identifier */)
[email protected]d5a04832011-03-12 21:46:26242
[email protected]d5a04832011-03-12 21:46:26243// Asks the renderer to send back stats on the WebCore cache broken down by
244// resource types.
[email protected]2ccf45c2011-08-19 23:35:50245IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats)
[email protected]d5a04832011-03-12 21:46:26246
[email protected]63a8ba12011-04-29 05:42:22247// Tells the renderer to create a FieldTrial, and by using a 100% probability
248// for the FieldTrial, forces the FieldTrial to have assigned group name.
[email protected]2ccf45c2011-08-19 23:35:50249IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup,
[email protected]63a8ba12011-04-29 05:42:22250 std::string /* field trial name */,
251 std::string /* group name that was assigned. */)
252
[email protected]d5a04832011-03-12 21:46:26253// Asks the renderer to send back V8 heap stats.
[email protected]2ccf45c2011-08-19 23:35:50254IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats)
[email protected]d5a04832011-03-12 21:46:26255
[email protected]8133e412014-05-31 00:51:38256IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetPageSequenceNumber,
257 int /* page_seq_no */)
258
[email protected]c55e3b82012-08-09 15:27:05259IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant)
[email protected]d5a04832011-03-12 21:46:26260
[email protected]987fad782013-08-28 06:23:18261IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetDisplayInstantResults,
262 bool /* display_instant_results */)
263
[email protected]8d4c276d2013-05-29 19:39:52264IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFocusChanged,
265 OmniboxFocusState /* new_focus_state */,
266 OmniboxFocusChangeReason /* reason */)
[email protected]6a6811a2012-12-12 04:18:16267
[email protected]3296da42014-01-30 04:12:15268IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMarginChange, int /* start */)
[email protected]0d0b4a42013-06-14 00:46:26269
[email protected]e7868c82013-03-12 03:55:56270IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged,
[email protected]ab01dd752013-06-08 05:13:36271 std::vector<InstantMostVisitedItem> /* items */)
[email protected]dfee2f62013-02-22 06:46:06272
[email protected]38fe2892013-07-11 00:21:04273IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation,
274 bool /* is_app_launcher_enabled */)
[email protected]dfee2f62013-02-22 06:46:06275
[email protected]38fe2892013-07-11 00:21:04276IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress,
277 bool /* input_in_progress */)
[email protected]dfee2f62013-02-22 06:46:06278
[email protected]987fad782013-08-28 06:23:18279IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch,
280 InstantSuggestion /* suggestion */)
281
kmadhusu562c49c82014-11-18 02:08:03282IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxSubmit,
283 base::string16 /* value */,
284 EmbeddedSearchRequestParams /* params */)
[email protected]38fe2892013-07-11 00:21:04285
286IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged,
287 ThemeBackgroundInfo /* value */)
[email protected]dfee2f62013-02-22 06:46:06288
beaudoin709ff022014-11-21 22:06:02289IPC_MESSAGE_ROUTED1(ChromeViewMsg_HistorySyncCheckResult,
290 bool /* sync_history */)
291
[email protected]d76376d2013-10-31 06:44:42292IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult,
[email protected]428fac12013-12-05 21:38:49293 base::string16 /* identity */,
[email protected]d76376d2013-10-31 06:44:42294 bool /* identity_match */)
295
[email protected]3473ae02013-06-07 00:28:08296IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch)
297
[email protected]d5a04832011-03-12 21:46:26298// Sent on process startup to indicate whether this process is running in
299// incognito mode.
[email protected]2ccf45c2011-08-19 23:35:50300IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess,
[email protected]d5a04832011-03-12 21:46:26301 bool /* is_incognito_processs */)
302
[email protected]68cafdb2011-06-10 21:42:18303// Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent.
[email protected]2ccf45c2011-08-19 23:35:50304IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent,
[email protected]68cafdb2011-06-10 21:42:18305 bool /* allowed */)
306
307// Sent in response to ViewHostMsg_DidBlockRunningInsecureContent.
[email protected]2ccf45c2011-08-19 23:35:50308IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent,
[email protected]68cafdb2011-06-10 21:42:18309 bool /* allowed */)
310
[email protected]a86c0e962013-12-17 17:10:39311IPC_MESSAGE_ROUTED0(ChromeViewMsg_ReloadFrame)
312
[email protected]a230f2f2014-05-24 01:37:54313// Tells the renderer whether or not a file system access has been allowed.
314IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestFileSystemAccessAsyncResponse,
315 int /* request_id */,
316 bool /* allowed */)
317
[email protected]8c40da62011-07-13 22:58:46318// Sent when the profile changes the kSafeBrowsingEnabled preference.
[email protected]2ccf45c2011-08-19 23:35:50319IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection,
[email protected]8c40da62011-07-13 22:58:46320 bool /* enable_phishing_detection */)
321
[email protected]31dd25ab2013-07-31 21:59:05322// Asks the renderer for a thumbnail of the image selected by the most
323// recently opened context menu, if there is one. If the image's area
324// is greater than thumbnail_min_area it will be downscaled to
325// be within thumbnail_max_size. The possibly downsampled image will be
326// returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message.
327IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode,
328 int /* thumbnail_min_area_pixels */,
329 gfx::Size /* thumbnail_max_size_pixels */)
330
[email protected]9b003482013-05-21 14:00:17331// Notifies the renderer whether hiding/showing the top controls is enabled,
332// what the current state should be, and whether or not to animate to the
333// proper state.
334IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState,
335 content::TopControlsState /* constraints */,
336 content::TopControlsState /* current */,
337 bool /* animate */)
338
[email protected]31dd25ab2013-07-31 21:59:05339
[email protected]67264062013-07-25 12:39:26340// Updates the window features of the render view.
341IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures,
[email protected]a1221aea2013-11-07 01:31:30342 blink::WebWindowFeatures /* window_features */)
[email protected]67264062013-07-25 12:39:26343
jbromanca2f3592014-12-13 04:03:08344// Responds to the request for a thumbnail.
345// Thumbnail data will be empty is a thumbnail could not be produced.
[email protected]2f3bc6512013-08-28 03:56:27346IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK,
jbromanca2f3592014-12-13 04:03:08347 std::string /* JPEG-encoded thumbnail data */,
[email protected]2f3bc6512013-08-28 03:56:27348 gfx::Size /* original size of the image */)
[email protected]31dd25ab2013-07-31 21:59:05349
mlamouri89ccc632014-09-16 19:29:58350// Requests application info for the page. The renderer responds back with
351// ChromeViewHostMsg_DidGetWebApplicationInfo.
352IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetWebApplicationInfo)
[email protected]33b1c082014-02-01 01:46:35353
mlamouri89ccc632014-09-16 19:29:58354#if defined(OS_ANDROID)
[email protected]33b1c082014-02-01 01:46:35355// Asks the renderer to return information about the given meta tag.
356IPC_MESSAGE_ROUTED2(ChromeViewMsg_RetrieveMetaTagContent,
357 GURL /* expected_url */,
358 std::string /* tag_name */ )
[email protected]51208252013-08-19 21:05:30359#endif // defined(OS_ANDROID)
[email protected]31dd25ab2013-07-31 21:59:05360
[email protected]914cf6712013-12-05 01:14:06361// chrome.principals messages ------------------------------------------------
362
363// Message sent from the renderer to the browser to get the list of browser
364// managed accounts for the given origin.
365IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts,
366 GURL /* current URL */,
367 std::vector<std::string> /* managed accounts */)
368
369// Message sent from the renderer to the browser to show the browser account
370// management UI.
371IPC_MESSAGE_CONTROL0(ChromeViewHostMsg_ShowBrowserAccountManagementUI)
372
[email protected]21d898342011-08-23 18:14:41373// JavaScript related messages -----------------------------------------------
374
[email protected]a86c0e962013-12-17 17:10:39375// Tells the frame it is displaying an interstitial page.
[email protected]6f9f7d82011-12-08 12:13:34376IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial)
377
[email protected]7e771bfb2013-01-14 23:23:21378// Provides the renderer with the results of the browser's investigation into
379// why a recent main frame load failed (currently, just DNS probe result).
380// NetErrorHelper will receive this mesage and replace or update the error
381// page with more specific troubleshooting suggestions.
382IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo,
[email protected]2ea1efe2013-07-17 05:23:13383 int /* DNS probe status */)
[email protected]7e771bfb2013-01-14 23:23:21384
[email protected]26bd3893c2014-04-15 18:59:58385// Provides the information needed by the renderer process to contact a
386// navigation correction service. Handled by the NetErrorHelper.
387IPC_MESSAGE_ROUTED5(ChromeViewMsg_SetNavigationCorrectionInfo,
388 GURL /* Navigation correction service base URL */,
389 std::string /* language */,
390 std::string /* origin_country */,
391 std::string /* API key to use */,
392 GURL /* Google Search URL to use */)
[email protected]3d612f52014-01-13 23:48:29393
[email protected]d5a04832011-03-12 21:46:26394//-----------------------------------------------------------------------------
[email protected]63f72132012-04-18 18:02:44395// Misc messages
[email protected]d5a04832011-03-12 21:46:26396// These are messages sent from the renderer to the browser process.
397
[email protected]2ccf45c2011-08-19 23:35:50398IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats,
[email protected]a1221aea2013-11-07 01:31:30399 blink::WebCache::UsageStats /* stats */)
[email protected]d5a04832011-03-12 21:46:26400
[email protected]d5a04832011-03-12 21:46:26401// Tells the browser that content in the current page was blocked due to the
402// user's content settings.
wfh303f76b2014-12-09 22:52:59403IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ContentBlocked,
404 ContentSettingsType /* type of blocked content */,
405 base::string16 /* details on blocked content */)
[email protected]d5a04832011-03-12 21:46:26406
[email protected]5327dfb2011-05-03 17:50:36407// Sent by the renderer process to check whether access to web databases is
[email protected]bac33eb2011-05-04 01:47:49408// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50409IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase,
[email protected]a86c0e962013-12-17 17:10:39410 int /* render_frame_id */,
[email protected]9a611a92011-05-07 17:06:18411 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15412 GURL /* top origin url */,
[email protected]428fac12013-12-05 21:38:49413 base::string16 /* database name */,
414 base::string16 /* database display name */,
[email protected]8c276642011-05-06 09:41:00415 bool /* allowed */)
[email protected]bac33eb2011-05-04 01:47:49416
417// Sent by the renderer process to check whether access to DOM Storage is
418// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50419IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage,
[email protected]a86c0e962013-12-17 17:10:39420 int /* render_frame_id */,
[email protected]bac33eb2011-05-04 01:47:49421 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15422 GURL /* top origin url */,
[email protected]c729db82011-11-23 17:37:27423 bool /* if true local storage, otherwise session */,
[email protected]8c276642011-05-06 09:41:00424 bool /* allowed */)
[email protected]5327dfb2011-05-03 17:50:36425
[email protected]45316d62011-05-12 18:15:30426// Sent by the renderer process to check whether access to FileSystem is
427// granted by content settings.
[email protected]a230f2f2014-05-24 01:37:54428IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_RequestFileSystemAccessSync,
[email protected]a86c0e962013-12-17 17:10:39429 int /* render_frame_id */,
[email protected]45316d62011-05-12 18:15:30430 GURL /* origin_url */,
[email protected]c0a45a982011-05-25 16:58:15431 GURL /* top origin url */,
[email protected]45316d62011-05-12 18:15:30432 bool /* allowed */)
433
[email protected]a230f2f2014-05-24 01:37:54434// Sent by the renderer process to check whether access to FileSystem is
435// granted by content settings.
436IPC_MESSAGE_CONTROL4(ChromeViewHostMsg_RequestFileSystemAccessAsync,
437 int /* render_frame_id */,
438 int /* request_id */,
439 GURL /* origin_url */,
440 GURL /* top origin url */)
441
[email protected]9a611a92011-05-07 17:06:18442// Sent by the renderer process to check whether access to Indexed DBis
443// granted by content settings.
[email protected]2ccf45c2011-08-19 23:35:50444IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB,
[email protected]a86c0e962013-12-17 17:10:39445 int /* render_frame_id */,
[email protected]c0a45a982011-05-25 16:58:15446 GURL /* origin_url */,
447 GURL /* top origin url */,
[email protected]428fac12013-12-05 21:38:49448 base::string16 /* database name */,
[email protected]9a611a92011-05-07 17:06:18449 bool /* allowed */)
[email protected]5327dfb2011-05-03 17:50:36450
[email protected]51b63f62011-10-05 18:55:42451// Return information about a plugin for the given URL and MIME type.
452// In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows
tommyclie86b2982015-03-16 20:16:45453// about specific reasons why a plugin can't be used, for example because it's
[email protected]51b63f62011-10-05 18:55:42454// disabled.
[email protected]cd33d282012-09-21 12:53:04455IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo,
[email protected]60eca4eb2013-12-06 00:02:16456 int /* render_frame_id */,
[email protected]51b63f62011-10-05 18:55:42457 GURL /* url */,
458 GURL /* top origin url */,
459 std::string /* mime_type */,
[email protected]cd33d282012-09-21 12:53:04460 ChromeViewHostMsg_GetPluginInfo_Output /* output */)
[email protected]51b63f62011-10-05 18:55:42461
[email protected]bd35d3a2014-06-22 01:12:51462#if defined(ENABLE_PEPPER_CDMS)
[email protected]4cbbeb42014-07-22 19:29:38463// Returns whether any internal plugin supporting |mime_type| is registered and
464// enabled. Does not determine whether the plugin can actually be instantiated
465// (e.g. whether it has all its dependencies).
466// When the returned *|is_available| is true, |additional_param_names| and
[email protected]c33fa1e2013-10-29 06:08:06467// |additional_param_values| contain the name-value pairs, if any, specified
[email protected]4cbbeb42014-07-22 19:29:38468// for the *first* non-disabled plugin found that is registered for |mime_type|.
[email protected]c33fa1e2013-10-29 06:08:06469IPC_SYNC_MESSAGE_CONTROL1_3(
[email protected]4cbbeb42014-07-22 19:29:38470 ChromeViewHostMsg_IsInternalPluginAvailableForMimeType,
[email protected]3627aa3f2013-09-17 22:32:51471 std::string /* mime_type */,
[email protected]4cbbeb42014-07-22 19:29:38472 bool /* is_available */,
[email protected]c33fa1e2013-10-29 06:08:06473 std::vector<base::string16> /* additional_param_names */,
474 std::vector<base::string16> /* additional_param_values */)
[email protected]bd35d3a2014-06-22 01:12:51475#endif
[email protected]3627aa3f2013-09-17 22:32:51476
[email protected]43b7eaca2012-01-12 17:27:28477#if defined(ENABLE_PLUGIN_INSTALLATION)
tommyclie86b2982015-03-16 20:16:45478// Tells the browser to search for a plugin that can handle the given MIME
[email protected]1d697f32011-11-28 11:57:51479// type. The result will be sent asynchronously to the routing ID
480// |placeholder_id|.
481IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin,
482 int /* placeholder_id */,
483 std::string /* mime_type */)
484
tommyclie86b2982015-03-16 20:16:45485// Notifies the browser that a missing plugin placeholder has been removed, so
[email protected]e2424012012-02-03 10:26:50486// the corresponding PluginPlaceholderHost can be deleted.
487IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost,
[email protected]3240d2502012-01-26 17:00:33488 int /* placeholder_id */)
489
tommyclie86b2982015-03-16 20:16:45490// Notifies a missing plugin placeholder that a plugin with name |plugin_name|
[email protected]1d697f32011-11-28 11:57:51491// has been found.
492IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin,
[email protected]428fac12013-12-05 21:38:49493 base::string16 /* plugin_name */)
[email protected]1d697f32011-11-28 11:57:51494
tommyclie86b2982015-03-16 20:16:45495// Notifies a missing plugin placeholder that no plugin has been found.
[email protected]1d697f32011-11-28 11:57:51496IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin)
497
tommyclie86b2982015-03-16 20:16:45498// Notifies a missing plugin placeholder that we have started downloading
499// the plugin.
[email protected]0dd9e8b2012-01-04 13:36:16500IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin)
501
tommyclie86b2982015-03-16 20:16:45502// Notifies a missing plugin placeholder that we have finished downloading
503// the plugin.
[email protected]0dd9e8b2012-01-04 13:36:16504IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin)
505
tommyclie86b2982015-03-16 20:16:45506// Notifies a missing plugin placeholder that there was an error downloading
507// the plugin.
[email protected]725f6882012-01-13 18:50:06508IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin,
509 std::string /* message */)
[email protected]4f62d8052012-01-18 16:16:59510#endif // defined(ENABLE_PLUGIN_INSTALLATION)
511
tommyclie86b2982015-03-16 20:16:45512// Notifies a missing plugin placeholder that the user cancelled downloading
513// the plugin.
[email protected]1a86f752012-02-10 13:20:36514IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin)
515
[email protected]4f62d8052012-01-18 16:16:59516// Tells the browser to open chrome://plugins in a new tab. We use a separate
517// message because renderer processes aren't allowed to directly navigate to
518// chrome:// URLs.
519IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins)
[email protected]725f6882012-01-13 18:50:06520
tommyclie86b2982015-03-16 20:16:45521// Tells the browser that there was an error loading a plugin.
[email protected]cc5f7812012-05-31 13:50:34522IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin,
[email protected]a7329162013-02-07 19:21:48523 base::FilePath /* plugin_path */)
[email protected]cc5f7812012-05-31 13:50:34524
tommyclie86b2982015-03-16 20:16:45525// Tells the browser that we blocked a plugin because NPAPI is not supported.
[email protected]a1199132012-10-26 22:14:41526IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported,
527 std::string /* identifer */)
528
mlamouri01fe080d2015-03-11 14:27:17529// Asks the renderer whether an app banner should be shown. It will reply with
530// ChromeViewHostMsg_AppBannerPromptReply.
531IPC_MESSAGE_ROUTED2(ChromeViewMsg_AppBannerPromptRequest,
532 int /* request_id */,
533 std::string /* platform */)
534
[email protected]cc7b11012013-05-02 22:02:53535// Tells the renderer that the NPAPI cannot be used. For example Ash on windows.
536IPC_MESSAGE_ROUTED0(ChromeViewMsg_NPAPINotSupported)
537
[email protected]d5a04832011-03-12 21:46:26538// Notification that the page has an OpenSearch description document
539// associated with it.
[email protected]2ccf45c2011-08-19 23:35:50540IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD,
[email protected]0911fd182014-05-22 08:02:35541 GURL /* page_url */,
542 GURL /* osdd_url */,
[email protected]c08e7932011-03-29 04:08:14543 search_provider::OSDDType)
[email protected]d5a04832011-03-12 21:46:26544
545// Find out if the given url's security origin is installed as a search
546// provider.
[email protected]2ccf45c2011-08-19 23:35:50547IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState,
[email protected]c08e7932011-03-29 04:08:14548 GURL /* page url */,
549 GURL /* inquiry url */,
550 search_provider::InstallState /* install */)
[email protected]d5a04832011-03-12 21:46:26551
[email protected]d5a04832011-03-12 21:46:26552// Sends back stats about the V8 heap.
[email protected]2ccf45c2011-08-19 23:35:50553IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats,
[email protected]d5a04832011-03-12 21:46:26554 int /* size of heap (allocated from the OS) */,
555 int /* bytes in use */)
556
[email protected]d5a04832011-03-12 21:46:26557// Notifies when a plugin couldn't be loaded because it's outdated.
[email protected]2ccf45c2011-08-19 23:35:50558IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin,
[email protected]27c483892012-02-09 15:59:10559 int /* placeholder ID */,
tommyclie86b2982015-03-16 20:16:45560 std::string /* plugin group identifier */)
[email protected]d5a04832011-03-12 21:46:26561
[email protected]e2424012012-02-03 10:26:50562// Notifies when a plugin couldn't be loaded because it requires
563// user authorization.
[email protected]51ffaf72012-05-09 21:00:49564IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin,
[email protected]428fac12013-12-05 21:38:49565 base::string16 /* name */,
tommyclie86b2982015-03-16 20:16:45566 std::string /* plugin group identifier */)
[email protected]e2424012012-02-03 10:26:50567
[email protected]d5a04832011-03-12 21:46:26568// Provide the browser process with information about the WebCore resource
[email protected]872ae5b2011-05-26 20:20:50569// cache and current renderer framerate.
[email protected]2ccf45c2011-08-19 23:35:50570IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats,
[email protected]a1221aea2013-11-07 01:31:30571 blink::WebCache::ResourceTypeStats)
[email protected]d5a04832011-03-12 21:46:26572
[email protected]4c94b8c2011-05-17 16:17:45573// Message sent from the renderer to the browser to notify it of a
574// window.print() call which should cancel the prerender. The message is sent
575// only when the renderer is prerendering.
[email protected]2ccf45c2011-08-19 23:35:50576IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting)
[email protected]4c94b8c2011-05-17 16:17:45577
[email protected]68cafdb2011-06-10 21:42:18578// Sent when the renderer was prevented from displaying insecure content in
579// a secure page by a security policy. The page may appear incomplete.
[email protected]2ccf45c2011-08-19 23:35:50580IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent)
[email protected]68cafdb2011-06-10 21:42:18581
mlamouri89ccc632014-09-16 19:29:58582IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_DidGetWebApplicationInfo,
583 WebApplicationInfo)
[email protected]33b1c082014-02-01 01:46:35584
mlamouri89ccc632014-09-16 19:29:58585#if defined(OS_ANDROID)
[email protected]33b1c082014-02-01 01:46:35586IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveMetaTagContent,
587 bool /* success */,
588 std::string /* tag_name */,
589 std::string /* tag_content */,
590 GURL /* expected_url */)
[email protected]51208252013-08-19 21:05:30591#endif // defined(OS_ANDROID)
592
[email protected]09da02f2013-08-14 01:41:59593// Logs events from InstantExtended New Tab Pages.
594IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_LogEvent,
[email protected]8133e412014-05-31 00:51:38595 int /* page_seq_no */,
[email protected]09da02f2013-08-14 01:41:59596 NTPLoggingEventType /* event */)
[email protected]38fe2892013-07-11 00:21:04597
[email protected]c74876d2013-12-14 00:27:13598// Logs an impression on one of the Most Visited tile on the InstantExtended
599// New Tab Page.
[email protected]abd6c4d2014-03-17 06:48:17600IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedImpression,
[email protected]8133e412014-05-31 00:51:38601 int /* page_seq_no */,
[email protected]abd6c4d2014-03-17 06:48:17602 int /* position */,
603 base::string16 /* provider */)
604
605// Logs a navigation on one of the Most Visited tile on the InstantExtended
606// New Tab Page.
607IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedNavigation,
[email protected]8133e412014-05-31 00:51:38608 int /* page_seq_no */,
[email protected]c74876d2013-12-14 00:27:13609 int /* position */,
610 base::string16 /* provider */)
611
beaudoin709ff022014-11-21 22:06:02612// The Instant page asks whether the user syncs its history.
613IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_HistorySyncCheck,
614 int /* page_seq_no */)
615
[email protected]d76376d2013-10-31 06:44:42616// The Instant page asks for Chrome identity check against |identity|.
617IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ChromeIdentityCheck,
[email protected]8133e412014-05-31 00:51:38618 int /* page_seq_no */,
[email protected]428fac12013-12-05 21:38:49619 base::string16 /* identity */)
[email protected]d76376d2013-10-31 06:44:42620
[email protected]38fe2892013-07-11 00:21:04621// Tells InstantExtended to set the omnibox focus state.
622IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FocusOmnibox,
[email protected]8133e412014-05-31 00:51:38623 int /* page_seq_no */,
[email protected]38fe2892013-07-11 00:21:04624 OmniboxFocusState /* state */)
625
[email protected]6cf51b62013-08-10 13:49:22626// Tells InstantExtended to paste text into the omnibox. If text is empty,
627// the clipboard contents will be pasted. This causes the omnibox dropdown to
628// open.
629IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PasteAndOpenDropdown,
[email protected]8133e412014-05-31 00:51:38630 int /* page_seq_no */,
[email protected]428fac12013-12-05 21:38:49631 base::string16 /* text to be pasted */)
[email protected]6cf51b62013-08-10 13:49:22632
[email protected]38fe2892013-07-11 00:21:04633// Tells InstantExtended whether the embedded search API is supported.
634// See http://dev.chromium.org/embeddedsearch
635IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined,
[email protected]8133e412014-05-31 00:51:38636 int /* page_seq_no */,
[email protected]38fe2892013-07-11 00:21:04637 bool /* result */)
638
639// Tells InstantExtended to delete a most visited item.
640IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem,
[email protected]8133e412014-05-31 00:51:38641 int /* page_seq_no */,
[email protected]38fe2892013-07-11 00:21:04642 GURL /* url */)
643
[email protected]064f57a2013-10-28 21:50:56644// Tells InstantExtended to navigate the active tab to a possibly privileged
[email protected]38fe2892013-07-11 00:21:04645// URL.
[email protected]064f57a2013-10-28 21:50:56646IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_SearchBoxNavigate,
[email protected]8133e412014-05-31 00:51:38647 int /* page_seq_no */,
[email protected]38fe2892013-07-11 00:21:04648 GURL /* destination */,
[email protected]38fe2892013-07-11 00:21:04649 WindowOpenDisposition /* disposition */,
[email protected]064f57a2013-10-28 21:50:56650 bool /*is_most_visited_item_url*/)
[email protected]38fe2892013-07-11 00:21:04651
652// Tells InstantExtended to undo all most visited item deletions.
653IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions,
[email protected]8133e412014-05-31 00:51:38654 int /* page_seq_no */)
[email protected]38fe2892013-07-11 00:21:04655
656// Tells InstantExtended to undo one most visited item deletion.
657IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion,
[email protected]8133e412014-05-31 00:51:38658 int /* page_seq_no */,
[email protected]38fe2892013-07-11 00:21:04659 GURL /* url */)
660
661// Tells InstantExtended whether the page supports voice search.
662IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetVoiceSearchSupported,
[email protected]8133e412014-05-31 00:51:38663 int /* page_seq_no */,
[email protected]38fe2892013-07-11 00:21:04664 bool /* supported */)
[email protected]88b50b62013-09-01 23:05:06665
[email protected]2309e912013-10-01 01:33:30666// Tells the renderer a list of URLs which should be bounced back to the browser
667// process so that they can be assigned to an Instant renderer.
668IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs,
669 std::vector<GURL> /* search_urls */,
670 GURL /* new_tab_page_url */)
671
[email protected]22498e02014-05-29 17:47:16672#if defined(ENABLE_PLUGINS)
[email protected]1ef13cf2014-03-21 22:44:01673// Sent by the renderer to check if crash reporting is enabled.
674IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled,
675 bool /* enabled */)
[email protected]22498e02014-05-29 17:47:16676#endif
georgesaka0a12d52015-01-14 22:32:40677
mlamouri01fe080d2015-03-11 14:27:17678// Tells the browser process whether the web page wants the banner to be shown.
679// This is a reply from ChromeViewMsg_AppBannerPromptRequest.
680IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_AppBannerPromptReply,
681 int /* request_id */,
682 blink::WebAppBannerPromptReply /* reply */)
683
georgesaka0a12d52015-01-14 22:32:40684// Sent by the renderer to indicate that a fields trial has been activated.
685IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_FieldTrialActivated,
686 std::string /* name */)