| 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_PARAMS_H_ | 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
| 6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ | 6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "app/surface/transport_dib.h" | 12 #include "app/surface/transport_dib.h" |
| 13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
| 14 #include "base/file_util_proxy.h" | |
| 15 #include "base/ref_counted.h" | 14 #include "base/ref_counted.h" |
| 16 #include "base/shared_memory.h" | 15 #include "base/shared_memory.h" |
| 17 #include "base/time.h" | 16 #include "base/time.h" |
| 18 #include "base/values.h" | 17 #include "base/values.h" |
| 19 #include "chrome/common/extensions/extension.h" | 18 #include "chrome/common/extensions/extension.h" |
| 20 #include "chrome/common/extensions/extension_extent.h" | 19 #include "chrome/common/extensions/extension_extent.h" |
| 21 #include "chrome/common/extensions/url_pattern.h" | 20 #include "chrome/common/extensions/url_pattern.h" |
| 22 #include "chrome/common/navigation_gesture.h" | 21 #include "chrome/common/navigation_gesture.h" |
| 23 #include "chrome/common/navigation_types.h" | 22 #include "chrome/common/navigation_types.h" |
| 24 #include "chrome/common/page_transition_types.h" | 23 #include "chrome/common/page_transition_types.h" |
| (...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1096 | 1095 |
| 1097 template <> | 1096 template <> |
| 1098 struct ParamTraits<ViewHostMsg_DomMessage_Params> { | 1097 struct ParamTraits<ViewHostMsg_DomMessage_Params> { |
| 1099 typedef ViewHostMsg_DomMessage_Params param_type; | 1098 typedef ViewHostMsg_DomMessage_Params param_type; |
| 1100 static void Write(Message* m, const param_type& p); | 1099 static void Write(Message* m, const param_type& p); |
| 1101 static bool Read(const Message* m, void** iter, param_type* p); | 1100 static bool Read(const Message* m, void** iter, param_type* p); |
| 1102 static void Log(const param_type& p, std::string* l); | 1101 static void Log(const param_type& p, std::string* l); |
| 1103 }; | 1102 }; |
| 1104 | 1103 |
| 1105 template <> | 1104 template <> |
| 1106 struct ParamTraits<base::FileUtilProxy::Entry> { | |
| 1107 typedef base::FileUtilProxy::Entry param_type; | |
| 1108 static void Write(Message* m, const param_type& p); | |
| 1109 static bool Read(const Message* m, void** iter, param_type* p); | |
| 1110 static void Log(const param_type& p, std::string* l); | |
| 1111 }; | |
| 1112 | |
| 1113 template <> | |
| 1114 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> { | 1105 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> { |
| 1115 typedef ViewHostMsg_AccessibilityNotification_Params param_type; | 1106 typedef ViewHostMsg_AccessibilityNotification_Params param_type; |
| 1116 static void Write(Message* m, const param_type& p); | 1107 static void Write(Message* m, const param_type& p); |
| 1117 static bool Read(const Message* m, void** iter, param_type* p); | 1108 static bool Read(const Message* m, void** iter, param_type* p); |
| 1118 static void Log(const param_type& p, std::string* l); | 1109 static void Log(const param_type& p, std::string* l); |
| 1119 }; | 1110 }; |
| 1120 | 1111 |
| 1121 template <> | 1112 template <> |
| 1122 struct ParamTraits<ViewHostMsg_MalwareDOMDetails_Params> { | 1113 struct ParamTraits<ViewHostMsg_MalwareDOMDetails_Params> { |
| 1123 typedef ViewHostMsg_MalwareDOMDetails_Params param_type; | 1114 typedef ViewHostMsg_MalwareDOMDetails_Params param_type; |
| 1124 static void Write(Message* m, const param_type& p); | 1115 static void Write(Message* m, const param_type& p); |
| 1125 static bool Read(const Message* m, void** iter, param_type* p); | 1116 static bool Read(const Message* m, void** iter, param_type* p); |
| 1126 static void Log(const param_type& p, std::string* l); | 1117 static void Log(const param_type& p, std::string* l); |
| 1127 }; | 1118 }; |
| 1128 | 1119 |
| 1129 template <> | 1120 template <> |
| 1130 struct ParamTraits<ViewHostMsg_MalwareDOMDetails_Node> { | 1121 struct ParamTraits<ViewHostMsg_MalwareDOMDetails_Node> { |
| 1131 typedef ViewHostMsg_MalwareDOMDetails_Node param_type; | 1122 typedef ViewHostMsg_MalwareDOMDetails_Node param_type; |
| 1132 static void Write(Message* m, const param_type& p); | 1123 static void Write(Message* m, const param_type& p); |
| 1133 static bool Read(const Message* m, void** iter, param_type* p); | 1124 static bool Read(const Message* m, void** iter, param_type* p); |
| 1134 static void Log(const param_type& p, std::string* l); | 1125 static void Log(const param_type& p, std::string* l); |
| 1135 }; | 1126 }; |
| 1136 | 1127 |
| 1137 } // namespace IPC | 1128 } // namespace IPC |
| 1138 | 1129 |
| 1139 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ | 1130 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
| OLD | NEW |