[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. |
[email protected] | e5a7a2a | 2014-03-27 16:16:03 | [diff] [blame] | 6 | #include <stdint.h> |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 7 | #include <map> |
| 8 | #include <set> |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 9 | #include <string> |
| 10 | #include <vector> |
| 11 | |
[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] | 79d68c6 | 2011-04-15 21:07:03 | [diff] [blame] | 19 | #include "chrome/common/common_param_traits.h" |
[email protected] | c1440609 | 2011-10-27 13:43:42 | [diff] [blame] | 20 | #include "chrome/common/content_settings.h" |
[email protected] | 610ca83 | 2011-10-19 12:59:20 | [diff] [blame] | 21 | #include "chrome/common/content_settings_pattern.h" |
[email protected] | 1c9c7fb | 2011-03-11 16:38:38 | [diff] [blame] | 22 | #include "chrome/common/instant_types.h" |
[email protected] | 09da02f | 2013-08-14 01:41:59 | [diff] [blame] | 23 | #include "chrome/common/ntp_logging_events.h" |
[email protected] | ca98bd3 | 2013-04-09 05:16:05 | [diff] [blame] | 24 | #include "chrome/common/omnibox_focus_state.h" |
[email protected] | c08e793 | 2011-03-29 04:08:14 | [diff] [blame] | 25 | #include "chrome/common/search_provider.h" |
[email protected] | 08f7101 | 2014-07-25 10:27:54 | [diff] [blame^] | 26 | #include "components/content_settings/core/common/content_settings_types.h" |
[email protected] | 512b5bd | 2013-07-23 20:24:00 | [diff] [blame] | 27 | #include "components/nacl/common/nacl_types.h" |
[email protected] | 19a5c744 | 2011-10-21 20:00:41 | [diff] [blame] | 28 | #include "content/public/common/common_param_traits.h" |
[email protected] | 3c71576ce | 2013-07-23 02:00:01 | [diff] [blame] | 29 | #include "content/public/common/referrer.h" |
[email protected] | 9b00348 | 2013-05-21 14:00:17 | [diff] [blame] | 30 | #include "content/public/common/top_controls_state.h" |
[email protected] | 17b5a817 | 2012-06-22 21:09:09 | [diff] [blame] | 31 | #include "ipc/ipc_channel_handle.h" |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 32 | #include "ipc/ipc_message_macros.h" |
[email protected] | e7f009d | 2011-06-14 19:35:10 | [diff] [blame] | 33 | #include "ipc/ipc_platform_file.h" |
[email protected] | 2255a933 | 2013-06-17 05:12:31 | [diff] [blame] | 34 | #include "third_party/WebKit/public/web/WebCache.h" |
| 35 | #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
[email protected] | ffff5b3 | 2014-06-25 21:31:08 | [diff] [blame] | 36 | #include "third_party/skia/include/core/SkBitmap.h" |
[email protected] | 3c3acca | 2013-02-26 03:07:07 | [diff] [blame] | 37 | #include "ui/base/window_open_disposition.h" |
[email protected] | ffff5b3 | 2014-06-25 21:31:08 | [diff] [blame] | 38 | #include "ui/gfx/ipc/gfx_param_traits.h" |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 39 | #include "ui/gfx/rect.h" |
[email protected] | 7a4de7a6 | 2010-08-17 18:38:24 | [diff] [blame] | 40 | |
[email protected] | 44c49c9 | 2011-03-28 16:17:23 | [diff] [blame] | 41 | // Singly-included section for enums and custom IPC traits. |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 42 | #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ |
| 43 | #define CHROME_COMMON_RENDER_MESSAGES_H_ |
[email protected] | 049eec2 | 2010-10-20 21:32:52 | [diff] [blame] | 44 | |
[email protected] | 51b63f6 | 2011-10-05 18:55:42 | [diff] [blame] | 45 | // This enum is inside a struct so that we can forward-declare the struct in |
| 46 | // others headers without having to include this one. |
| 47 | struct ChromeViewHostMsg_GetPluginInfo_Status { |
[email protected] | 51b63f6 | 2011-10-05 18:55:42 | [diff] [blame] | 48 | enum Value { |
| 49 | kAllowed, |
[email protected] | 8aa7a41 | 2011-11-07 12:33:42 | [diff] [blame] | 50 | kBlocked, |
[email protected] | 6a9d1deb | 2014-01-13 19:39:41 | [diff] [blame] | 51 | kBlockedByPolicy, |
[email protected] | 8aa7a41 | 2011-11-07 12:33:42 | [diff] [blame] | 52 | kClickToPlay, |
[email protected] | 51b63f6 | 2011-10-05 18:55:42 | [diff] [blame] | 53 | kDisabled, |
| 54 | kNotFound, |
[email protected] | a119913 | 2012-10-26 22:14:41 | [diff] [blame] | 55 | kNPAPINotSupported, |
[email protected] | 8aa7a41 | 2011-11-07 12:33:42 | [diff] [blame] | 56 | kOutdatedBlocked, |
| 57 | kOutdatedDisallowed, |
| 58 | kUnauthorized, |
[email protected] | 51b63f6 | 2011-10-05 18:55:42 | [diff] [blame] | 59 | }; |
| 60 | |
| 61 | ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed) {} |
| 62 | |
| 63 | Value value; |
| 64 | }; |
| 65 | |
[email protected] | 7d5c3ac | 2009-02-04 08:58:19 | [diff] [blame] | 66 | namespace IPC { |
| 67 | |
[email protected] | 7b291f9 | 2009-08-14 05:43:53 | [diff] [blame] | 68 | template <> |
[email protected] | 610ca83 | 2011-10-19 12:59:20 | [diff] [blame] | 69 | struct ParamTraits<ContentSettingsPattern> { |
| 70 | typedef ContentSettingsPattern param_type; |
| 71 | static void Write(Message* m, const param_type& p); |
[email protected] | ce208f87 | 2012-03-07 20:42:56 | [diff] [blame] | 72 | static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
[email protected] | 610ca83 | 2011-10-19 12:59:20 | [diff] [blame] | 73 | static void Log(const param_type& p, std::string* l); |
| 74 | }; |
| 75 | |
[email protected] | b3df5a4 | 2010-05-11 14:31:09 | [diff] [blame] | 76 | } // namespace IPC |
[email protected] | 9f4db51 | 2010-05-10 20:21:41 | [diff] [blame] | 77 | |
[email protected] | 5a52f16 | 2008-08-27 04:15:31 | [diff] [blame] | 78 | #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 79 | |
[email protected] | 778574e | 2011-03-21 22:03:50 | [diff] [blame] | 80 | #define IPC_MESSAGE_START ChromeMsgStart |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 81 | |
[email protected] | 6a9d1deb | 2014-01-13 19:39:41 | [diff] [blame] | 82 | IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status::Value, |
| 83 | ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized) |
[email protected] | 8d4c276d | 2013-05-29 19:39:52 | [diff] [blame] | 84 | IPC_ENUM_TRAITS(OmniboxFocusChangeReason) |
[email protected] | ca98bd3 | 2013-04-09 05:16:05 | [diff] [blame] | 85 | IPC_ENUM_TRAITS(OmniboxFocusState) |
[email protected] | c08e793 | 2011-03-29 04:08:14 | [diff] [blame] | 86 | IPC_ENUM_TRAITS(search_provider::OSDDType) |
| 87 | IPC_ENUM_TRAITS(search_provider::InstallState) |
[email protected] | a682765 | 2012-11-20 23:41:08 | [diff] [blame] | 88 | IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment) |
| 89 | IPC_ENUM_TRAITS(ThemeBackgroundImageTiling) |
[email protected] | a1221aea | 2013-11-07 01:31:30 | [diff] [blame] | 90 | IPC_ENUM_TRAITS(blink::WebConsoleMessage::Level) |
[email protected] | 9b00348 | 2013-05-21 14:00:17 | [diff] [blame] | 91 | IPC_ENUM_TRAITS(content::TopControlsState) |
[email protected] | fffaf97 | 2011-03-24 01:34:35 | [diff] [blame] | 92 | |
[email protected] | 51b63f6 | 2011-10-05 18:55:42 | [diff] [blame] | 93 | IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status) |
| 94 | IPC_STRUCT_TRAITS_MEMBER(value) |
| 95 | IPC_STRUCT_TRAITS_END() |
| 96 | |
[email protected] | cd33d28 | 2012-09-21 12:53:04 | [diff] [blame] | 97 | // Output parameters for ChromeViewHostMsg_GetPluginInfo message. |
| 98 | IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output) |
| 99 | IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status) |
[email protected] | d7bd3e5 | 2013-07-21 04:29:20 | [diff] [blame] | 100 | IPC_STRUCT_MEMBER(content::WebPluginInfo, plugin) |
[email protected] | cd33d28 | 2012-09-21 12:53:04 | [diff] [blame] | 101 | IPC_STRUCT_MEMBER(std::string, actual_mime_type) |
| 102 | IPC_STRUCT_MEMBER(std::string, group_identifier) |
[email protected] | 428fac1 | 2013-12-05 21:38:49 | [diff] [blame] | 103 | IPC_STRUCT_MEMBER(base::string16, group_name) |
[email protected] | cd33d28 | 2012-09-21 12:53:04 | [diff] [blame] | 104 | IPC_STRUCT_END() |
| 105 | |
[email protected] | 610ca83 | 2011-10-19 12:59:20 | [diff] [blame] | 106 | IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts) |
| 107 | IPC_STRUCT_TRAITS_MEMBER(scheme) |
| 108 | IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard) |
| 109 | IPC_STRUCT_TRAITS_MEMBER(host) |
| 110 | IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard) |
| 111 | IPC_STRUCT_TRAITS_MEMBER(port) |
| 112 | IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard) |
| 113 | IPC_STRUCT_TRAITS_MEMBER(path) |
[email protected] | ae689aab | 2012-01-23 17:52:08 | [diff] [blame] | 114 | IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard) |
[email protected] | 610ca83 | 2011-10-19 12:59:20 | [diff] [blame] | 115 | IPC_STRUCT_TRAITS_END() |
| 116 | |
[email protected] | c1440609 | 2011-10-27 13:43:42 | [diff] [blame] | 117 | IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource) |
| 118 | IPC_STRUCT_TRAITS_MEMBER(primary_pattern) |
| 119 | IPC_STRUCT_TRAITS_MEMBER(secondary_pattern) |
| 120 | IPC_STRUCT_TRAITS_MEMBER(setting) |
| 121 | IPC_STRUCT_TRAITS_MEMBER(source) |
| 122 | IPC_STRUCT_TRAITS_MEMBER(incognito) |
| 123 | IPC_STRUCT_TRAITS_END() |
| 124 | |
[email protected] | 987fad78 | 2013-08-28 06:23:18 | [diff] [blame] | 125 | IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion) |
| 126 | IPC_STRUCT_TRAITS_MEMBER(text) |
| 127 | IPC_STRUCT_TRAITS_MEMBER(metadata) |
| 128 | IPC_STRUCT_TRAITS_END() |
| 129 | |
[email protected] | e7868c8 | 2013-03-12 03:55:56 | [diff] [blame] | 130 | IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem) |
[email protected] | dfee2f6 | 2013-02-22 06:46:06 | [diff] [blame] | 131 | IPC_STRUCT_TRAITS_MEMBER(url) |
| 132 | IPC_STRUCT_TRAITS_MEMBER(title) |
| 133 | IPC_STRUCT_TRAITS_END() |
| 134 | |
[email protected] | edece21 | 2011-11-16 11:56:56 | [diff] [blame] | 135 | IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules) |
| 136 | IPC_STRUCT_TRAITS_MEMBER(image_rules) |
| 137 | IPC_STRUCT_TRAITS_MEMBER(script_rules) |
| 138 | IPC_STRUCT_TRAITS_END() |
| 139 | |
[email protected] | a8c2847 | 2013-07-17 05:34:29 | [diff] [blame] | 140 | IPC_STRUCT_TRAITS_BEGIN(RGBAColor) |
| 141 | IPC_STRUCT_TRAITS_MEMBER(r) |
| 142 | IPC_STRUCT_TRAITS_MEMBER(g) |
| 143 | IPC_STRUCT_TRAITS_MEMBER(b) |
| 144 | IPC_STRUCT_TRAITS_MEMBER(a) |
| 145 | IPC_STRUCT_TRAITS_END() |
| 146 | |
[email protected] | a682765 | 2012-11-20 23:41:08 | [diff] [blame] | 147 | IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo) |
[email protected] | a8c2847 | 2013-07-17 05:34:29 | [diff] [blame] | 148 | IPC_STRUCT_TRAITS_MEMBER(using_default_theme) |
| 149 | IPC_STRUCT_TRAITS_MEMBER(background_color) |
| 150 | IPC_STRUCT_TRAITS_MEMBER(text_color) |
| 151 | IPC_STRUCT_TRAITS_MEMBER(link_color) |
| 152 | IPC_STRUCT_TRAITS_MEMBER(text_color_light) |
| 153 | IPC_STRUCT_TRAITS_MEMBER(header_color) |
| 154 | IPC_STRUCT_TRAITS_MEMBER(section_border_color) |
[email protected] | a682765 | 2012-11-20 23:41:08 | [diff] [blame] | 155 | IPC_STRUCT_TRAITS_MEMBER(theme_id) |
| 156 | IPC_STRUCT_TRAITS_MEMBER(image_horizontal_alignment) |
| 157 | IPC_STRUCT_TRAITS_MEMBER(image_vertical_alignment) |
| 158 | IPC_STRUCT_TRAITS_MEMBER(image_tiling) |
| 159 | IPC_STRUCT_TRAITS_MEMBER(image_height) |
[email protected] | 5189fa1 | 2013-03-20 23:00:05 | [diff] [blame] | 160 | IPC_STRUCT_TRAITS_MEMBER(has_attribution) |
[email protected] | a8c2847 | 2013-07-17 05:34:29 | [diff] [blame] | 161 | IPC_STRUCT_TRAITS_MEMBER(logo_alternate) |
[email protected] | a682765 | 2012-11-20 23:41:08 | [diff] [blame] | 162 | IPC_STRUCT_TRAITS_END() |
| 163 | |
[email protected] | a1221aea | 2013-11-07 01:31:30 | [diff] [blame] | 164 | IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStat) |
[email protected] | fffaf97 | 2011-03-24 01:34:35 | [diff] [blame] | 165 | IPC_STRUCT_TRAITS_MEMBER(count) |
| 166 | IPC_STRUCT_TRAITS_MEMBER(size) |
| 167 | IPC_STRUCT_TRAITS_MEMBER(liveSize) |
| 168 | IPC_STRUCT_TRAITS_MEMBER(decodedSize) |
| 169 | IPC_STRUCT_TRAITS_END() |
| 170 | |
[email protected] | a1221aea | 2013-11-07 01:31:30 | [diff] [blame] | 171 | IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::ResourceTypeStats) |
[email protected] | fffaf97 | 2011-03-24 01:34:35 | [diff] [blame] | 172 | IPC_STRUCT_TRAITS_MEMBER(images) |
| 173 | IPC_STRUCT_TRAITS_MEMBER(cssStyleSheets) |
| 174 | IPC_STRUCT_TRAITS_MEMBER(scripts) |
| 175 | IPC_STRUCT_TRAITS_MEMBER(xslStyleSheets) |
| 176 | IPC_STRUCT_TRAITS_MEMBER(fonts) |
| 177 | IPC_STRUCT_TRAITS_END() |
| 178 | |
[email protected] | a1221aea | 2013-11-07 01:31:30 | [diff] [blame] | 179 | IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::UsageStats) |
[email protected] | fffaf97 | 2011-03-24 01:34:35 | [diff] [blame] | 180 | IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity) |
| 181 | IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity) |
| 182 | IPC_STRUCT_TRAITS_MEMBER(capacity) |
| 183 | IPC_STRUCT_TRAITS_MEMBER(liveSize) |
| 184 | IPC_STRUCT_TRAITS_MEMBER(deadSize) |
| 185 | IPC_STRUCT_TRAITS_END() |
| 186 | |
[email protected] | 09da02f | 2013-08-14 01:41:59 | [diff] [blame] | 187 | IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType, |
| 188 | NTP_NUM_EVENT_TYPES) |
| 189 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 190 | //----------------------------------------------------------------------------- |
| 191 | // RenderView messages |
| 192 | // These are messages sent from the browser to the renderer process. |
| 193 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 194 | // Tells the renderer to set its maximum cache size to the supplied value. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 195 | IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities, |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 196 | size_t /* min_dead_capacity */, |
| 197 | size_t /* max_dead_capacity */, |
| 198 | size_t /* capacity */) |
| 199 | |
| 200 | // Tells the renderer to clear the cache. |
[email protected] | e81d4d7 | 2011-09-29 16:54:31 | [diff] [blame] | 201 | IPC_MESSAGE_CONTROL1(ChromeViewMsg_ClearCache, |
| 202 | bool /* on_navigation */) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 203 | |
[email protected] | bd35d3a | 2014-06-22 01:12:51 | [diff] [blame] | 204 | #if !defined(OS_ANDROID) && !defined(OS_IOS) |
[email protected] | db3be76f | 2014-03-25 02:27:47 | [diff] [blame] | 205 | // For WebUI testing, this message requests JavaScript to be executed at a time |
| 206 | // which is late enough to not be thrown out, and early enough to be before |
| 207 | // onload events are fired. |
| 208 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript, |
| 209 | base::string16 /* javascript */) |
[email protected] | bd35d3a | 2014-06-22 01:12:51 | [diff] [blame] | 210 | #endif |
[email protected] | 350019f | 2011-08-02 04:18:33 | [diff] [blame] | 211 | |
[email protected] | edece21 | 2011-11-16 11:56:56 | [diff] [blame] | 212 | // Set the content setting rules stored by the renderer. |
| 213 | IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules, |
| 214 | RendererContentSettingRules /* rules */) |
[email protected] | c1440609 | 2011-10-27 13:43:42 | [diff] [blame] | 215 | |
[email protected] | a86c0e96 | 2013-12-17 17:10:39 | [diff] [blame] | 216 | // Tells the render frame to load all blocked plugins with the given identifier. |
[email protected] | 51ffaf7 | 2012-05-09 21:00:49 | [diff] [blame] | 217 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins, |
| 218 | std::string /* identifier */) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 219 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 220 | // Asks the renderer to send back stats on the WebCore cache broken down by |
| 221 | // resource types. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 222 | IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 223 | |
[email protected] | 63a8ba1 | 2011-04-29 05:42:22 | [diff] [blame] | 224 | // Tells the renderer to create a FieldTrial, and by using a 100% probability |
| 225 | // for the FieldTrial, forces the FieldTrial to have assigned group name. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 226 | IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup, |
[email protected] | 63a8ba1 | 2011-04-29 05:42:22 | [diff] [blame] | 227 | std::string /* field trial name */, |
| 228 | std::string /* group name that was assigned. */) |
| 229 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 230 | // Asks the renderer to send back V8 heap stats. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 231 | IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 232 | |
[email protected] | 8133e41 | 2014-05-31 00:51:38 | [diff] [blame] | 233 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetPageSequenceNumber, |
| 234 | int /* page_seq_no */) |
| 235 | |
[email protected] | c55e3b8 | 2012-08-09 15:27:05 | [diff] [blame] | 236 | IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 237 | |
[email protected] | 987fad78 | 2013-08-28 06:23:18 | [diff] [blame] | 238 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetDisplayInstantResults, |
| 239 | bool /* display_instant_results */) |
| 240 | |
[email protected] | 8d4c276d | 2013-05-29 19:39:52 | [diff] [blame] | 241 | IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFocusChanged, |
| 242 | OmniboxFocusState /* new_focus_state */, |
| 243 | OmniboxFocusChangeReason /* reason */) |
[email protected] | 6a6811a | 2012-12-12 04:18:16 | [diff] [blame] | 244 | |
[email protected] | 3296da4 | 2014-01-30 04:12:15 | [diff] [blame] | 245 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMarginChange, int /* start */) |
[email protected] | 0d0b4a4 | 2013-06-14 00:46:26 | [diff] [blame] | 246 | |
[email protected] | e7868c8 | 2013-03-12 03:55:56 | [diff] [blame] | 247 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged, |
[email protected] | ab01dd75 | 2013-06-08 05:13:36 | [diff] [blame] | 248 | std::vector<InstantMostVisitedItem> /* items */) |
[email protected] | dfee2f6 | 2013-02-22 06:46:06 | [diff] [blame] | 249 | |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 250 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation, |
| 251 | bool /* is_app_launcher_enabled */) |
[email protected] | dfee2f6 | 2013-02-22 06:46:06 | [diff] [blame] | 252 | |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 253 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress, |
| 254 | bool /* input_in_progress */) |
[email protected] | dfee2f6 | 2013-02-22 06:46:06 | [diff] [blame] | 255 | |
[email protected] | 987fad78 | 2013-08-28 06:23:18 | [diff] [blame] | 256 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch, |
| 257 | InstantSuggestion /* suggestion */) |
| 258 | |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 259 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSubmit, |
[email protected] | 428fac1 | 2013-12-05 21:38:49 | [diff] [blame] | 260 | base::string16 /* value */) |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 261 | |
| 262 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged, |
| 263 | ThemeBackgroundInfo /* value */) |
[email protected] | dfee2f6 | 2013-02-22 06:46:06 | [diff] [blame] | 264 | |
[email protected] | d76376d | 2013-10-31 06:44:42 | [diff] [blame] | 265 | IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult, |
[email protected] | 428fac1 | 2013-12-05 21:38:49 | [diff] [blame] | 266 | base::string16 /* identity */, |
[email protected] | d76376d | 2013-10-31 06:44:42 | [diff] [blame] | 267 | bool /* identity_match */) |
| 268 | |
[email protected] | 3473ae0 | 2013-06-07 00:28:08 | [diff] [blame] | 269 | IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch) |
| 270 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 271 | // Sent on process startup to indicate whether this process is running in |
| 272 | // incognito mode. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 273 | IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess, |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 274 | bool /* is_incognito_processs */) |
| 275 | |
[email protected] | 68cafdb | 2011-06-10 21:42:18 | [diff] [blame] | 276 | // Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 277 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent, |
[email protected] | 68cafdb | 2011-06-10 21:42:18 | [diff] [blame] | 278 | bool /* allowed */) |
| 279 | |
| 280 | // Sent in response to ViewHostMsg_DidBlockRunningInsecureContent. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 281 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent, |
[email protected] | 68cafdb | 2011-06-10 21:42:18 | [diff] [blame] | 282 | bool /* allowed */) |
| 283 | |
[email protected] | a86c0e96 | 2013-12-17 17:10:39 | [diff] [blame] | 284 | IPC_MESSAGE_ROUTED0(ChromeViewMsg_ReloadFrame) |
| 285 | |
[email protected] | a230f2f | 2014-05-24 01:37:54 | [diff] [blame] | 286 | // Tells the renderer whether or not a file system access has been allowed. |
| 287 | IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestFileSystemAccessAsyncResponse, |
| 288 | int /* request_id */, |
| 289 | bool /* allowed */) |
| 290 | |
[email protected] | 8c40da6 | 2011-07-13 22:58:46 | [diff] [blame] | 291 | // Sent when the profile changes the kSafeBrowsingEnabled preference. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 292 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection, |
[email protected] | 8c40da6 | 2011-07-13 22:58:46 | [diff] [blame] | 293 | bool /* enable_phishing_detection */) |
| 294 | |
[email protected] | 31dd25ab | 2013-07-31 21:59:05 | [diff] [blame] | 295 | // Asks the renderer for a thumbnail of the image selected by the most |
| 296 | // recently opened context menu, if there is one. If the image's area |
| 297 | // is greater than thumbnail_min_area it will be downscaled to |
| 298 | // be within thumbnail_max_size. The possibly downsampled image will be |
| 299 | // returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message. |
| 300 | IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode, |
| 301 | int /* thumbnail_min_area_pixels */, |
| 302 | gfx::Size /* thumbnail_max_size_pixels */) |
| 303 | |
[email protected] | 9b00348 | 2013-05-21 14:00:17 | [diff] [blame] | 304 | // Notifies the renderer whether hiding/showing the top controls is enabled, |
| 305 | // what the current state should be, and whether or not to animate to the |
| 306 | // proper state. |
| 307 | IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState, |
| 308 | content::TopControlsState /* constraints */, |
| 309 | content::TopControlsState /* current */, |
| 310 | bool /* animate */) |
| 311 | |
[email protected] | 31dd25ab | 2013-07-31 21:59:05 | [diff] [blame] | 312 | |
[email protected] | 6726406 | 2013-07-25 12:39:26 | [diff] [blame] | 313 | // Updates the window features of the render view. |
| 314 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures, |
[email protected] | a1221aea | 2013-11-07 01:31:30 | [diff] [blame] | 315 | blink::WebWindowFeatures /* window_features */) |
[email protected] | 6726406 | 2013-07-25 12:39:26 | [diff] [blame] | 316 | |
[email protected] | 2f3bc651 | 2013-08-28 03:56:27 | [diff] [blame] | 317 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK, |
| 318 | SkBitmap /* thumbnail */, |
| 319 | gfx::Size /* original size of the image */) |
[email protected] | 31dd25ab | 2013-07-31 21:59:05 | [diff] [blame] | 320 | |
[email protected] | 5120825 | 2013-08-19 21:05:30 | [diff] [blame] | 321 | #if defined(OS_ANDROID) |
| 322 | // Asks the renderer to return information about whether the current page can |
| 323 | // be treated as a webapp. |
| 324 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_RetrieveWebappInformation, |
| 325 | GURL /* expected_url */) |
[email protected] | 33b1c08 | 2014-02-01 01:46:35 | [diff] [blame] | 326 | |
| 327 | // Asks the renderer to return information about the given meta tag. |
| 328 | IPC_MESSAGE_ROUTED2(ChromeViewMsg_RetrieveMetaTagContent, |
| 329 | GURL /* expected_url */, |
| 330 | std::string /* tag_name */ ) |
[email protected] | 5120825 | 2013-08-19 21:05:30 | [diff] [blame] | 331 | #endif // defined(OS_ANDROID) |
[email protected] | 31dd25ab | 2013-07-31 21:59:05 | [diff] [blame] | 332 | |
[email protected] | 914cf671 | 2013-12-05 01:14:06 | [diff] [blame] | 333 | // chrome.principals messages ------------------------------------------------ |
| 334 | |
| 335 | // Message sent from the renderer to the browser to get the list of browser |
| 336 | // managed accounts for the given origin. |
| 337 | IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts, |
| 338 | GURL /* current URL */, |
| 339 | std::vector<std::string> /* managed accounts */) |
| 340 | |
| 341 | // Message sent from the renderer to the browser to show the browser account |
| 342 | // management UI. |
| 343 | IPC_MESSAGE_CONTROL0(ChromeViewHostMsg_ShowBrowserAccountManagementUI) |
| 344 | |
[email protected] | 21d89834 | 2011-08-23 18:14:41 | [diff] [blame] | 345 | // JavaScript related messages ----------------------------------------------- |
| 346 | |
[email protected] | a86c0e96 | 2013-12-17 17:10:39 | [diff] [blame] | 347 | // Tells the frame it is displaying an interstitial page. |
[email protected] | 6f9f7d8 | 2011-12-08 12:13:34 | [diff] [blame] | 348 | IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial) |
| 349 | |
[email protected] | 7e771bfb | 2013-01-14 23:23:21 | [diff] [blame] | 350 | // Provides the renderer with the results of the browser's investigation into |
| 351 | // why a recent main frame load failed (currently, just DNS probe result). |
| 352 | // NetErrorHelper will receive this mesage and replace or update the error |
| 353 | // page with more specific troubleshooting suggestions. |
| 354 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo, |
[email protected] | 2ea1efe | 2013-07-17 05:23:13 | [diff] [blame] | 355 | int /* DNS probe status */) |
[email protected] | 7e771bfb | 2013-01-14 23:23:21 | [diff] [blame] | 356 | |
[email protected] | 26bd3893c | 2014-04-15 18:59:58 | [diff] [blame] | 357 | // Provides the information needed by the renderer process to contact a |
| 358 | // navigation correction service. Handled by the NetErrorHelper. |
| 359 | IPC_MESSAGE_ROUTED5(ChromeViewMsg_SetNavigationCorrectionInfo, |
| 360 | GURL /* Navigation correction service base URL */, |
| 361 | std::string /* language */, |
| 362 | std::string /* origin_country */, |
| 363 | std::string /* API key to use */, |
| 364 | GURL /* Google Search URL to use */) |
[email protected] | 3d612f5 | 2014-01-13 23:48:29 | [diff] [blame] | 365 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 366 | //----------------------------------------------------------------------------- |
[email protected] | 63f7213 | 2012-04-18 18:02:44 | [diff] [blame] | 367 | // Misc messages |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 368 | // These are messages sent from the renderer to the browser process. |
| 369 | |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 370 | IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats, |
[email protected] | a1221aea | 2013-11-07 01:31:30 | [diff] [blame] | 371 | blink::WebCache::UsageStats /* stats */) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 372 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 373 | // Tells the browser that content in the current page was blocked due to the |
| 374 | // user's content settings. |
[email protected] | d49f6f7e | 2013-12-11 15:47:36 | [diff] [blame] | 375 | IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_ContentBlocked, |
| 376 | ContentSettingsType /* type of blocked content */) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 377 | |
[email protected] | 5327dfb | 2011-05-03 17:50:36 | [diff] [blame] | 378 | // Sent by the renderer process to check whether access to web databases is |
[email protected] | bac33eb | 2011-05-04 01:47:49 | [diff] [blame] | 379 | // granted by content settings. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 380 | IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase, |
[email protected] | a86c0e96 | 2013-12-17 17:10:39 | [diff] [blame] | 381 | int /* render_frame_id */, |
[email protected] | 9a611a9 | 2011-05-07 17:06:18 | [diff] [blame] | 382 | GURL /* origin_url */, |
[email protected] | c0a45a98 | 2011-05-25 16:58:15 | [diff] [blame] | 383 | GURL /* top origin url */, |
[email protected] | 428fac1 | 2013-12-05 21:38:49 | [diff] [blame] | 384 | base::string16 /* database name */, |
| 385 | base::string16 /* database display name */, |
[email protected] | 8c27664 | 2011-05-06 09:41:00 | [diff] [blame] | 386 | bool /* allowed */) |
[email protected] | bac33eb | 2011-05-04 01:47:49 | [diff] [blame] | 387 | |
| 388 | // Sent by the renderer process to check whether access to DOM Storage is |
| 389 | // granted by content settings. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 390 | IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage, |
[email protected] | a86c0e96 | 2013-12-17 17:10:39 | [diff] [blame] | 391 | int /* render_frame_id */, |
[email protected] | bac33eb | 2011-05-04 01:47:49 | [diff] [blame] | 392 | GURL /* origin_url */, |
[email protected] | c0a45a98 | 2011-05-25 16:58:15 | [diff] [blame] | 393 | GURL /* top origin url */, |
[email protected] | c729db8 | 2011-11-23 17:37:27 | [diff] [blame] | 394 | bool /* if true local storage, otherwise session */, |
[email protected] | 8c27664 | 2011-05-06 09:41:00 | [diff] [blame] | 395 | bool /* allowed */) |
[email protected] | 5327dfb | 2011-05-03 17:50:36 | [diff] [blame] | 396 | |
[email protected] | 45316d6 | 2011-05-12 18:15:30 | [diff] [blame] | 397 | // Sent by the renderer process to check whether access to FileSystem is |
| 398 | // granted by content settings. |
[email protected] | a230f2f | 2014-05-24 01:37:54 | [diff] [blame] | 399 | IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_RequestFileSystemAccessSync, |
[email protected] | a86c0e96 | 2013-12-17 17:10:39 | [diff] [blame] | 400 | int /* render_frame_id */, |
[email protected] | 45316d6 | 2011-05-12 18:15:30 | [diff] [blame] | 401 | GURL /* origin_url */, |
[email protected] | c0a45a98 | 2011-05-25 16:58:15 | [diff] [blame] | 402 | GURL /* top origin url */, |
[email protected] | 45316d6 | 2011-05-12 18:15:30 | [diff] [blame] | 403 | bool /* allowed */) |
| 404 | |
[email protected] | a230f2f | 2014-05-24 01:37:54 | [diff] [blame] | 405 | // Sent by the renderer process to check whether access to FileSystem is |
| 406 | // granted by content settings. |
| 407 | IPC_MESSAGE_CONTROL4(ChromeViewHostMsg_RequestFileSystemAccessAsync, |
| 408 | int /* render_frame_id */, |
| 409 | int /* request_id */, |
| 410 | GURL /* origin_url */, |
| 411 | GURL /* top origin url */) |
| 412 | |
[email protected] | 9a611a9 | 2011-05-07 17:06:18 | [diff] [blame] | 413 | // Sent by the renderer process to check whether access to Indexed DBis |
| 414 | // granted by content settings. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 415 | IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB, |
[email protected] | a86c0e96 | 2013-12-17 17:10:39 | [diff] [blame] | 416 | int /* render_frame_id */, |
[email protected] | c0a45a98 | 2011-05-25 16:58:15 | [diff] [blame] | 417 | GURL /* origin_url */, |
| 418 | GURL /* top origin url */, |
[email protected] | 428fac1 | 2013-12-05 21:38:49 | [diff] [blame] | 419 | base::string16 /* database name */, |
[email protected] | 9a611a9 | 2011-05-07 17:06:18 | [diff] [blame] | 420 | bool /* allowed */) |
[email protected] | 5327dfb | 2011-05-03 17:50:36 | [diff] [blame] | 421 | |
[email protected] | 51b63f6 | 2011-10-05 18:55:42 | [diff] [blame] | 422 | // Return information about a plugin for the given URL and MIME type. |
| 423 | // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows |
| 424 | // about specific reasons why a plug-in can't be used, for example because it's |
| 425 | // disabled. |
[email protected] | cd33d28 | 2012-09-21 12:53:04 | [diff] [blame] | 426 | IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo, |
[email protected] | 60eca4eb | 2013-12-06 00:02:16 | [diff] [blame] | 427 | int /* render_frame_id */, |
[email protected] | 51b63f6 | 2011-10-05 18:55:42 | [diff] [blame] | 428 | GURL /* url */, |
| 429 | GURL /* top origin url */, |
| 430 | std::string /* mime_type */, |
[email protected] | cd33d28 | 2012-09-21 12:53:04 | [diff] [blame] | 431 | ChromeViewHostMsg_GetPluginInfo_Output /* output */) |
[email protected] | 51b63f6 | 2011-10-05 18:55:42 | [diff] [blame] | 432 | |
[email protected] | bd35d3a | 2014-06-22 01:12:51 | [diff] [blame] | 433 | #if defined(ENABLE_PEPPER_CDMS) |
[email protected] | 4cbbeb4 | 2014-07-22 19:29:38 | [diff] [blame] | 434 | // Returns whether any internal plugin supporting |mime_type| is registered and |
| 435 | // enabled. Does not determine whether the plugin can actually be instantiated |
| 436 | // (e.g. whether it has all its dependencies). |
| 437 | // When the returned *|is_available| is true, |additional_param_names| and |
[email protected] | c33fa1e | 2013-10-29 06:08:06 | [diff] [blame] | 438 | // |additional_param_values| contain the name-value pairs, if any, specified |
[email protected] | 4cbbeb4 | 2014-07-22 19:29:38 | [diff] [blame] | 439 | // for the *first* non-disabled plugin found that is registered for |mime_type|. |
[email protected] | c33fa1e | 2013-10-29 06:08:06 | [diff] [blame] | 440 | IPC_SYNC_MESSAGE_CONTROL1_3( |
[email protected] | 4cbbeb4 | 2014-07-22 19:29:38 | [diff] [blame] | 441 | ChromeViewHostMsg_IsInternalPluginAvailableForMimeType, |
[email protected] | 3627aa3f | 2013-09-17 22:32:51 | [diff] [blame] | 442 | std::string /* mime_type */, |
[email protected] | 4cbbeb4 | 2014-07-22 19:29:38 | [diff] [blame] | 443 | bool /* is_available */, |
[email protected] | c33fa1e | 2013-10-29 06:08:06 | [diff] [blame] | 444 | std::vector<base::string16> /* additional_param_names */, |
| 445 | std::vector<base::string16> /* additional_param_values */) |
[email protected] | bd35d3a | 2014-06-22 01:12:51 | [diff] [blame] | 446 | #endif |
[email protected] | 3627aa3f | 2013-09-17 22:32:51 | [diff] [blame] | 447 | |
[email protected] | 43b7eaca | 2012-01-12 17:27:28 | [diff] [blame] | 448 | #if defined(ENABLE_PLUGIN_INSTALLATION) |
[email protected] | 1d697f3 | 2011-11-28 11:57:51 | [diff] [blame] | 449 | // Tells the browser to search for a plug-in that can handle the given MIME |
| 450 | // type. The result will be sent asynchronously to the routing ID |
| 451 | // |placeholder_id|. |
| 452 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin, |
| 453 | int /* placeholder_id */, |
| 454 | std::string /* mime_type */) |
| 455 | |
[email protected] | 3240d250 | 2012-01-26 17:00:33 | [diff] [blame] | 456 | // Notifies the browser that a missing plug-in placeholder has been removed, so |
[email protected] | e242401 | 2012-02-03 10:26:50 | [diff] [blame] | 457 | // the corresponding PluginPlaceholderHost can be deleted. |
| 458 | IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost, |
[email protected] | 3240d250 | 2012-01-26 17:00:33 | [diff] [blame] | 459 | int /* placeholder_id */) |
| 460 | |
[email protected] | 1d697f3 | 2011-11-28 11:57:51 | [diff] [blame] | 461 | // Notifies a missing plug-in placeholder that a plug-in with name |plugin_name| |
| 462 | // has been found. |
| 463 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin, |
[email protected] | 428fac1 | 2013-12-05 21:38:49 | [diff] [blame] | 464 | base::string16 /* plugin_name */) |
[email protected] | 1d697f3 | 2011-11-28 11:57:51 | [diff] [blame] | 465 | |
| 466 | // Notifies a missing plug-in placeholder that no plug-in has been found. |
| 467 | IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin) |
| 468 | |
[email protected] | 0dd9e8b | 2012-01-04 13:36:16 | [diff] [blame] | 469 | // Notifies a missing plug-in placeholder that we have started downloading |
| 470 | // the plug-in. |
| 471 | IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin) |
| 472 | |
| 473 | // Notifies a missing plug-in placeholder that we have finished downloading |
| 474 | // the plug-in. |
| 475 | IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin) |
| 476 | |
[email protected] | 725f688 | 2012-01-13 18:50:06 | [diff] [blame] | 477 | // Notifies a missing plug-in placeholder that there was an error downloading |
| 478 | // the plug-in. |
| 479 | IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin, |
| 480 | std::string /* message */) |
[email protected] | 4f62d805 | 2012-01-18 16:16:59 | [diff] [blame] | 481 | #endif // defined(ENABLE_PLUGIN_INSTALLATION) |
| 482 | |
[email protected] | 1a86f75 | 2012-02-10 13:20:36 | [diff] [blame] | 483 | // Notifies a missing plug-in placeholder that the user cancelled downloading |
| 484 | // the plug-in. |
| 485 | IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin) |
| 486 | |
[email protected] | 4f62d805 | 2012-01-18 16:16:59 | [diff] [blame] | 487 | // Tells the browser to open chrome://plugins in a new tab. We use a separate |
| 488 | // message because renderer processes aren't allowed to directly navigate to |
| 489 | // chrome:// URLs. |
| 490 | IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins) |
[email protected] | 725f688 | 2012-01-13 18:50:06 | [diff] [blame] | 491 | |
[email protected] | cc5f781 | 2012-05-31 13:50:34 | [diff] [blame] | 492 | // Tells the browser that there was an error loading a plug-in. |
| 493 | IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin, |
[email protected] | a732916 | 2013-02-07 19:21:48 | [diff] [blame] | 494 | base::FilePath /* plugin_path */) |
[email protected] | cc5f781 | 2012-05-31 13:50:34 | [diff] [blame] | 495 | |
[email protected] | a119913 | 2012-10-26 22:14:41 | [diff] [blame] | 496 | // Tells the browser that we blocked a plug-in because NPAPI is not supported. |
| 497 | IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported, |
| 498 | std::string /* identifer */) |
| 499 | |
[email protected] | cc7b1101 | 2013-05-02 22:02:53 | [diff] [blame] | 500 | // Tells the renderer that the NPAPI cannot be used. For example Ash on windows. |
| 501 | IPC_MESSAGE_ROUTED0(ChromeViewMsg_NPAPINotSupported) |
| 502 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 503 | // Notification that the page has an OpenSearch description document |
| 504 | // associated with it. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 505 | IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD, |
[email protected] | 0911fd18 | 2014-05-22 08:02:35 | [diff] [blame] | 506 | GURL /* page_url */, |
| 507 | GURL /* osdd_url */, |
[email protected] | c08e793 | 2011-03-29 04:08:14 | [diff] [blame] | 508 | search_provider::OSDDType) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 509 | |
| 510 | // Find out if the given url's security origin is installed as a search |
| 511 | // provider. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 512 | IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState, |
[email protected] | c08e793 | 2011-03-29 04:08:14 | [diff] [blame] | 513 | GURL /* page url */, |
| 514 | GURL /* inquiry url */, |
| 515 | search_provider::InstallState /* install */) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 516 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 517 | // Sends back stats about the V8 heap. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 518 | IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats, |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 519 | int /* size of heap (allocated from the OS) */, |
| 520 | int /* bytes in use */) |
| 521 | |
| 522 | // Request for a DNS prefetch of the names in the array. |
| 523 | // NameList is typedef'ed std::vector<std::string> |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 524 | IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_DnsPrefetch, |
[email protected] | 2bf2bd9 | 2011-03-31 07:12:44 | [diff] [blame] | 525 | std::vector<std::string> /* hostnames */) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 526 | |
[email protected] | b1e7562d | 2013-05-27 05:47:53 | [diff] [blame] | 527 | // Request for preconnect to host providing resource specified by URL |
| 528 | IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_Preconnect, |
| 529 | GURL /* preconnect target url */) |
| 530 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 531 | // Notifies when a plugin couldn't be loaded because it's outdated. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 532 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin, |
[email protected] | 27c48389 | 2012-02-09 15:59:10 | [diff] [blame] | 533 | int /* placeholder ID */, |
| 534 | std::string /* plug-in group identifier */) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 535 | |
[email protected] | e242401 | 2012-02-03 10:26:50 | [diff] [blame] | 536 | // Notifies when a plugin couldn't be loaded because it requires |
| 537 | // user authorization. |
[email protected] | 51ffaf7 | 2012-05-09 21:00:49 | [diff] [blame] | 538 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin, |
[email protected] | 428fac1 | 2013-12-05 21:38:49 | [diff] [blame] | 539 | base::string16 /* name */, |
[email protected] | 51ffaf7 | 2012-05-09 21:00:49 | [diff] [blame] | 540 | std::string /* plug-in group identifier */) |
[email protected] | e242401 | 2012-02-03 10:26:50 | [diff] [blame] | 541 | |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 542 | // Provide the browser process with information about the WebCore resource |
[email protected] | 872ae5b | 2011-05-26 20:20:50 | [diff] [blame] | 543 | // cache and current renderer framerate. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 544 | IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats, |
[email protected] | a1221aea | 2013-11-07 01:31:30 | [diff] [blame] | 545 | blink::WebCache::ResourceTypeStats) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 546 | |
[email protected] | 4c94b8c | 2011-05-17 16:17:45 | [diff] [blame] | 547 | // Message sent from the renderer to the browser to notify it of a |
| 548 | // window.print() call which should cancel the prerender. The message is sent |
| 549 | // only when the renderer is prerendering. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 550 | IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting) |
[email protected] | 4c94b8c | 2011-05-17 16:17:45 | [diff] [blame] | 551 | |
[email protected] | 68cafdb | 2011-06-10 21:42:18 | [diff] [blame] | 552 | // Sent when the renderer was prevented from displaying insecure content in |
| 553 | // a secure page by a security policy. The page may appear incomplete. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 554 | IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent) |
[email protected] | 68cafdb | 2011-06-10 21:42:18 | [diff] [blame] | 555 | |
| 556 | // Sent when the renderer was prevented from running insecure content in |
| 557 | // a secure origin by a security policy. The page may appear incomplete. |
[email protected] | 2ccf45c | 2011-08-19 23:35:50 | [diff] [blame] | 558 | IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent) |
[email protected] | 68cafdb | 2011-06-10 21:42:18 | [diff] [blame] | 559 | |
[email protected] | 5120825 | 2013-08-19 21:05:30 | [diff] [blame] | 560 | #if defined(OS_ANDROID) |
| 561 | // Contains info about whether the current page can be treated as a webapp. |
[email protected] | 0dd4511 | 2013-10-04 21:40:37 | [diff] [blame] | 562 | IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveWebappInformation, |
[email protected] | 5120825 | 2013-08-19 21:05:30 | [diff] [blame] | 563 | bool /* success */, |
[email protected] | 0dd4511 | 2013-10-04 21:40:37 | [diff] [blame] | 564 | bool /* is_mobile_webapp_capable */, |
| 565 | bool /* is_apple_mobile_webapp_capable */, |
[email protected] | 5820d32c | 2013-08-28 10:03:50 | [diff] [blame] | 566 | GURL /* expected_url */) |
[email protected] | 33b1c08 | 2014-02-01 01:46:35 | [diff] [blame] | 567 | |
| 568 | IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveMetaTagContent, |
| 569 | bool /* success */, |
| 570 | std::string /* tag_name */, |
| 571 | std::string /* tag_content */, |
| 572 | GURL /* expected_url */) |
[email protected] | 5120825 | 2013-08-19 21:05:30 | [diff] [blame] | 573 | #endif // defined(OS_ANDROID) |
| 574 | |
[email protected] | 21d89834 | 2011-08-23 18:14:41 | [diff] [blame] | 575 | // The currently displayed PDF has an unsupported feature. |
| 576 | IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature) |
[email protected] | d5a0483 | 2011-03-12 21:46:26 | [diff] [blame] | 577 | |
[email protected] | 3c71576ce | 2013-07-23 02:00:01 | [diff] [blame] | 578 | // Brings up SaveAs... dialog to save specified URL. |
| 579 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PDFSaveURLAs, |
| 580 | GURL /* url */, |
| 581 | content::Referrer /* referrer */) |
| 582 | |
| 583 | // Updates the content restrictions, i.e. to disable print/copy. |
| 584 | IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_PDFUpdateContentRestrictions, |
| 585 | int /* restrictions */) |
| 586 | |
[email protected] | b3250571 | 2013-09-13 18:29:13 | [diff] [blame] | 587 | // Brings up a Password... dialog for protected documents. |
| 588 | IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_PDFModalPromptForPassword, |
| 589 | std::string /* prompt */, |
| 590 | std::string /* actual_value */) |
| 591 | |
[email protected] | 83af80b2 | 2011-09-06 18:49:19 | [diff] [blame] | 592 | // This message indicates the error appeared in the frame. |
| 593 | IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError, |
| 594 | int /* error */) |
| 595 | |
[email protected] | ebce952 | 2011-10-27 19:17:17 | [diff] [blame] | 596 | // This message indicates the monitored frame loading had completed. |
| 597 | IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted) |
| 598 | |
[email protected] | 09da02f | 2013-08-14 01:41:59 | [diff] [blame] | 599 | // Logs events from InstantExtended New Tab Pages. |
| 600 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_LogEvent, |
[email protected] | 8133e41 | 2014-05-31 00:51:38 | [diff] [blame] | 601 | int /* page_seq_no */, |
[email protected] | 09da02f | 2013-08-14 01:41:59 | [diff] [blame] | 602 | NTPLoggingEventType /* event */) |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 603 | |
[email protected] | c74876d | 2013-12-14 00:27:13 | [diff] [blame] | 604 | // Logs an impression on one of the Most Visited tile on the InstantExtended |
| 605 | // New Tab Page. |
[email protected] | abd6c4d | 2014-03-17 06:48:17 | [diff] [blame] | 606 | IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedImpression, |
[email protected] | 8133e41 | 2014-05-31 00:51:38 | [diff] [blame] | 607 | int /* page_seq_no */, |
[email protected] | abd6c4d | 2014-03-17 06:48:17 | [diff] [blame] | 608 | int /* position */, |
| 609 | base::string16 /* provider */) |
| 610 | |
| 611 | // Logs a navigation on one of the Most Visited tile on the InstantExtended |
| 612 | // New Tab Page. |
| 613 | IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogMostVisitedNavigation, |
[email protected] | 8133e41 | 2014-05-31 00:51:38 | [diff] [blame] | 614 | int /* page_seq_no */, |
[email protected] | c74876d | 2013-12-14 00:27:13 | [diff] [blame] | 615 | int /* position */, |
| 616 | base::string16 /* provider */) |
| 617 | |
[email protected] | d76376d | 2013-10-31 06:44:42 | [diff] [blame] | 618 | // The Instant page asks for Chrome identity check against |identity|. |
| 619 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ChromeIdentityCheck, |
[email protected] | 8133e41 | 2014-05-31 00:51:38 | [diff] [blame] | 620 | int /* page_seq_no */, |
[email protected] | 428fac1 | 2013-12-05 21:38:49 | [diff] [blame] | 621 | base::string16 /* identity */) |
[email protected] | d76376d | 2013-10-31 06:44:42 | [diff] [blame] | 622 | |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 623 | // Tells InstantExtended to set the omnibox focus state. |
| 624 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FocusOmnibox, |
[email protected] | 8133e41 | 2014-05-31 00:51:38 | [diff] [blame] | 625 | int /* page_seq_no */, |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 626 | OmniboxFocusState /* state */) |
| 627 | |
[email protected] | 6cf51b6 | 2013-08-10 13:49:22 | [diff] [blame] | 628 | // Tells InstantExtended to paste text into the omnibox. If text is empty, |
| 629 | // the clipboard contents will be pasted. This causes the omnibox dropdown to |
| 630 | // open. |
| 631 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PasteAndOpenDropdown, |
[email protected] | 8133e41 | 2014-05-31 00:51:38 | [diff] [blame] | 632 | int /* page_seq_no */, |
[email protected] | 428fac1 | 2013-12-05 21:38:49 | [diff] [blame] | 633 | base::string16 /* text to be pasted */) |
[email protected] | 6cf51b6 | 2013-08-10 13:49:22 | [diff] [blame] | 634 | |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 635 | // Tells InstantExtended whether the embedded search API is supported. |
| 636 | // See http://dev.chromium.org/embeddedsearch |
| 637 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined, |
[email protected] | 8133e41 | 2014-05-31 00:51:38 | [diff] [blame] | 638 | int /* page_seq_no */, |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 639 | bool /* result */) |
| 640 | |
| 641 | // Tells InstantExtended to delete a most visited item. |
| 642 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem, |
[email protected] | 8133e41 | 2014-05-31 00:51:38 | [diff] [blame] | 643 | int /* page_seq_no */, |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 644 | GURL /* url */) |
| 645 | |
[email protected] | 064f57a | 2013-10-28 21:50:56 | [diff] [blame] | 646 | // Tells InstantExtended to navigate the active tab to a possibly privileged |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 647 | // URL. |
[email protected] | 064f57a | 2013-10-28 21:50:56 | [diff] [blame] | 648 | IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_SearchBoxNavigate, |
[email protected] | 8133e41 | 2014-05-31 00:51:38 | [diff] [blame] | 649 | int /* page_seq_no */, |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 650 | GURL /* destination */, |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 651 | WindowOpenDisposition /* disposition */, |
[email protected] | 064f57a | 2013-10-28 21:50:56 | [diff] [blame] | 652 | bool /*is_most_visited_item_url*/) |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 653 | |
| 654 | // Tells InstantExtended to undo all most visited item deletions. |
| 655 | IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions, |
[email protected] | 8133e41 | 2014-05-31 00:51:38 | [diff] [blame] | 656 | int /* page_seq_no */) |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 657 | |
| 658 | // Tells InstantExtended to undo one most visited item deletion. |
| 659 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion, |
[email protected] | 8133e41 | 2014-05-31 00:51:38 | [diff] [blame] | 660 | int /* page_seq_no */, |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 661 | GURL /* url */) |
| 662 | |
| 663 | // Tells InstantExtended whether the page supports voice search. |
| 664 | IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetVoiceSearchSupported, |
[email protected] | 8133e41 | 2014-05-31 00:51:38 | [diff] [blame] | 665 | int /* page_seq_no */, |
[email protected] | 38fe289 | 2013-07-11 00:21:04 | [diff] [blame] | 666 | bool /* supported */) |
[email protected] | 88b50b6 | 2013-09-01 23:05:06 | [diff] [blame] | 667 | |
[email protected] | 2309e91 | 2013-10-01 01:33:30 | [diff] [blame] | 668 | // Tells the renderer a list of URLs which should be bounced back to the browser |
| 669 | // process so that they can be assigned to an Instant renderer. |
| 670 | IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, |
| 671 | std::vector<GURL> /* search_urls */, |
| 672 | GURL /* new_tab_page_url */) |
| 673 | |
[email protected] | 22498e0 | 2014-05-29 17:47:16 | [diff] [blame] | 674 | #if defined(ENABLE_PLUGINS) |
[email protected] | 1ef13cf | 2014-03-21 22:44:01 | [diff] [blame] | 675 | // Sent by the renderer to check if crash reporting is enabled. |
| 676 | IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, |
| 677 | bool /* enabled */) |
[email protected] | 22498e0 | 2014-05-29 17:47:16 | [diff] [blame] | 678 | #endif |