| 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1531 // log more? | 1531 // log more? |
| 1532 ParamTraits<webkit_glue::ResourceLoaderBridge::ResponseInfo>::Log(p, l); | 1532 ParamTraits<webkit_glue::ResourceLoaderBridge::ResponseInfo>::Log(p, l); |
| 1533 } | 1533 } |
| 1534 }; | 1534 }; |
| 1535 | 1535 |
| 1536 // Traits for FormData structure to pack/unpack. | 1536 // Traits for FormData structure to pack/unpack. |
| 1537 template <> | 1537 template <> |
| 1538 struct ParamTraits<FormData> { | 1538 struct ParamTraits<FormData> { |
| 1539 typedef FormData param_type; | 1539 typedef FormData param_type; |
| 1540 static void Write(Message* m, const param_type& p) { | 1540 static void Write(Message* m, const param_type& p) { |
| 1541 WriteParam(m, p.name); |
| 1541 WriteParam(m, p.origin); | 1542 WriteParam(m, p.origin); |
| 1542 WriteParam(m, p.action); | 1543 WriteParam(m, p.action); |
| 1543 WriteParam(m, p.elements); | 1544 WriteParam(m, p.elements); |
| 1544 WriteParam(m, p.values); | 1545 WriteParam(m, p.values); |
| 1545 WriteParam(m, p.submit); | 1546 WriteParam(m, p.submit); |
| 1546 } | 1547 } |
| 1547 static bool Read(const Message* m, void** iter, param_type* p) { | 1548 static bool Read(const Message* m, void** iter, param_type* p) { |
| 1548 return | 1549 return |
| 1550 ReadParam(m, iter, &p->name) && |
| 1549 ReadParam(m, iter, &p->origin) && | 1551 ReadParam(m, iter, &p->origin) && |
| 1550 ReadParam(m, iter, &p->action) && | 1552 ReadParam(m, iter, &p->action) && |
| 1551 ReadParam(m, iter, &p->elements) && | 1553 ReadParam(m, iter, &p->elements) && |
| 1552 ReadParam(m, iter, &p->values) && | 1554 ReadParam(m, iter, &p->values) && |
| 1553 ReadParam(m, iter, &p->submit); | 1555 ReadParam(m, iter, &p->submit); |
| 1554 } | 1556 } |
| 1555 static void Log(const param_type& p, std::wstring* l) { | 1557 static void Log(const param_type& p, std::wstring* l) { |
| 1556 l->append(L"<FormData>"); | 1558 l->append(L"<FormData>"); |
| 1557 } | 1559 } |
| 1558 }; | 1560 }; |
| (...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2587 } | 2589 } |
| 2588 }; | 2590 }; |
| 2589 | 2591 |
| 2590 } // namespace IPC | 2592 } // namespace IPC |
| 2591 | 2593 |
| 2592 | 2594 |
| 2593 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 2595 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
| 2594 #include "ipc/ipc_message_macros.h" | 2596 #include "ipc/ipc_message_macros.h" |
| 2595 | 2597 |
| 2596 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 2598 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| OLD | NEW |