[email protected] | 0dd9e8b | 2012-01-04 13:36:16 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
license.bot | bf09a50 | 2008-08-24 00:55:55 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 4 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 5 | // Multiply-included file, no traditional include guard. |
| 6 | #include <map> |
| 7 | #include <set> |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 8 | #include <string> |
| 9 | #include <vector> |
| 10 | |
| 11 | #include "base/basictypes.h" |
[email protected] | 5799981 | 2013-02-24 05:40:52 | [diff] [blame] | 12 | #include "base/files/file_path.h" |
[email protected] | 65654eeb | 2013-07-17 06:51:24 | [diff] [blame] | 13 | #include "base/memory/shared_memory.h" |
[email protected] | f15e5812 | 2013-07-23 15:42:34 | [diff] [blame] | 14 | #include "base/process/process.h" |
[email protected] | 3c8a6b0 | 2013-06-11 00:49:49 | [diff] [blame] | 15 | #include "base/strings/string16.h" |
| 16 | #include "base/strings/stringprintf.h" |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 17 | #include "base/values.h" |
| 18 | #include "build/build_config.h" |
[email protected] | b77ddff | 2013-05-24 07:49:01 | [diff] [blame] | 19 | #include "chrome/common/autocomplete_match_type.h" |
[email protected] | 79d68c6 | 2011-04-15 21:07:03 | [diff] [blame] | 20 | #include "chrome/common/common_param_traits.h" |
[email protected] | c1440609 | 2011-10-27 13:43:42 | [diff] [blame] | 21 | #include "chrome/common/content_settings.h" |
[email protected] | 610ca83 | 2011-10-19 12:59:20 | [diff] [blame] | 22 | #include "chrome/common/content_settings_pattern.h" |
[email protected] | 1c9c7fb | 2011-03-11 16:38:38 | [diff] [blame] | 23 | #include "chrome/common/instant_types.h" |
[email protected] | 09da02f | 2013-08-14 01:41:59 | [diff] [blame] | 24 | #include "chrome/common/ntp_logging_events.h" |
[email protected] | ca98bd3 | 2013-04-09 05:16:05 | [diff] [blame] | 25 | #include "chrome/common/omnibox_focus_state.h" |
[email protected] | c08e793 | 2011-03-29 04:08:14 | [diff] [blame] | 26 | #include "chrome/common/search_provider.h" |
[email protected] | b2ed9c67 | 2013-06-06 23:34:00 | [diff] [blame] | 27 | #include "chrome/common/translate/language_detection_details.h" |
| 28 | #include "chrome/common/translate/translate_errors.h" |
[email protected] | 512b5bd | 2013-07-23 20:24:00 | [diff] [blame] | 29 | #include "components/nacl/common/nacl_types.h" |
[email protected] | 19a5c744 | 2011-10-21 20:00:41 | [diff] [blame] | 30 | #include "content/public/common/common_param_traits.h" |
[email protected] | 3c71576ce | 2013-07-23 02:00:01 | [diff] [blame] | 31 | #include "content/public/common/referrer.h" |
[email protected] | 9b00348 | 2013-05-21 14:00:17 | [diff] [blame] | 32 | #include "content/public/common/top_controls_state.h" |
[email protected] | 88b50b6 | 2013-09-01 23:05:06 | [diff] [blame] | 33 | #include "extensions/common/stack_frame.h" |
[email protected] | 17b5a817 | 2012-06-22 21:09:09 | [diff] [blame] | 34 | #include "ipc/ipc_channel_handle.h" |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 35 | #include "ipc/ipc_message_macros.h" |
[email protected] | e7f009d | 2011-06-14 19:35:10 | [diff] [blame] | 36 | #include "ipc/ipc_platform_file.h" |
[email protected] | 1d4ecf4 | 2011-08-26 21:27:30 | [diff] [blame] | 37 | #include "third_party/skia/include/core/SkBitmap.h" |
[email protected] | 2255a933 | 2013-06-17 05:12:31 | [diff] [blame] | 38 | #include "third_party/WebKit/public/web/WebCache.h" |
| 39 | #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
[email protected] | 3c3acca | 2013-02-26 03:07:07 | [diff] [blame] | 40 | #include "ui/base/window_open_disposition.h" |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 41 | #include "ui/gfx/rect.h" |
[email protected] | 7a4de7a6 | 2010-08-17 18:38:24 | [diff] [blame] | 42 | |
[email protected] | 44c49c9 | 2011-03-28 16:17:23 | [diff] [blame] | 43 | // Singly-included section for enums and custom IPC traits. |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 44 | #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ |
| 45 | #define CHROME_COMMON_RENDER_MESSAGES_H_ |
[email protected] | 049eec2 | 2010-10-20 21:32:52 | [diff] [blame] | 46 | |
[email protected] | 992db4c | 2011-05-12 15:37:15 | [diff] [blame] | 47 | class SkBitmap; |
| 48 | |
[email protected] | a6097f4 | 2011-01-10 08:50:51 | [diff] [blame] | 49 | // Command values for the cmd parameter of the |
| 50 | // ViewHost_JavaScriptStressTestControl message. For each command the parameter |
| 51 | // passed has a different meaning: |
| 52 | // For the command kJavaScriptStressTestSetStressRunType the parameter it the |
| 53 | // type taken from the enumeration v8::Testing::StressType. |
| 54 | // For the command kJavaScriptStressTestPrepareStressRun the parameter it the |
| 55 | // number of the stress run about to take place. |
| 56 | enum ViewHostMsg_JavaScriptStressTestControl_Commands { |
| 57 | kJavaScriptStressTestSetStressRunType = 0, |
| 58 | kJavaScriptStressTestPrepareStressRun = 1, |
| 59 | }; |
| 60 | |
[email protected] | 51b63f6 | 2011-10-05 18:55:42 | [diff] [blame] | 61 | // This enum is inside a struct so that we can forward-declare the struct in |
| 62 | // others headers without having to include this one. |
| 63 | struct ChromeViewHostMsg_GetPluginInfo_Status { |
[email protected] | 51b63f6 | 2011-10-05 18:55:42 | [diff] [blame] | 64 | enum Value { |
| 65 | kAllowed, |
[email protected] | 8aa7a41 | 2011-11-07 12:33:42 | [diff] [blame] | 66 | kBlocked, |
| 67 | kClickToPlay, |
[email protected] | 51b63f6 | 2011-10-05 18:55:42 | [diff] [blame] | 68 | kDisabled, |
| 69 | kNotFound, |
[email protected] | a119913 | 2012-10-26 22:14:41 | [diff] [blame] | 70 | kNPAPINotSupported, |
[email protected] | 8aa7a41 | 2011-11-07 12:33:42 | [diff] [blame] | 71 | kOutdatedBlocked, |
| 72 | kOutdatedDisallowed, |
| 73 | kUnauthorized, |
[email protected] | 51b63f6 | 2011-10-05 18:55:42 | [diff] [blame] | 74 | }; |
| 75 | |
| 76 | ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed) {} |
| 77 | |
| 78 | Value value; |
| 79 | }; |
| 80 | |
[email protected] | 7d5c3ac | 2009-02-04 08:58:19 | [diff] [blame] | 81 | namespace IPC { |
| 82 | |
[email protected] | 9c7453d | 2012-01-21 00:45:40 | [diff] [blame] | 83 | #if defined(OS_POSIX) && !defined(USE_AURA) && !defined(OS_ANDROID) |
[email protected] | 661eb9d | 2009-02-03 02:11:48 | [diff] [blame] | 84 | |
| 85 | // TODO(port): this shouldn't exist. However, the plugin stuff is really using |
| 86 | // HWNDS (NativeView), and making Windows calls based on them. I've not figured |
| 87 | // out the deal with plugins yet. |
[email protected] | 9c7453d | 2012-01-21 00:45:40 | [diff] [blame] | 88 | // TODO(android): a gfx::NativeView is the same as a gfx::NativeWindow. |
[email protected] | 661eb9d | 2009-02-03 02:11:48 | [diff] [blame] | 89 | template <> |
| 90 | struct ParamTraits<gfx::NativeView> { |
| 91 | typedef gfx::NativeView param_type; |
[email protected] | 7d5c3ac | 2009-02-04 08:58:19 | [diff] [blame] | 92 | static void Write(Message* m, const param_type& p) { |
[email protected] | 661eb9d | 2009-02-03 02:11:48 | [diff] [blame] | 93 | NOTIMPLEMENTED(); |
| 94 | } |
| 95 | |
[email protected] | ce208f87 | 2012-03-07 20:42:56 | [diff] [blame] | 96 | static bool Read(const Message* m, PickleIterator* iter, param_type* p) { |
[email protected] | 661eb9d | 2009-02-03 02:11:48 | [diff] [blame] | 97 | NOTIMPLEMENTED(); |
| 98 | *p = NULL; |
| 99 | return true; |
| 100 | } |
| 101 | |
[email protected] | 252cad6 | 2010-08-18 18:33:57 | [diff] [blame] | 102 | static void Log(const param_type& p, std::string* l) { |
[email protected] | 93f1052 | 2010-10-31 16:27:48 | [diff] [blame] | 103 | l->append(base::StringPrintf("<gfx::NativeView>")); |
[email protected] | 661eb9d | 2009-02-03 02:11:48 | [diff] [blame] | 104 | } |
| 105 | }; |
| 106 | |
[email protected] | 9c7453d | 2012-01-21 00:45:40 | [diff] [blame] | 107 | #endif // defined(OS_POSIX) && !defined(USE_AURA) && !defined(OS_ANDROID) |
[email protected] | 661eb9d | 2009-02-03 02:11:48 | [diff] [blame] | 108 | |
[email protected] | 7b291f9 | 2009-08-14 05:43:53 | [diff] [blame] | 109 | template <> |
[email protected] | 610ca83 | 2011-10-19 12:59:20 | [diff] [blame] | 110 | struct ParamTraits<ContentSettingsPattern> { |
| 111 | typedef ContentSettingsPattern param_type; |
| 112 | static void Write(Message* m, const param_type& p); |
[email protected] | ce208f87 | 2012-03-07 20:42:56 | [diff] [blame] | 113 | static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
[email protected] | 610ca83 | 2011-10-19 12:59:20 | [diff] [blame] | 114 | static void Log(const param_type& p, std::string* l); |
| 115 | }; |
| 116 | |
[email protected] | b3df5a4 | 2010-05-11 14:31:09 | [diff] [blame] | 117 | } // namespace IPC |
[email protected] | 9f4db51 | 2010-05-10 20:21:41 | [diff] [blame] | 118 | |
[email protected] | 5a52f16 | 2008-08-27 04:15:31 | [diff] [blame] | 119 | #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 120 | |
[email protected] | 778574e | 2011-03-21 22:03:50 | [diff] [blame] | 121 | #define IPC_MESSAGE_START ChromeMsgStart |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 122 | |
[email protected] | 51b63f6 | 2011-10-05 18:55:42 | [diff] [blame] | 123 | IPC_ENUM_TRAITS(ChromeViewHostMsg_GetPluginInfo_Status::Value) |
[email protected] | 8d4c276d | 2013-05-29 19:39:52 | [diff] [blame] | 124 | IPC_ENUM_TRAITS(OmniboxFocusChangeReason) |
[email protected] | ca98bd3 | 2013-04-09 05:16:05 | [diff] [blame] | 125 | IPC_ENUM_TRAITS(OmniboxFocusState) |
[email protected] | c08e793 | 2011-03-29 04:08:14 | [diff] [blame] | 126 | IPC_ENUM_TRAITS(search_provider::OSDDType) |
| 127 | IPC_ENUM_TRAITS(search_provider::InstallState) |
[email protected] | a682765 | 2012-11-20 23:41:08 | [diff] [blame] | 128 | IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment) |
| 129 | IPC_ENUM_TRAITS(ThemeBackgroundImageTiling) |
[email protected] | fffaf97 | 2011-03-24 01:34:35 | [diff] [blame] | 130 | IPC_ENUM_TRAITS(TranslateErrors::Type) |
[email protected] | fffaf97 | 2011-03-24 01:34:35 | [diff] [blame] | 131 | IPC_ENUM_TRAITS(WebKit::WebConsoleMessage::Level) |
[email protected] | 9b00348 | 2013-05-21 14:00:17 | [diff] [blame] | 132 | IPC_ENUM_TRAITS(content::TopControlsState) |
[email protected] | fffaf97 | 2011-03-24 01:34:35 | [diff] [blame] | 133 | |
[email protected] | 51b63f6 | 2011-10-05 18:55:42 | [diff] [blame] | 134 | IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status) |
| 135 | IPC_STRUCT_TRAITS_MEMBER(value) |
| 136 | IPC_STRUCT_TRAITS_END() |
| 137 | |
[email protected] | cd33d28 | 2012-09-21 12:53:04 | [diff] [blame] | 138 | // Output parameters for ChromeViewHostMsg_GetPluginInfo message. |
| 139 | IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output) |
| 140 | IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status) |
[email protected] | d7bd3e5 | 2013-07-21 04:29:20 | [diff] [blame] | 141 | IPC_STRUCT_MEMBER(content::WebPluginInfo, plugin) |
[email protected] | cd33d28 | 2012-09-21 12:53:04 | [diff] [blame] | 142 | IPC_STRUCT_MEMBER(std::string, actual_mime_type) |
| 143 | IPC_STRUCT_MEMBER(std::string, group_identifier) |
| 144 | IPC_STRUCT_MEMBER(string16, group_name) |
| 145 | IPC_STRUCT_END() |
| 146 | |
[email protected] | 610ca83 | 2011-10-19 12:59:20 | [diff] [blame] | 147 | IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts) |
| 148 | IPC_STRUCT_TRAITS_MEMBER(scheme) |
| 149 | IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard) |
| 150 | IPC_STRUCT_TRAITS_MEMBER(host) |
| 151 | IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard) |
| 152 | IPC_STRUCT_TRAITS_MEMBER(port) |
| 153 | IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard) |
| 154 | IPC_STRUCT_TRAITS_MEMBER(path) |
[email protected] | ae689aab | 2012-01-23 17:52:08 | [diff] [blame] | 155 | IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard) |
[email protected] | 610ca83 | 2011-10-19 12:59:20 | [diff] [blame] | 156 | IPC_STRUCT_TRAITS_END() |
| 157 | |
[email protected] | c1440609 | 2011-10-27 13:43:42 | [diff] [blame] | 158 | IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource) |
| 159 | IPC_STRUCT_TRAITS_MEMBER(primary_pattern) |
| 160 | IPC_STRUCT_TRAITS_MEMBER(secondary_pattern) |
| 161 | IPC_STRUCT_TRAITS_MEMBER(setting) |
| 162 | IPC_STRUCT_TRAITS_MEMBER(source) |
| 163 | IPC_STRUCT_TRAITS_MEMBER(incognito) |
| 164 | IPC_STRUCT_TRAITS_END() |
| 165 | |
[email protected] | 987fad78 | 2013-08-28 06:23:18 | [diff] [blame] | 166 | IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion) |
| 167 | IPC_STRUCT_TRAITS_MEMBER(text) |
| 168 | IPC_STRUCT_TRAITS_MEMBER(metadata) |
| 169 | IPC_STRUCT_TRAITS_END() |
| 170 | |
[email protected] | e7868c8 | 2013-03-12 03:55:56 | [diff] [blame] | 171 | IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem) |
[email protected] | dfee2f6 | 2013-02-22 06:46:06 | [diff] [blame] | 172 | IPC_STRUCT_TRAITS_MEMBER(url) |
| 173 | IPC_STRUCT_TRAITS_MEMBER(title) |
| 174 | IPC_STRUCT_TRAITS_END() |
| 175 | |
[email protected] | edece21 | 2011-11-16 11:56:56 | [diff] [blame] | 176 | IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules) |
| 177 | IPC_STRUCT_TRAITS_MEMBER(image_rules) |
| 178 | IPC_STRUCT_TRAITS_MEMBER(script_rules) |
| 179 | IPC_STRUCT_TRAITS_END() |
| 180 | |
[email protected] | a8c2847 | 2013-07-17 05:34:29 | [diff] [blame] | 181 | IPC_STRUCT_TRAITS_BEGIN(RGBAColor) |
| 182 | IPC_STRUCT_TRAITS_MEMBER(r) |
| 183 | IPC_STRUCT_TRAITS_MEMBER(g) |
| 184 | IPC_STRUCT_TRAITS_MEMBER(b) |
| 185 | IPC_STRUCT_TRAITS_MEMBER(a) |
| 186 | IPC_STRUCT_TRAITS_END() |
| 187 | |
[email protected] | a682765 | 2012-11-20 23:41:08 | [diff] [blame] | 188 | IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo) |
[email protected] | a8c2847 | 2013-07-17 05:34:29 | [diff] [blame] | 189 | IPC_STRUCT_TRAITS_MEMBER(using_default_theme) |
| 190 | IPC_STRUCT_TRAITS_MEMBER(background_color) |
| 191 | IPC_STRUCT_TRAITS_MEMBER(text_color) |
| 192 | IPC_STRUCT_TRAITS_MEMBER(link_color) |
| 193 | IPC_STRUCT_TRAITS_MEMBER(text_color_light) |
| 194 | IPC_STRUCT_TRAITS_MEMBER(header_color) |
| 195 | IPC_STRUCT_TRAITS_MEMBER(section_border_color) |
[email protected] | a682765 | 2012-11-20 23:41:08 | [diff] [blame] | 196 | IPC_STRUCT_TRAITS_MEMBER(theme_id) |
| 197 | IPC_STRUCT_TRAITS_MEMBER(image_horizontal_alignment) |
| 198 | IPC_STRUCT_TRAITS_MEMBER(image_vertical_alignment) |
| 199 | IPC_STRUCT_TRAITS_MEMBER(image_tiling) |
| 200 | IPC_STRUCT_TRAITS_MEMBER(image_height) |
[email protected] | 5189fa1 | 2013-03-20 23:00:05 | [diff] [blame] | 201 | IPC_STRUCT_TRAITS_MEMBER(has_attribution) |
[email protected] | a8c2847 | 2013-07-17 05:34:29 | [diff] [blame] | 202 | IPC_STRUCT_TRAITS_MEMBER(logo_alternate) |
[email protected] | a682765 | 2012-11-20 23:41:08 | [diff] [blame] | 203 | IPC_STRUCT_TRAITS_END() |
| 204 | |
[email protected] | fffaf97 | 2011-03-24 01:34:35 | [diff] [blame] | 205 | IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::ResourceTypeStat) |
| 206 | IPC_STRUCT_TRAITS_MEMBER(count) |
| 207 | IPC_STRUCT_TRAITS_MEMBER(size) |
| 208 | IPC_STRUCT_TRAITS_MEMBER(liveSize) |
| 209 | IPC_STRUCT_TRAITS_MEMBER(decodedSize) |
| 210 | IPC_STRUCT_TRAITS_END() |
| 211 | |
| 212 | IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::ResourceTypeStats) |
| 213 | IPC_STRUCT_TRAITS_MEMBER(images) |
| 214 | IPC_STRUCT_TRAITS_MEMBER(cssStyleSheets) |
| 215 | IPC_STRUCT_TRAITS_MEMBER(scripts) |
| 216 | IPC_STRUCT_TRAITS_MEMBER(xslStyleSheets) |
| 217 | IPC_STRUCT_TRAITS_MEMBER(fonts) |
| 218 | IPC_STRUCT_TRAITS_END() |
| 219 | |
| 220 | IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::UsageStats) |
| 221 | IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity) |
| 222 | IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity) |
| 223 | IPC_STRUCT_TRAITS_MEMBER(capacity) |
| 224 | IPC_STRUCT_TRAITS_MEMBER(liveSize) |
| 225 | IPC_STRUCT_TRAITS_MEMBER(deadSize) |
| 226 | IPC_STRUCT_TRAITS_END() |
| 227 | |
[email protected] | 27eff89 | 2013-05-21 16:40:52 | [diff] [blame] | 228 | IPC_STRUCT_TRAITS_BEGIN(LanguageDetectionDetails) |
| 229 | IPC_STRUCT_TRAITS_MEMBER(time) |
| 230 | IPC_STRUCT_TRAITS_MEMBER(url) |
| 231 | IPC_STRUCT_TRAITS_MEMBER(content_language) |
| 232 | IPC_STRUCT_TRAITS_MEMBER(cld_language) |
| 233 | IPC_STRUCT_TRAITS_MEMBER(is_cld_reliable) |
[email protected] | 20efbf2f | 2013-05-31 06:42:37 | [diff] [blame] | 234 | IPC_STRUCT_TRAITS_MEMBER(html_root_language) |
[email protected] | 27eff89 | 2013-05-21 16:40:52 | [diff] [blame] | 235 | IPC_STRUCT_TRAITS_MEMBER(adopted_language) |
[email protected] | d861d97 | 2013-05-30 06:02:31 | [diff] [blame] | 236 | IPC_STRUCT_TRAITS_MEMBER(contents) |
[email protected] | 27eff89 | 2013-05-21 16:40:52 | [diff] [blame] | 237 | IPC_STRUCT_TRAITS_END() |
| 238 | |
[email protected] | 88b50b6 | 2013-09-01 23:05:06 | [diff] [blame] | 239 | IPC_STRUCT_TRAITS_BEGIN(extensions::StackFrame) |
| 240 | IPC_STRUCT_TRAITS_MEMBER(line_number) |
| 241 | IPC_STRUCT_TRAITS_MEMBER(column_number) |
| 242 | IPC_STRUCT_TRAITS_MEMBER(source) |
| 243 | IPC_STRUCT_TRAITS_MEMBER(function) |
| 244 | IPC_STRUCT_TRAITS_END() |
| 245 | |
[email protected] | 09da02f | 2013-08-14 01:41:59 | [diff] [blame] | 246 | IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType, |
| 247 | NTP_NUM_EVENT_TYPES) |
| 248 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 249 | //----------------------------------------------------------------------------- |
| 250 | // RenderView messages |
| 251 | // These are messages sent from the browser to the renderer process. |
| 252 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 253 | // Tells the renderer to set its maximum cache size to the supplied value. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 254 | IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities, |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 255 | size_t /* min_dead_capacity */, |
| 256 | size_t /* max_dead_capacity */, |
| 257 | size_t /* capacity */) |
| 258 | |
| 259 | // Tells the renderer to clear the cache. |
[email protected] | e81d4d7 | 2011-09-29 16:54:31 | [diff] [blame] | 260 | IPC_MESSAGE_CONTROL1(ChromeViewMsg_ClearCache, |
| 261 | bool /* on_navigation */) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 262 | |
[email protected] | 5572215 | 2011-03-22 01:33:53 | [diff] [blame] | 263 | // Tells the renderer to dump as much memory as it can, perhaps because we |
| 264 | // have memory pressure or the renderer is (or will be) paged out. This |
| 265 | // should only result in purging objects we can recalculate, e.g. caches or |
| 266 | // JS garbage, not in purging irreplaceable objects. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 267 | IPC_MESSAGE_CONTROL0(ChromeViewMsg_PurgeMemory) |
[email protected] | 5572215 | 2011-03-22 01:33:53 | [diff] [blame] | 268 | |
[email protected] | 350019f | 2011-08-02 04:18:33 | [diff] [blame] | 269 | // For WebUI testing, this message stores parameters to do ScriptEvalRequest at |
| 270 | // a time which is late enough to not be thrown out, and early enough to be |
| 271 | // before onload events are fired. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 272 | IPC_MESSAGE_ROUTED4(ChromeViewMsg_WebUIJavaScript, |
[email protected] | 350019f | 2011-08-02 04:18:33 | [diff] [blame] | 273 | string16, /* frame_xpath */ |
| 274 | string16, /* jscript_url */ |
| 275 | int, /* ID */ |
| 276 | bool /* If true, result is sent back. */) |
| 277 | |
[email protected] | edece21 | 2011-11-16 11:56:56 | [diff] [blame] | 278 | // Set the content setting rules stored by the renderer. |
| 279 | IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules, |
| 280 | RendererContentSettingRules /* rules */) |
[email protected] | c1440609 | 2011-10-27 13:43:42 | [diff] [blame] | 281 | |
[email protected] | 51ffaf7 | 2012-05-09 21:00:49 | [diff] [blame] | 282 | // Tells the render view to load all blocked plugins with the given identifier. |
| 283 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins, |
| 284 | std::string /* identifier */) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 285 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 286 | // Asks the renderer to send back stats on the WebCore cache broken down by |
| 287 | // resource types. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 288 | IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 289 | |
[email protected] | 63a8ba1 | 2011-04-29 05:42:22 | [diff] [blame] | 290 | // Tells the renderer to create a FieldTrial, and by using a 100% probability |
| 291 | // for the FieldTrial, forces the FieldTrial to have assigned group name. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 292 | IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup, |
[email protected] | 63a8ba1 | 2011-04-29 05:42:22 | [diff] [blame] | 293 | std::string /* field trial name */, |
| 294 | std::string /* group name that was assigned. */) |
| 295 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 296 | // Asks the renderer to send back V8 heap stats. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 297 | IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 298 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 299 | // Posts a message to the renderer. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 300 | IPC_MESSAGE_ROUTED3(ChromeViewMsg_HandleMessageFromExternalHost, |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 301 | std::string /* The message */, |
| 302 | std::string /* The origin */, |
| 303 | std::string /* The target*/) |
| 304 | |
[email protected] | c55e3b8 | 2012-08-09 15:27:05 | [diff] [blame] | 305 | IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 306 | |
[email protected] | 987fad78 | 2013-08-28 06:23:18 | [diff] [blame] | 307 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetDisplayInstantResults, |
| 308 | bool /* display_instant_results */) |
| 309 | |
[email protected] | 8d4c276d | 2013-05-29 19:39:52 | [diff] [blame] | 310 | IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFocusChanged, |
| 311 | OmniboxFocusState /* new_focus_state */, |
| 312 | OmniboxFocusChangeReason /* reason */) |
[email protected] | 6a6811a | 2012-12-12 04:18:16 | [diff] [blame] | 313 | |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 314 | IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxMarginChange, |
| 315 | int /* start */, |
| 316 | int /* width */) |
[email protected] | 0d0b4a4 | 2013-06-14 00:46:26 | [diff] [blame] | 317 | |
[email protected] | e7868c8 | 2013-03-12 03:55:56 | [diff] [blame] | 318 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged, |
[email protected] | ab01dd75 | 2013-06-08 05:13:36 | [diff] [blame] | 319 | std::vector<InstantMostVisitedItem> /* items */) |
[email protected] | dfee2f6 | 2013-02-22 06:46:06 | [diff] [blame] | 320 | |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 321 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation, |
| 322 | bool /* is_app_launcher_enabled */) |
[email protected] | dfee2f6 | 2013-02-22 06:46:06 | [diff] [blame] | 323 | |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 324 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress, |
| 325 | bool /* input_in_progress */) |
[email protected] | dfee2f6 | 2013-02-22 06:46:06 | [diff] [blame] | 326 | |
[email protected] | 987fad78 | 2013-08-28 06:23:18 | [diff] [blame] | 327 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch, |
| 328 | InstantSuggestion /* suggestion */) |
| 329 | |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 330 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSubmit, |
| 331 | string16 /* value */) |
| 332 | |
| 333 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged, |
| 334 | ThemeBackgroundInfo /* value */) |
[email protected] | dfee2f6 | 2013-02-22 06:46:06 | [diff] [blame] | 335 | |
[email protected] | 3473ae0 | 2013-06-07 00:28:08 | [diff] [blame] | 336 | IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch) |
| 337 | |
[email protected] | 1138cce | 2011-12-02 21:29:36 | [diff] [blame] | 338 | // Toggles visual muting of the render view area. This is on when a constrained |
| 339 | // window is showing. |
| 340 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized, |
| 341 | bool /* deemphazied */) |
| 342 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 343 | // Tells the renderer to translate the page contents from one language to |
| 344 | // another. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 345 | IPC_MESSAGE_ROUTED4(ChromeViewMsg_TranslatePage, |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 346 | int /* page id */, |
| 347 | std::string, /* the script injected in the page */ |
| 348 | std::string, /* BCP 47/RFC 5646 language code the page |
| 349 | is in */ |
| 350 | std::string /* BCP 47/RFC 5646 language code to translate |
| 351 | to */) |
| 352 | |
| 353 | // Tells the renderer to revert the text of translated page to its original |
| 354 | // contents. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 355 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_RevertTranslation, |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 356 | int /* page id */) |
| 357 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 358 | // Sent on process startup to indicate whether this process is running in |
| 359 | // incognito mode. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 360 | IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess, |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 361 | bool /* is_incognito_processs */) |
| 362 | |
[email protected] | 68cafdb | 2011-06-10 21:42:18 | [diff] [blame] | 363 | // Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 364 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent, |
[email protected] | 68cafdb | 2011-06-10 21:42:18 | [diff] [blame] | 365 | bool /* allowed */) |
| 366 | |
| 367 | // Sent in response to ViewHostMsg_DidBlockRunningInsecureContent. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 368 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent, |
[email protected] | 68cafdb | 2011-06-10 21:42:18 | [diff] [blame] | 369 | bool /* allowed */) |
| 370 | |
[email protected] | 92d21384 | 2011-11-02 20:09:43 | [diff] [blame] | 371 | // Tells renderer to always enforce mixed content blocking for this host. |
| 372 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_AddStrictSecurityHost, |
| 373 | std::string /* host */) |
| 374 | |
[email protected] | 8c40da6 | 2011-07-13 22:58:46 | [diff] [blame] | 375 | // Sent when the profile changes the kSafeBrowsingEnabled preference. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 376 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection, |
[email protected] | 8c40da6 | 2011-07-13 22:58:46 | [diff] [blame] | 377 | bool /* enable_phishing_detection */) |
| 378 | |
[email protected] | 31dd25ab | 2013-07-31 21:59:05 | [diff] [blame] | 379 | // Asks the renderer for a thumbnail of the image selected by the most |
| 380 | // recently opened context menu, if there is one. If the image's area |
| 381 | // is greater than thumbnail_min_area it will be downscaled to |
| 382 | // be within thumbnail_max_size. The possibly downsampled image will be |
| 383 | // returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message. |
| 384 | IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode, |
| 385 | int /* thumbnail_min_area_pixels */, |
| 386 | gfx::Size /* thumbnail_max_size_pixels */) |
| 387 | |
[email protected] | 9b00348 | 2013-05-21 14:00:17 | [diff] [blame] | 388 | // Notifies the renderer whether hiding/showing the top controls is enabled, |
| 389 | // what the current state should be, and whether or not to animate to the |
| 390 | // proper state. |
| 391 | IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState, |
| 392 | content::TopControlsState /* constraints */, |
| 393 | content::TopControlsState /* current */, |
| 394 | bool /* animate */) |
| 395 | |
[email protected] | 31dd25ab | 2013-07-31 21:59:05 | [diff] [blame] | 396 | |
[email protected] | 6726406 | 2013-07-25 12:39:26 | [diff] [blame] | 397 | // Updates the window features of the render view. |
| 398 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures, |
| 399 | WebKit::WebWindowFeatures /* window_features */) |
| 400 | |
[email protected] | 2f3bc651 | 2013-08-28 03:56:27 | [diff] [blame] | 401 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK, |
| 402 | SkBitmap /* thumbnail */, |
| 403 | gfx::Size /* original size of the image */) |
[email protected] | 31dd25ab | 2013-07-31 21:59:05 | [diff] [blame] | 404 | |
[email protected] | 5120825 | 2013-08-19 21:05:30 | [diff] [blame] | 405 | #if defined(OS_ANDROID) |
| 406 | // Asks the renderer to return information about whether the current page can |
| 407 | // be treated as a webapp. |
| 408 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_RetrieveWebappInformation, |
| 409 | GURL /* expected_url */) |
| 410 | #endif // defined(OS_ANDROID) |
[email protected] | 31dd25ab | 2013-07-31 21:59:05 | [diff] [blame] | 411 | |
[email protected] | 21d89834 | 2011-08-23 18:14:41 | [diff] [blame] | 412 | // JavaScript related messages ----------------------------------------------- |
| 413 | |
| 414 | // Notify the JavaScript engine in the render to change its parameters |
| 415 | // while performing stress testing. |
| 416 | IPC_MESSAGE_ROUTED2(ChromeViewMsg_JavaScriptStressTestControl, |
| 417 | int /* cmd */, |
| 418 | int /* param */) |
| 419 | |
[email protected] | a1127f8 | 2011-09-08 17:27:01 | [diff] [blame] | 420 | // Asks the renderer to send back FPS. |
| 421 | IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetFPS) |
| 422 | |
[email protected] | 6f9f7d8 | 2011-12-08 12:13:34 | [diff] [blame] | 423 | // Tells the view it is displaying an interstitial page. |
| 424 | IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial) |
| 425 | |
[email protected] | 7e771bfb | 2013-01-14 23:23:21 | [diff] [blame] | 426 | // Provides the renderer with the results of the browser's investigation into |
| 427 | // why a recent main frame load failed (currently, just DNS probe result). |
| 428 | // NetErrorHelper will receive this mesage and replace or update the error |
| 429 | // page with more specific troubleshooting suggestions. |
| 430 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo, |
[email protected] | 2ea1efe | 2013-07-17 05:23:13 | [diff] [blame] | 431 | int /* DNS probe status */) |
[email protected] | 7e771bfb | 2013-01-14 23:23:21 | [diff] [blame] | 432 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 433 | //----------------------------------------------------------------------------- |
[email protected] | 63f7213 | 2012-04-18 18:02:44 | [diff] [blame] | 434 | // Misc messages |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 435 | // These are messages sent from the renderer to the browser process. |
| 436 | |
[email protected] | 33abbda | 2013-09-20 18:42:50 | [diff] [blame] | 437 | // Provides the contents for the given page that was loaded recently. |
| 438 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PageContents, |
| 439 | GURL /* URL of the page */, |
| 440 | string16 /* page contents */) |
| 441 | |
[email protected] | 93b9d69 | 2011-04-13 00:44:31 | [diff] [blame] | 442 | // Notification that the language for the tab has been determined. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 443 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_TranslateLanguageDetermined, |
[email protected] | 27eff89 | 2013-05-21 16:40:52 | [diff] [blame] | 444 | LanguageDetectionDetails /* details about lang detection */, |
| 445 | bool /* whether the page needs translation */) |
[email protected] | 93b9d69 | 2011-04-13 00:44:31 | [diff] [blame] | 446 | |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 447 | IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats, |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 448 | WebKit::WebCache::UsageStats /* stats */) |
| 449 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 450 | // Tells the browser that content in the current page was blocked due to the |
| 451 | // user's content settings. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 452 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ContentBlocked, |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 453 | ContentSettingsType, /* type of blocked content */ |
| 454 | std::string /* resource identifier */) |
| 455 | |
[email protected] | 5327dfb | 2011-05-03 17:50:36 | [diff] [blame] | 456 | // Sent by the renderer process to check whether access to web databases is |
[email protected] | bac33eb | 2011-05-04 01:47:49 | [diff] [blame] | 457 | // granted by content settings. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 458 | IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase, |
[email protected] | 9a611a9 | 2011-05-07 17:06:18 | [diff] [blame] | 459 | int /* render_view_id */, |
| 460 | GURL /* origin_url */, |
[email protected] | c0a45a98 | 2011-05-25 16:58:15 | [diff] [blame] | 461 | GURL /* top origin url */, |
[email protected] | bac33eb | 2011-05-04 01:47:49 | [diff] [blame] | 462 | string16 /* database name */, |
| 463 | string16 /* database display name */, |
[email protected] | 8c27664 | 2011-05-06 09:41:00 | [diff] [blame] | 464 | bool /* allowed */) |
[email protected] | bac33eb | 2011-05-04 01:47:49 | [diff] [blame] | 465 | |
| 466 | // Sent by the renderer process to check whether access to DOM Storage is |
| 467 | // granted by content settings. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 468 | IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage, |
[email protected] | bac33eb | 2011-05-04 01:47:49 | [diff] [blame] | 469 | int /* render_view_id */, |
| 470 | GURL /* origin_url */, |
[email protected] | c0a45a98 | 2011-05-25 16:58:15 | [diff] [blame] | 471 | GURL /* top origin url */, |
[email protected] | c729db8 | 2011-11-23 17:37:27 | [diff] [blame] | 472 | bool /* if true local storage, otherwise session */, |
[email protected] | 8c27664 | 2011-05-06 09:41:00 | [diff] [blame] | 473 | bool /* allowed */) |
[email protected] | 5327dfb | 2011-05-03 17:50:36 | [diff] [blame] | 474 | |
[email protected] | 45316d6 | 2011-05-12 18:15:30 | [diff] [blame] | 475 | // Sent by the renderer process to check whether access to FileSystem is |
| 476 | // granted by content settings. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 477 | IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_AllowFileSystem, |
[email protected] | 45316d6 | 2011-05-12 18:15:30 | [diff] [blame] | 478 | int /* render_view_id */, |
| 479 | GURL /* origin_url */, |
[email protected] | c0a45a98 | 2011-05-25 16:58:15 | [diff] [blame] | 480 | GURL /* top origin url */, |
[email protected] | 45316d6 | 2011-05-12 18:15:30 | [diff] [blame] | 481 | bool /* allowed */) |
| 482 | |
[email protected] | 9a611a9 | 2011-05-07 17:06:18 | [diff] [blame] | 483 | // Sent by the renderer process to check whether access to Indexed DBis |
| 484 | // granted by content settings. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 485 | IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB, |
[email protected] | 9a611a9 | 2011-05-07 17:06:18 | [diff] [blame] | 486 | int /* render_view_id */, |
[email protected] | c0a45a98 | 2011-05-25 16:58:15 | [diff] [blame] | 487 | GURL /* origin_url */, |
| 488 | GURL /* top origin url */, |
[email protected] | 9a611a9 | 2011-05-07 17:06:18 | [diff] [blame] | 489 | string16 /* database name */, |
| 490 | bool /* allowed */) |
[email protected] | 5327dfb | 2011-05-03 17:50:36 | [diff] [blame] | 491 | |
[email protected] | 51b63f6 | 2011-10-05 18:55:42 | [diff] [blame] | 492 | // Return information about a plugin for the given URL and MIME type. |
| 493 | // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows |
| 494 | // about specific reasons why a plug-in can't be used, for example because it's |
| 495 | // disabled. |
[email protected] | cd33d28 | 2012-09-21 12:53:04 | [diff] [blame] | 496 | IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo, |
[email protected] | 51b63f6 | 2011-10-05 18:55:42 | [diff] [blame] | 497 | int /* render_view_id */, |
| 498 | GURL /* url */, |
| 499 | GURL /* top origin url */, |
| 500 | std::string /* mime_type */, |
[email protected] | cd33d28 | 2012-09-21 12:53:04 | [diff] [blame] | 501 | ChromeViewHostMsg_GetPluginInfo_Output /* output */) |
[email protected] | 51b63f6 | 2011-10-05 18:55:42 | [diff] [blame] | 502 | |
[email protected] | 3627aa3f | 2013-09-17 22:32:51 | [diff] [blame] | 503 | // Returns whether any internal plugin supporting |mime_type| is registered |
| 504 | // Does not determine whether the plugin can actually be instantiated |
| 505 | // (e.g. whether it is allowed or has all its dependencies). |
| 506 | IPC_SYNC_MESSAGE_CONTROL1_1( |
| 507 | ChromeViewHostMsg_IsInternalPluginRegisteredForMimeType, |
| 508 | std::string /* mime_type */, |
| 509 | bool /* registered */) |
| 510 | |
[email protected] | 43b7eaca | 2012-01-12 17:27:28 | [diff] [blame] | 511 | #if defined(ENABLE_PLUGIN_INSTALLATION) |
[email protected] | 1d697f3 | 2011-11-28 11:57:51 | [diff] [blame] | 512 | // Tells the browser to search for a plug-in that can handle the given MIME |
| 513 | // type. The result will be sent asynchronously to the routing ID |
| 514 | // |placeholder_id|. |
| 515 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin, |
| 516 | int /* placeholder_id */, |
| 517 | std::string /* mime_type */) |
| 518 | |
[email protected] | 3240d250 | 2012-01-26 17:00:33 | [diff] [blame] | 519 | // Notifies the browser that a missing plug-in placeholder has been removed, so |
[email protected] | e242401 | 2012-02-03 10:26:50 | [diff] [blame] | 520 | // the corresponding PluginPlaceholderHost can be deleted. |
| 521 | IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost, |
[email protected] | 3240d250 | 2012-01-26 17:00:33 | [diff] [blame] | 522 | int /* placeholder_id */) |
| 523 | |
[email protected] | 1d697f3 | 2011-11-28 11:57:51 | [diff] [blame] | 524 | // Notifies a missing plug-in placeholder that a plug-in with name |plugin_name| |
| 525 | // has been found. |
| 526 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin, |
| 527 | string16 /* plugin_name */) |
| 528 | |
| 529 | // Notifies a missing plug-in placeholder that no plug-in has been found. |
| 530 | IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin) |
| 531 | |
[email protected] | 0dd9e8b | 2012-01-04 13:36:16 | [diff] [blame] | 532 | // Notifies a missing plug-in placeholder that we have started downloading |
| 533 | // the plug-in. |
| 534 | IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin) |
| 535 | |
| 536 | // Notifies a missing plug-in placeholder that we have finished downloading |
| 537 | // the plug-in. |
| 538 | IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin) |
| 539 | |
[email protected] | 725f688 | 2012-01-13 18:50:06 | [diff] [blame] | 540 | // Notifies a missing plug-in placeholder that there was an error downloading |
| 541 | // the plug-in. |
| 542 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin, |
| 543 | std::string /* message */) |
[email protected] | 4f62d805 | 2012-01-18 16:16:59 | [diff] [blame] | 544 | #endif // defined(ENABLE_PLUGIN_INSTALLATION) |
| 545 | |
[email protected] | 1a86f75 | 2012-02-10 13:20:36 | [diff] [blame] | 546 | // Notifies a missing plug-in placeholder that the user cancelled downloading |
| 547 | // the plug-in. |
| 548 | IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin) |
| 549 | |
[email protected] | 4f62d805 | 2012-01-18 16:16:59 | [diff] [blame] | 550 | // Tells the browser to open chrome://plugins in a new tab. We use a separate |
| 551 | // message because renderer processes aren't allowed to directly navigate to |
| 552 | // chrome:// URLs. |
| 553 | IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins) |
[email protected] | 725f688 | 2012-01-13 18:50:06 | [diff] [blame] | 554 | |
[email protected] | cc5f781 | 2012-05-31 13:50:34 | [diff] [blame] | 555 | // Tells the browser that there was an error loading a plug-in. |
| 556 | IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin, |
[email protected] | a732916 | 2013-02-07 19:21:48 | [diff] [blame] | 557 | base::FilePath /* plugin_path */) |
[email protected] | cc5f781 | 2012-05-31 13:50:34 | [diff] [blame] | 558 | |
[email protected] | a119913 | 2012-10-26 22:14:41 | [diff] [blame] | 559 | // Tells the browser that we blocked a plug-in because NPAPI is not supported. |
| 560 | IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported, |
| 561 | std::string /* identifer */) |
| 562 | |
[email protected] | cc7b1101 | 2013-05-02 22:02:53 | [diff] [blame] | 563 | // Tells the renderer that the NPAPI cannot be used. For example Ash on windows. |
| 564 | IPC_MESSAGE_ROUTED0(ChromeViewMsg_NPAPINotSupported) |
| 565 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 566 | // A message for an external host. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 567 | IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ForwardMessageToExternalHost, |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 568 | std::string /* message */, |
| 569 | std::string /* origin */, |
| 570 | std::string /* target */) |
| 571 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 572 | // Notification that the page has an OpenSearch description document |
| 573 | // associated with it. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 574 | IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD, |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 575 | int32 /* page_id */, |
| 576 | GURL /* url of OS description document */, |
[email protected] | c08e793 | 2011-03-29 04:08:14 | [diff] [blame] | 577 | search_provider::OSDDType) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 578 | |
| 579 | // Find out if the given url's security origin is installed as a search |
| 580 | // provider. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 581 | IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState, |
[email protected] | c08e793 | 2011-03-29 04:08:14 | [diff] [blame] | 582 | GURL /* page url */, |
| 583 | GURL /* inquiry url */, |
| 584 | search_provider::InstallState /* install */) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 585 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 586 | // Sends back stats about the V8 heap. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 587 | IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats, |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 588 | int /* size of heap (allocated from the OS) */, |
| 589 | int /* bytes in use */) |
| 590 | |
| 591 | // Request for a DNS prefetch of the names in the array. |
| 592 | // NameList is typedef'ed std::vector<std::string> |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 593 | IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_DnsPrefetch, |
[email protected] | 2bf2bd9 | 2011-03-31 07:12:44 | [diff] [blame] | 594 | std::vector<std::string> /* hostnames */) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 595 | |
[email protected] | b1e7562d | 2013-05-27 05:47:53 | [diff] [blame] | 596 | // Request for preconnect to host providing resource specified by URL |
| 597 | IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_Preconnect, |
| 598 | GURL /* preconnect target url */) |
| 599 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 600 | // Notifies when a plugin couldn't be loaded because it's outdated. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 601 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin, |
[email protected] | 27c48389 | 2012-02-09 15:59:10 | [diff] [blame] | 602 | int /* placeholder ID */, |
| 603 | std::string /* plug-in group identifier */) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 604 | |
[email protected] | e242401 | 2012-02-03 10:26:50 | [diff] [blame] | 605 | // Notifies when a plugin couldn't be loaded because it requires |
| 606 | // user authorization. |
[email protected] | 51ffaf7 | 2012-05-09 21:00:49 | [diff] [blame] | 607 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin, |
| 608 | string16 /* name */, |
| 609 | std::string /* plug-in group identifier */) |
[email protected] | e242401 | 2012-02-03 10:26:50 | [diff] [blame] | 610 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 611 | // Provide the browser process with information about the WebCore resource |
[email protected] | 872ae5b | 2011-05-26 20:20:50 | [diff] [blame] | 612 | // cache and current renderer framerate. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 613 | IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats, |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 614 | WebKit::WebCache::ResourceTypeStats) |
| 615 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 616 | // Notifies the browser that a page has been translated. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 617 | IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_PageTranslated, |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 618 | int, /* page id */ |
| 619 | std::string /* the original language */, |
| 620 | std::string /* the translated language */, |
| 621 | TranslateErrors::Type /* the error type if available */) |
| 622 | |
[email protected] | 4c94b8c | 2011-05-17 16:17:45 | [diff] [blame] | 623 | // Message sent from the renderer to the browser to notify it of a |
| 624 | // window.print() call which should cancel the prerender. The message is sent |
| 625 | // only when the renderer is prerendering. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 626 | IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting) |
[email protected] | 4c94b8c | 2011-05-17 16:17:45 | [diff] [blame] | 627 | |
[email protected] | ab2eb9f | 2011-05-03 23:02:37 | [diff] [blame] | 628 | // Sent by the renderer to check if a URL has permission to trigger a clipboard |
| 629 | // read/write operation from the DOM. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 630 | IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_CanTriggerClipboardRead, |
[email protected] | 34eec7ffe3 | 2011-11-02 23:49:02 | [diff] [blame] | 631 | GURL /* origin */, |
[email protected] | ab2eb9f | 2011-05-03 23:02:37 | [diff] [blame] | 632 | bool /* allowed */) |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 633 | IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_CanTriggerClipboardWrite, |
[email protected] | 34eec7ffe3 | 2011-11-02 23:49:02 | [diff] [blame] | 634 | GURL /* origin */, |
[email protected] | ab2eb9f | 2011-05-03 23:02:37 | [diff] [blame] | 635 | bool /* allowed */) |
| 636 | |
[email protected] | 68cafdb | 2011-06-10 21:42:18 | [diff] [blame] | 637 | // Sent when the renderer was prevented from displaying insecure content in |
| 638 | // a secure page by a security policy. The page may appear incomplete. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 639 | IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent) |
[email protected] | 68cafdb | 2011-06-10 21:42:18 | [diff] [blame] | 640 | |
| 641 | // Sent when the renderer was prevented from running insecure content in |
| 642 | // a secure origin by a security policy. The page may appear incomplete. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 643 | IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent) |
[email protected] | 68cafdb | 2011-06-10 21:42:18 | [diff] [blame] | 644 | |
[email protected] | 5120825 | 2013-08-19 21:05:30 | [diff] [blame] | 645 | #if defined(OS_ANDROID) |
| 646 | // Contains info about whether the current page can be treated as a webapp. |
[email protected] | 0dd4511 | 2013-10-04 21:40:37 | [diff] [blame] | 647 | IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveWebappInformation, |
[email protected] | 5120825 | 2013-08-19 21:05:30 | [diff] [blame] | 648 | bool /* success */, |
[email protected] | 0dd4511 | 2013-10-04 21:40:37 | [diff] [blame] | 649 | bool /* is_mobile_webapp_capable */, |
| 650 | bool /* is_apple_mobile_webapp_capable */, |
[email protected] | 5820d32c | 2013-08-28 10:03:50 | [diff] [blame] | 651 | GURL /* expected_url */) |
[email protected] | 5120825 | 2013-08-19 21:05:30 | [diff] [blame] | 652 | #endif // defined(OS_ANDROID) |
| 653 | |
[email protected] | 2d0f2e9 | 2011-10-03 09:02:24 | [diff] [blame] | 654 | // Message sent from renderer to the browser when the element that is focused |
[email protected] | e15ad75 | 2012-12-21 19:12:02 | [diff] [blame] | 655 | // has been touched. A bool is passed in this message which indicates if the |
| 656 | // node is editable. |
| 657 | IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FocusedNodeTouched, |
| 658 | bool /* editable */) |
[email protected] | 2d0f2e9 | 2011-10-03 09:02:24 | [diff] [blame] | 659 | |
[email protected] | 21d89834 | 2011-08-23 18:14:41 | [diff] [blame] | 660 | // The currently displayed PDF has an unsupported feature. |
| 661 | IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 662 | |
[email protected] | 3c71576ce | 2013-07-23 02:00:01 | [diff] [blame] | 663 | // Brings up SaveAs... dialog to save specified URL. |
| 664 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PDFSaveURLAs, |
| 665 | GURL /* url */, |
| 666 | content::Referrer /* referrer */) |
| 667 | |
| 668 | // Updates the content restrictions, i.e. to disable print/copy. |
| 669 | IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_PDFUpdateContentRestrictions, |
| 670 | int /* restrictions */) |
| 671 | |
[email protected] | b3250571 | 2013-09-13 18:29:13 | [diff] [blame] | 672 | // Brings up a Password... dialog for protected documents. |
| 673 | IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_PDFModalPromptForPassword, |
| 674 | std::string /* prompt */, |
| 675 | std::string /* actual_value */) |
| 676 | |
[email protected] | 83af80b2 | 2011-09-06 18:49:19 | [diff] [blame] | 677 | // This message indicates the error appeared in the frame. |
| 678 | IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError, |
| 679 | int /* error */) |
| 680 | |
[email protected] | ebce952 | 2011-10-27 19:17:17 | [diff] [blame] | 681 | // This message indicates the monitored frame loading had completed. |
| 682 | IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted) |
| 683 | |
[email protected] | 6a3eede | 2011-08-29 23:48:05 | [diff] [blame] | 684 | // The following messages are used to set and get cookies for ChromeFrame |
| 685 | // processes. |
| 686 | // Used to set a cookie. The cookie is set asynchronously, but will be |
| 687 | // available to a subsequent ChromeViewHostMsg_GetCookies request. |
| 688 | IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SetCookie, |
| 689 | GURL /* url */, |
| 690 | GURL /* first_party_for_cookies */, |
| 691 | std::string /* cookie */) |
| 692 | |
| 693 | // Used to get cookies for the given URL. This may block waiting for a |
| 694 | // previous SetCookie message to be processed. |
| 695 | IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, |
| 696 | GURL /* url */, |
| 697 | GURL /* first_party_for_cookies */, |
| 698 | std::string /* cookies */) |
[email protected] | a1127f8 | 2011-09-08 17:27:01 | [diff] [blame] | 699 | |
| 700 | // Provide the browser process with current renderer framerate. |
| 701 | IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, |
| 702 | int /* routing id */, |
| 703 | float /* frames per second */) |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 704 | |
[email protected] | 09da02f | 2013-08-14 01:41:59 | [diff] [blame] | 705 | // Logs events from InstantExtended New Tab Pages. |
| 706 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_LogEvent, |
| 707 | int /* page_id */, |
| 708 | NTPLoggingEventType /* event */) |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 709 | |
| 710 | // Tells InstantExtended to set the omnibox focus state. |
| 711 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FocusOmnibox, |
| 712 | int /* page_id */, |
| 713 | OmniboxFocusState /* state */) |
| 714 | |
[email protected] | 6cf51b6 | 2013-08-10 13:49:22 | [diff] [blame] | 715 | // Tells InstantExtended to paste text into the omnibox. If text is empty, |
| 716 | // the clipboard contents will be pasted. This causes the omnibox dropdown to |
| 717 | // open. |
| 718 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PasteAndOpenDropdown, |
| 719 | int /* page_id */, |
| 720 | string16 /* text to be pasted */) |
| 721 | |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 722 | // Tells InstantExtended whether the embedded search API is supported. |
| 723 | // See http://dev.chromium.org/embeddedsearch |
| 724 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined, |
| 725 | int /* page_id */, |
| 726 | bool /* result */) |
| 727 | |
| 728 | // Tells InstantExtended to delete a most visited item. |
| 729 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem, |
| 730 | int /* page_id */, |
| 731 | GURL /* url */) |
| 732 | |
[email protected] | 064f57a | 2013-10-28 21:50:56 | [diff] [blame^] | 733 | // Tells InstantExtended to navigate the active tab to a possibly privileged |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 734 | // URL. |
[email protected] | 064f57a | 2013-10-28 21:50:56 | [diff] [blame^] | 735 | IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_SearchBoxNavigate, |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 736 | int /* page_id */, |
| 737 | GURL /* destination */, |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 738 | WindowOpenDisposition /* disposition */, |
[email protected] | 064f57a | 2013-10-28 21:50:56 | [diff] [blame^] | 739 | bool /*is_most_visited_item_url*/) |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 740 | |
| 741 | // Tells InstantExtended to undo all most visited item deletions. |
| 742 | IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions, |
| 743 | int /* page_id */) |
| 744 | |
| 745 | // Tells InstantExtended to undo one most visited item deletion. |
| 746 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion, |
| 747 | int /* page_id */, |
| 748 | GURL /* url */) |
| 749 | |
| 750 | // Tells InstantExtended whether the page supports voice search. |
| 751 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetVoiceSearchSupported, |
| 752 | int /* page_id */, |
| 753 | bool /* supported */) |
[email protected] | 88b50b6 | 2013-09-01 23:05:06 | [diff] [blame] | 754 | |
[email protected] | 2309e91 | 2013-10-01 01:33:30 | [diff] [blame] | 755 | // Tells the renderer a list of URLs which should be bounced back to the browser |
| 756 | // process so that they can be assigned to an Instant renderer. |
| 757 | IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, |
| 758 | std::vector<GURL> /* search_urls */, |
| 759 | GURL /* new_tab_page_url */) |
| 760 | |
[email protected] | 88b50b6 | 2013-09-01 23:05:06 | [diff] [blame] | 761 | // Tells listeners that a detailed message was reported to the console by |
| 762 | // WebKit. |
| 763 | IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DetailedConsoleMessageAdded, |
| 764 | string16 /* message */, |
| 765 | string16 /* source */, |
| 766 | extensions::StackTrace /* stack trace */, |
| 767 | int32 /* severity level */) |