| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Multiply-included file, no traditional include guard. | 5 // Multiply-included file, no traditional include guard. |
| 6 #include <map> | 6 #include <map> |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 // TODO(erg): This list has been temporarily annotated by erg while doing work | 11 // TODO(erg): This list has been temporarily annotated by erg while doing work |
| 12 // on which headers to pull out. | 12 // on which headers to pull out. |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/file_path.h" | 14 #include "base/file_path.h" |
| 15 #include "base/process.h" | 15 #include "base/process.h" |
| 16 #include "base/shared_memory.h" | 16 #include "base/shared_memory.h" |
| 17 #include "base/string16.h" | 17 #include "base/string16.h" |
| 18 #include "base/stringprintf.h" | 18 #include "base/stringprintf.h" |
| 19 #include "base/values.h" | 19 #include "base/values.h" |
| 20 #include "build/build_config.h" | 20 #include "build/build_config.h" |
| 21 #include "chrome/common/common_param_traits.h" | 21 #include "chrome/common/common_param_traits.h" |
| 22 #include "chrome/common/content_settings.h" |
| 23 #include "chrome/common/content_settings_pattern.h" |
| 22 #include "chrome/common/instant_types.h" | 24 #include "chrome/common/instant_types.h" |
| 23 #include "chrome/common/nacl_types.h" | 25 #include "chrome/common/nacl_types.h" |
| 24 #include "chrome/common/search_provider.h" | 26 #include "chrome/common/search_provider.h" |
| 25 #include "chrome/common/thumbnail_score.h" | 27 #include "chrome/common/thumbnail_score.h" |
| 26 #include "chrome/common/translate_errors.h" | 28 #include "chrome/common/translate_errors.h" |
| 27 #include "content/common/common_param_traits.h" | 29 #include "content/common/common_param_traits.h" |
| 28 #include "content/common/webkit_param_traits.h" | 30 #include "content/common/webkit_param_traits.h" |
| 29 #include "ipc/ipc_message_macros.h" | 31 #include "ipc/ipc_message_macros.h" |
| 30 #include "ipc/ipc_platform_file.h" | 32 #include "ipc/ipc_platform_file.h" |
| 31 #include "third_party/skia/include/core/SkBitmap.h" | 33 #include "third_party/skia/include/core/SkBitmap.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 IPC_STRUCT_TRAITS_END() | 144 IPC_STRUCT_TRAITS_END() |
| 143 | 145 |
| 144 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::UsageStats) | 146 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::UsageStats) |
| 145 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity) | 147 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity) |
| 146 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity) | 148 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity) |
| 147 IPC_STRUCT_TRAITS_MEMBER(capacity) | 149 IPC_STRUCT_TRAITS_MEMBER(capacity) |
| 148 IPC_STRUCT_TRAITS_MEMBER(liveSize) | 150 IPC_STRUCT_TRAITS_MEMBER(liveSize) |
| 149 IPC_STRUCT_TRAITS_MEMBER(deadSize) | 151 IPC_STRUCT_TRAITS_MEMBER(deadSize) |
| 150 IPC_STRUCT_TRAITS_END() | 152 IPC_STRUCT_TRAITS_END() |
| 151 | 153 |
| 154 IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts) |
| 155 IPC_STRUCT_TRAITS_MEMBER(scheme) |
| 156 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard) |
| 157 IPC_STRUCT_TRAITS_MEMBER(host) |
| 158 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard) |
| 159 IPC_STRUCT_TRAITS_MEMBER(port) |
| 160 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard) |
| 161 IPC_STRUCT_TRAITS_MEMBER(path) |
| 162 IPC_STRUCT_TRAITS_END() |
| 163 |
| 164 IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern) |
| 165 IPC_STRUCT_TRAITS_MEMBER(parts_) |
| 166 IPC_STRUCT_TRAITS_MEMBER(is_valid_) |
| 167 IPC_STRUCT_TRAITS_END() |
| 168 |
| 169 IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource) |
| 170 IPC_STRUCT_TRAITS_MEMBER(primary_pattern) |
| 171 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern) |
| 172 IPC_STRUCT_TRAITS_MEMBER(setting) |
| 173 IPC_STRUCT_TRAITS_MEMBER(source) |
| 174 IPC_STRUCT_TRAITS_MEMBER(incognito) |
| 175 IPC_STRUCT_TRAITS_END() |
| 176 |
| 152 //----------------------------------------------------------------------------- | 177 //----------------------------------------------------------------------------- |
| 153 // RenderView messages | 178 // RenderView messages |
| 154 // These are messages sent from the browser to the renderer process. | 179 // These are messages sent from the browser to the renderer process. |
| 155 | 180 |
| 156 // Tells the renderer to set its maximum cache size to the supplied value. | 181 // Tells the renderer to set its maximum cache size to the supplied value. |
| 157 IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities, | 182 IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities, |
| 158 size_t /* min_dead_capacity */, | 183 size_t /* min_dead_capacity */, |
| 159 size_t /* max_dead_capacity */, | 184 size_t /* max_dead_capacity */, |
| 160 size_t /* capacity */) | 185 size_t /* capacity */) |
| 161 | 186 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetContentSettingsForCurrentURL, | 234 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetContentSettingsForCurrentURL, |
| 210 GURL /* url */, | 235 GURL /* url */, |
| 211 ContentSettings /* content_settings */) | 236 ContentSettings /* content_settings */) |
| 212 | 237 |
| 213 // Set the content settings for a particular url that the renderer is in the | 238 // Set the content settings for a particular url that the renderer is in the |
| 214 // process of loading. This will be stored, to be used if the load commits | 239 // process of loading. This will be stored, to be used if the load commits |
| 215 // and ignored otherwise. | 240 // and ignored otherwise. |
| 216 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetDefaultContentSettings, | 241 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetDefaultContentSettings, |
| 217 ContentSettings /* content_settings */) | 242 ContentSettings /* content_settings */) |
| 218 | 243 |
| 244 // Set the content settings for images. |
| 245 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetImageSettingRules, |
| 246 ContentSettingsForOneType /* rules */) |
| 247 |
| 219 // Tells the render view to load all blocked plugins. | 248 // Tells the render view to load all blocked plugins. |
| 220 IPC_MESSAGE_ROUTED0(ChromeViewMsg_LoadBlockedPlugins) | 249 IPC_MESSAGE_ROUTED0(ChromeViewMsg_LoadBlockedPlugins) |
| 221 | 250 |
| 222 // Asks the renderer to send back stats on the WebCore cache broken down by | 251 // Asks the renderer to send back stats on the WebCore cache broken down by |
| 223 // resource types. | 252 // resource types. |
| 224 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats) | 253 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats) |
| 225 | 254 |
| 226 // Asks the renderer to send back Histograms. | 255 // Asks the renderer to send back Histograms. |
| 227 IPC_MESSAGE_CONTROL1(ChromeViewMsg_GetRendererHistograms, | 256 IPC_MESSAGE_CONTROL1(ChromeViewMsg_GetRendererHistograms, |
| 228 int /* sequence number of Renderer Histograms. */) | 257 int /* sequence number of Renderer Histograms. */) |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 // previous SetCookie message to be processed. | 625 // previous SetCookie message to be processed. |
| 597 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, | 626 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, |
| 598 GURL /* url */, | 627 GURL /* url */, |
| 599 GURL /* first_party_for_cookies */, | 628 GURL /* first_party_for_cookies */, |
| 600 std::string /* cookies */) | 629 std::string /* cookies */) |
| 601 | 630 |
| 602 // Provide the browser process with current renderer framerate. | 631 // Provide the browser process with current renderer framerate. |
| 603 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, | 632 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, |
| 604 int /* routing id */, | 633 int /* routing id */, |
| 605 float /* frames per second */) | 634 float /* frames per second */) |
| OLD | NEW |