| 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_pattern.h" |
| 22 #include "chrome/common/instant_types.h" | 23 #include "chrome/common/instant_types.h" |
| 23 #include "chrome/common/nacl_types.h" | 24 #include "chrome/common/nacl_types.h" |
| 24 #include "chrome/common/search_provider.h" | 25 #include "chrome/common/search_provider.h" |
| 25 #include "chrome/common/thumbnail_score.h" | 26 #include "chrome/common/thumbnail_score.h" |
| 26 #include "chrome/common/translate_errors.h" | 27 #include "chrome/common/translate_errors.h" |
| 27 #include "content/common/common_param_traits.h" | 28 #include "content/common/common_param_traits.h" |
| 28 #include "content/common/webkit_param_traits.h" | 29 #include "content/common/webkit_param_traits.h" |
| 29 #include "ipc/ipc_message_macros.h" | 30 #include "ipc/ipc_message_macros.h" |
| 30 #include "ipc/ipc_platform_file.h" | 31 #include "ipc/ipc_platform_file.h" |
| 31 #include "third_party/skia/include/core/SkBitmap.h" | 32 #include "third_party/skia/include/core/SkBitmap.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 #endif // defined(OS_POSIX) && !defined(USE_AURA) | 96 #endif // defined(OS_POSIX) && !defined(USE_AURA) |
| 96 | 97 |
| 97 template <> | 98 template <> |
| 98 struct ParamTraits<ContentSettings> { | 99 struct ParamTraits<ContentSettings> { |
| 99 typedef ContentSettings param_type; | 100 typedef ContentSettings param_type; |
| 100 static void Write(Message* m, const param_type& p); | 101 static void Write(Message* m, const param_type& p); |
| 101 static bool Read(const Message* m, void** iter, param_type* r); | 102 static bool Read(const Message* m, void** iter, param_type* r); |
| 102 static void Log(const param_type& p, std::string* l); | 103 static void Log(const param_type& p, std::string* l); |
| 103 }; | 104 }; |
| 104 | 105 |
| 106 template <> |
| 107 struct ParamTraits<ContentSettingsPattern> { |
| 108 typedef ContentSettingsPattern param_type; |
| 109 static void Write(Message* m, const param_type& p); |
| 110 static bool Read(const Message* m, void** iter, param_type* r); |
| 111 static void Log(const param_type& p, std::string* l); |
| 112 }; |
| 113 |
| 105 } // namespace IPC | 114 } // namespace IPC |
| 106 | 115 |
| 107 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 116 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| 108 | 117 |
| 109 #define IPC_MESSAGE_START ChromeMsgStart | 118 #define IPC_MESSAGE_START ChromeMsgStart |
| 110 | 119 |
| 111 IPC_ENUM_TRAITS(ChromeViewHostMsg_GetPluginInfo_Status::Value) | 120 IPC_ENUM_TRAITS(ChromeViewHostMsg_GetPluginInfo_Status::Value) |
| 112 IPC_ENUM_TRAITS(InstantCompleteBehavior) | 121 IPC_ENUM_TRAITS(InstantCompleteBehavior) |
| 113 IPC_ENUM_TRAITS(search_provider::OSDDType) | 122 IPC_ENUM_TRAITS(search_provider::OSDDType) |
| 114 IPC_ENUM_TRAITS(search_provider::InstallState) | 123 IPC_ENUM_TRAITS(search_provider::InstallState) |
| 115 IPC_ENUM_TRAITS(TranslateErrors::Type) | 124 IPC_ENUM_TRAITS(TranslateErrors::Type) |
| 116 IPC_ENUM_TRAITS(WebKit::WebConsoleMessage::Level) | 125 IPC_ENUM_TRAITS(WebKit::WebConsoleMessage::Level) |
| 117 | 126 |
| 118 IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status) | 127 IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status) |
| 119 IPC_STRUCT_TRAITS_MEMBER(value) | 128 IPC_STRUCT_TRAITS_MEMBER(value) |
| 120 IPC_STRUCT_TRAITS_END() | 129 IPC_STRUCT_TRAITS_END() |
| 121 | 130 |
| 131 IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts) |
| 132 IPC_STRUCT_TRAITS_MEMBER(scheme) |
| 133 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard) |
| 134 IPC_STRUCT_TRAITS_MEMBER(host) |
| 135 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard) |
| 136 IPC_STRUCT_TRAITS_MEMBER(port) |
| 137 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard) |
| 138 IPC_STRUCT_TRAITS_MEMBER(path) |
| 139 IPC_STRUCT_TRAITS_END() |
| 140 |
| 122 IPC_STRUCT_TRAITS_BEGIN(ThumbnailScore) | 141 IPC_STRUCT_TRAITS_BEGIN(ThumbnailScore) |
| 123 IPC_STRUCT_TRAITS_MEMBER(boring_score) | 142 IPC_STRUCT_TRAITS_MEMBER(boring_score) |
| 124 IPC_STRUCT_TRAITS_MEMBER(good_clipping) | 143 IPC_STRUCT_TRAITS_MEMBER(good_clipping) |
| 125 IPC_STRUCT_TRAITS_MEMBER(at_top) | 144 IPC_STRUCT_TRAITS_MEMBER(at_top) |
| 126 IPC_STRUCT_TRAITS_MEMBER(time_at_snapshot) | 145 IPC_STRUCT_TRAITS_MEMBER(time_at_snapshot) |
| 127 IPC_STRUCT_TRAITS_END() | 146 IPC_STRUCT_TRAITS_END() |
| 128 | 147 |
| 129 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::ResourceTypeStat) | 148 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::ResourceTypeStat) |
| 130 IPC_STRUCT_TRAITS_MEMBER(count) | 149 IPC_STRUCT_TRAITS_MEMBER(count) |
| 131 IPC_STRUCT_TRAITS_MEMBER(size) | 150 IPC_STRUCT_TRAITS_MEMBER(size) |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 // loaded via click-to-play. | 413 // loaded via click-to-play. |
| 395 // | 414 // |
| 396 // If |setting| is set to CONTENT_SETTING_ALLOW, the domain is | 415 // If |setting| is set to CONTENT_SETTING_ALLOW, the domain is |
| 397 // explicitly white-listed for the plug-in, or the user has chosen | 416 // explicitly white-listed for the plug-in, or the user has chosen |
| 398 // not to block nonsandboxed plugins. | 417 // not to block nonsandboxed plugins. |
| 399 // | 418 // |
| 400 // If |setting| is set to CONTENT_SETTING_DEFAULT, the plug-in is | 419 // If |setting| is set to CONTENT_SETTING_DEFAULT, the plug-in is |
| 401 // neither blocked nor white-listed, which means that it's allowed | 420 // neither blocked nor white-listed, which means that it's allowed |
| 402 // by default and can still be blocked if it's non-sandboxed. | 421 // by default and can still be blocked if it's non-sandboxed. |
| 403 // | 422 // |
| 404 IPC_SYNC_MESSAGE_CONTROL2_1(ChromeViewHostMsg_GetPluginContentSetting, | 423 IPC_SYNC_MESSAGE_CONTROL2_3(ChromeViewHostMsg_GetPluginContentSetting, |
| 405 GURL /* policy_url */, | 424 GURL /* policy_url */, |
| 406 std::string /* resource */, | 425 std::string /* resource */, |
| 407 ContentSetting /* setting */) | 426 ContentSetting /* setting */, |
| 427 ContentSettingsPattern /* primary pattern */, |
| 428 ContentSettingsPattern /* secondary pattern */) |
| 408 | 429 |
| 409 // Return information about a plugin for the given URL and MIME type. | 430 // Return information about a plugin for the given URL and MIME type. |
| 410 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows | 431 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows |
| 411 // about specific reasons why a plug-in can't be used, for example because it's | 432 // about specific reasons why a plug-in can't be used, for example because it's |
| 412 // disabled. | 433 // disabled. |
| 413 IPC_SYNC_MESSAGE_CONTROL4_3(ChromeViewHostMsg_GetPluginInfo, | 434 IPC_SYNC_MESSAGE_CONTROL4_3(ChromeViewHostMsg_GetPluginInfo, |
| 414 int /* render_view_id */, | 435 int /* render_view_id */, |
| 415 GURL /* url */, | 436 GURL /* url */, |
| 416 GURL /* top origin url */, | 437 GURL /* top origin url */, |
| 417 std::string /* mime_type */, | 438 std::string /* mime_type */, |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 // previous SetCookie message to be processed. | 617 // previous SetCookie message to be processed. |
| 597 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, | 618 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, |
| 598 GURL /* url */, | 619 GURL /* url */, |
| 599 GURL /* first_party_for_cookies */, | 620 GURL /* first_party_for_cookies */, |
| 600 std::string /* cookies */) | 621 std::string /* cookies */) |
| 601 | 622 |
| 602 // Provide the browser process with current renderer framerate. | 623 // Provide the browser process with current renderer framerate. |
| 603 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, | 624 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, |
| 604 int /* routing id */, | 625 int /* routing id */, |
| 605 float /* frames per second */) | 626 float /* frames per second */) |
| OLD | NEW |