| 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> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 namespace net { | 42 namespace net { |
| 43 class HttpResponseHeaders; | 43 class HttpResponseHeaders; |
| 44 class UploadData; | 44 class UploadData; |
| 45 } | 45 } |
| 46 | 46 |
| 47 namespace webkit_blob { | 47 namespace webkit_blob { |
| 48 class BlobData; | 48 class BlobData; |
| 49 } | 49 } |
| 50 | 50 |
| 51 namespace webkit_glue { | 51 namespace webkit_glue { |
| 52 struct FormData; | |
| 53 class FormField; | |
| 54 struct PasswordFormFillData; | |
| 55 struct ResourceDevToolsInfo; | 52 struct ResourceDevToolsInfo; |
| 56 struct ResourceLoadTimingInfo; | 53 struct ResourceLoadTimingInfo; |
| 57 struct ResourceResponseInfo; | 54 struct ResourceResponseInfo; |
| 58 struct WebAccessibility; | 55 struct WebAccessibility; |
| 59 struct WebCookie; | 56 struct WebCookie; |
| 60 } | 57 } |
| 61 | 58 |
| 62 namespace webkit { | 59 namespace webkit { |
| 63 namespace npapi { | 60 namespace npapi { |
| 64 struct WebPluginGeometry; | 61 struct WebPluginGeometry; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // type taken from the enumeration v8::Testing::StressType. | 126 // type taken from the enumeration v8::Testing::StressType. |
| 130 // For the command kJavaScriptStressTestPrepareStressRun the parameter it the | 127 // For the command kJavaScriptStressTestPrepareStressRun the parameter it the |
| 131 // number of the stress run about to take place. | 128 // number of the stress run about to take place. |
| 132 enum ViewHostMsg_JavaScriptStressTestControl_Commands { | 129 enum ViewHostMsg_JavaScriptStressTestControl_Commands { |
| 133 kJavaScriptStressTestSetStressRunType = 0, | 130 kJavaScriptStressTestSetStressRunType = 0, |
| 134 kJavaScriptStressTestPrepareStressRun = 1, | 131 kJavaScriptStressTestPrepareStressRun = 1, |
| 135 }; | 132 }; |
| 136 | 133 |
| 137 namespace IPC { | 134 namespace IPC { |
| 138 | 135 |
| 139 // Traits for FormField_Params structure to pack/unpack. | |
| 140 template <> | |
| 141 struct ParamTraits<webkit_glue::FormField> { | |
| 142 typedef webkit_glue::FormField param_type; | |
| 143 static void Write(Message* m, const param_type& p); | |
| 144 static bool Read(const Message* m, void** iter, param_type* p); | |
| 145 static void Log(const param_type& p, std::string* l); | |
| 146 }; | |
| 147 | |
| 148 #if defined(OS_MACOSX) | 136 #if defined(OS_MACOSX) |
| 149 // Traits for FontDescriptor structure to pack/unpack. | 137 // Traits for FontDescriptor structure to pack/unpack. |
| 150 template <> | 138 template <> |
| 151 struct ParamTraits<FontDescriptor> { | 139 struct ParamTraits<FontDescriptor> { |
| 152 typedef FontDescriptor param_type; | 140 typedef FontDescriptor param_type; |
| 153 static void Write(Message* m, const param_type& p); | 141 static void Write(Message* m, const param_type& p); |
| 154 static bool Read(const Message* m, void** iter, param_type* p); | 142 static bool Read(const Message* m, void** iter, param_type* p); |
| 155 static void Log(const param_type& p, std::string* l); | 143 static void Log(const param_type& p, std::string* l); |
| 156 }; | 144 }; |
| 157 #endif | 145 #endif |
| (...skipping 24 matching lines...) Expand all Loading... |
| 182 }; | 170 }; |
| 183 | 171 |
| 184 template <> | 172 template <> |
| 185 struct ParamTraits<webkit::npapi::WebPluginInfo> { | 173 struct ParamTraits<webkit::npapi::WebPluginInfo> { |
| 186 typedef webkit::npapi::WebPluginInfo param_type; | 174 typedef webkit::npapi::WebPluginInfo param_type; |
| 187 static void Write(Message* m, const param_type& p); | 175 static void Write(Message* m, const param_type& p); |
| 188 static bool Read(const Message* m, void** iter, param_type* r); | 176 static bool Read(const Message* m, void** iter, param_type* r); |
| 189 static void Log(const param_type& p, std::string* l); | 177 static void Log(const param_type& p, std::string* l); |
| 190 }; | 178 }; |
| 191 | 179 |
| 192 // Traits for webkit_glue::PasswordFormDomManager::FillData. | |
| 193 template <> | |
| 194 struct ParamTraits<webkit_glue::PasswordFormFillData> { | |
| 195 typedef webkit_glue::PasswordFormFillData param_type; | |
| 196 static void Write(Message* m, const param_type& p); | |
| 197 static bool Read(const Message* m, void** iter, param_type* r); | |
| 198 static void Log(const param_type& p, std::string* l); | |
| 199 }; | |
| 200 | |
| 201 template <> | 180 template <> |
| 202 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > { | 181 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > { |
| 203 typedef scoped_refptr<net::HttpResponseHeaders> param_type; | 182 typedef scoped_refptr<net::HttpResponseHeaders> param_type; |
| 204 static void Write(Message* m, const param_type& p); | 183 static void Write(Message* m, const param_type& p); |
| 205 static bool Read(const Message* m, void** iter, param_type* r); | 184 static bool Read(const Message* m, void** iter, param_type* r); |
| 206 static void Log(const param_type& p, std::string* l); | 185 static void Log(const param_type& p, std::string* l); |
| 207 }; | 186 }; |
| 208 | 187 |
| 209 // Traits for webkit_glue::ResourceLoadTimingInfo | 188 // Traits for webkit_glue::ResourceLoadTimingInfo |
| 210 template <> | 189 template <> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 241 }; | 220 }; |
| 242 | 221 |
| 243 template <> | 222 template <> |
| 244 struct ParamTraits<SyncLoadResult> { | 223 struct ParamTraits<SyncLoadResult> { |
| 245 typedef SyncLoadResult param_type; | 224 typedef SyncLoadResult param_type; |
| 246 static void Write(Message* m, const param_type& p); | 225 static void Write(Message* m, const param_type& p); |
| 247 static bool Read(const Message* m, void** iter, param_type* r); | 226 static bool Read(const Message* m, void** iter, param_type* r); |
| 248 static void Log(const param_type& p, std::string* l); | 227 static void Log(const param_type& p, std::string* l); |
| 249 }; | 228 }; |
| 250 | 229 |
| 251 // Traits for FormData structure to pack/unpack. | |
| 252 template <> | |
| 253 struct ParamTraits<webkit_glue::FormData> { | |
| 254 typedef webkit_glue::FormData param_type; | |
| 255 static void Write(Message* m, const param_type& p); | |
| 256 static bool Read(const Message* m, void** iter, param_type* p); | |
| 257 static void Log(const param_type& p, std::string* l); | |
| 258 }; | |
| 259 | |
| 260 // Traits for reading/writing CSS Colors | 230 // Traits for reading/writing CSS Colors |
| 261 template <> | 231 template <> |
| 262 struct ParamTraits<CSSColors::CSSColorName> { | 232 struct ParamTraits<CSSColors::CSSColorName> { |
| 263 typedef CSSColors::CSSColorName param_type; | 233 typedef CSSColors::CSSColorName param_type; |
| 264 static void Write(Message* m, const param_type& p) { | 234 static void Write(Message* m, const param_type& p) { |
| 265 WriteParam(m, static_cast<int>(p)); | 235 WriteParam(m, static_cast<int>(p)); |
| 266 } | 236 } |
| 267 static bool Read(const Message* m, void** iter, param_type* p) { | 237 static bool Read(const Message* m, void** iter, param_type* p) { |
| 268 return ReadParam(m, iter, reinterpret_cast<int*>(p)); | 238 return ReadParam(m, iter, reinterpret_cast<int*>(p)); |
| 269 } | 239 } |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 static void Write(Message* m, const param_type& p); | 520 static void Write(Message* m, const param_type& p); |
| 551 static bool Read(const Message* m, void** iter, param_type* p); | 521 static bool Read(const Message* m, void** iter, param_type* p); |
| 552 static void Log(const param_type& p, std::string* l); | 522 static void Log(const param_type& p, std::string* l); |
| 553 }; | 523 }; |
| 554 | 524 |
| 555 } // namespace IPC | 525 } // namespace IPC |
| 556 | 526 |
| 557 #include "chrome/common/render_messages_internal.h" | 527 #include "chrome/common/render_messages_internal.h" |
| 558 | 528 |
| 559 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 529 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| OLD | NEW |