OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ | 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ |
6 #define CHROME_COMMON_RENDER_MESSAGES_H_ | 6 #define CHROME_COMMON_RENDER_MESSAGES_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 // TODO(erg): This list has been temporarily annotated by erg while doing work | 12 // TODO(erg): This list has been temporarily annotated by erg while doing work |
13 // on which headers to pull out. | 13 // on which headers to pull out. |
14 #include "app/clipboard/clipboard.h" | 14 #include "app/clipboard/clipboard.h" |
15 #include "app/surface/transport_dib.h" | 15 #include "app/surface/transport_dib.h" |
16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
17 #include "base/platform_file.h" | 17 #include "base/platform_file.h" |
18 #include "base/ref_counted.h" | 18 #include "base/ref_counted.h" |
19 #include "base/shared_memory.h" | 19 #include "base/shared_memory.h" |
20 #include "base/string16.h" | 20 #include "base/string16.h" |
21 #include "chrome/common/common_param_traits.h" | 21 #include "chrome/common/common_param_traits.h" |
22 #include "chrome/common/css_colors.h" | 22 #include "chrome/common/css_colors.h" |
23 #include "chrome/common/dom_storage_common.h" | 23 #include "chrome/common/dom_storage_common.h" |
24 #include "chrome/common/extensions/extension_extent.h" // used in struct | 24 #include "chrome/common/extensions/extension_extent.h" // used in struct |
25 #include "chrome/common/font_descriptor_mac.h" | 25 #include "chrome/common/font_descriptor_mac.h" |
26 #include "chrome/common/indexed_db_key.h" // used in struct | 26 #include "chrome/common/indexed_db_param_traits.h" |
27 #include "chrome/common/navigation_gesture.h" | 27 #include "chrome/common/navigation_gesture.h" |
28 #include "chrome/common/page_transition_types.h" | 28 #include "chrome/common/page_transition_types.h" |
29 #include "chrome/common/renderer_preferences.h" // used in struct | 29 #include "chrome/common/renderer_preferences.h" // used in struct |
30 #include "chrome/common/resource_response.h" | 30 #include "chrome/common/resource_response.h" |
31 #include "chrome/common/translate_errors.h" | 31 #include "chrome/common/translate_errors.h" |
32 #include "chrome/common/view_types.h" | 32 #include "chrome/common/view_types.h" |
33 #include "chrome/common/webkit_param_traits.h" | 33 #include "chrome/common/webkit_param_traits.h" |
34 #include "chrome/common/window_container_type.h" | 34 #include "chrome/common/window_container_type.h" |
35 #include "gfx/native_widget_types.h" | 35 #include "gfx/native_widget_types.h" |
36 #include "gfx/rect.h" | 36 #include "gfx/rect.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 struct WebAccessibility; | 68 struct WebAccessibility; |
69 struct WebCookie; | 69 struct WebCookie; |
70 } | 70 } |
71 | 71 |
72 namespace webkit_glue { | 72 namespace webkit_glue { |
73 struct WebAccessibility; | 73 struct WebAccessibility; |
74 } | 74 } |
75 | 75 |
76 struct EditCommand; | 76 struct EditCommand; |
77 class ExtensionExtent; | 77 class ExtensionExtent; |
78 class IndexedDBKey; | |
79 class SerializedScriptValue; | |
80 | 78 |
81 class SkBitmap; | 79 class SkBitmap; |
82 class URLPattern; | 80 class URLPattern; |
83 struct ContextMenuParams; | 81 struct ContextMenuParams; |
84 struct WebDropData; | 82 struct WebDropData; |
85 struct WebPluginInfo; | 83 struct WebPluginInfo; |
86 struct WebPluginMimeType; | 84 struct WebPluginMimeType; |
87 | 85 |
88 // Parameters structure for ViewMsg_Navigate, which has too many data | 86 // Parameters structure for ViewMsg_Navigate, which has too many data |
89 // parameters to be reasonably put in a predefined IPC message. | 87 // parameters to be reasonably put in a predefined IPC message. |
(...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1490 ParamTraits<ResourceResponseHead>::Read(m, iter, r) && | 1488 ParamTraits<ResourceResponseHead>::Read(m, iter, r) && |
1491 ReadParam(m, iter, &r->final_url) && | 1489 ReadParam(m, iter, &r->final_url) && |
1492 ReadParam(m, iter, &r->data); | 1490 ReadParam(m, iter, &r->data); |
1493 } | 1491 } |
1494 static void Log(const param_type& p, std::wstring* l) { | 1492 static void Log(const param_type& p, std::wstring* l) { |
1495 // log more? | 1493 // log more? |
1496 ParamTraits<webkit_glue::ResourceLoaderBridge::ResponseInfo>::Log(p, l); | 1494 ParamTraits<webkit_glue::ResourceLoaderBridge::ResponseInfo>::Log(p, l); |
1497 } | 1495 } |
1498 }; | 1496 }; |
1499 | 1497 |
1500 template <> | |
1501 struct ParamTraits<SerializedScriptValue> { | |
1502 typedef SerializedScriptValue param_type; | |
1503 static void Write(Message* m, const param_type& p); | |
1504 static bool Read(const Message* m, void** iter, param_type* r); | |
1505 static void Log(const param_type& p, std::wstring* l); | |
1506 }; | |
1507 | 1498 |
1508 template <> | |
1509 struct ParamTraits<IndexedDBKey> { | |
1510 typedef IndexedDBKey param_type; | |
1511 static void Write(Message* m, const param_type& p); | |
1512 static bool Read(const Message* m, void** iter, param_type* r); | |
1513 static void Log(const param_type& p, std::wstring* l); | |
1514 }; | |
1515 | 1499 |
1516 // Traits for FormData structure to pack/unpack. | 1500 // Traits for FormData structure to pack/unpack. |
1517 template <> | 1501 template <> |
1518 struct ParamTraits<webkit_glue::FormData> { | 1502 struct ParamTraits<webkit_glue::FormData> { |
1519 typedef webkit_glue::FormData param_type; | 1503 typedef webkit_glue::FormData param_type; |
1520 static void Write(Message* m, const param_type& p); | 1504 static void Write(Message* m, const param_type& p); |
1521 static bool Read(const Message* m, void** iter, param_type* p); | 1505 static bool Read(const Message* m, void** iter, param_type* p); |
1522 static void Log(const param_type& p, std::wstring* l); | 1506 static void Log(const param_type& p, std::wstring* l); |
1523 }; | 1507 }; |
1524 | 1508 |
(...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2728 LogParam(p.gamma, l); | 2712 LogParam(p.gamma, l); |
2729 l->append(L")"); | 2713 l->append(L")"); |
2730 } | 2714 } |
2731 }; | 2715 }; |
2732 } // namespace IPC | 2716 } // namespace IPC |
2733 | 2717 |
2734 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 2718 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
2735 #include "ipc/ipc_message_macros.h" | 2719 #include "ipc/ipc_message_macros.h" |
2736 | 2720 |
2737 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 2721 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |