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 1757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1768 | 1768 |
1769 // Traits for FormData structure to pack/unpack. | 1769 // Traits for FormData structure to pack/unpack. |
1770 template <> | 1770 template <> |
1771 struct ParamTraits<webkit_glue::FormData> { | 1771 struct ParamTraits<webkit_glue::FormData> { |
1772 typedef webkit_glue::FormData param_type; | 1772 typedef webkit_glue::FormData param_type; |
1773 static void Write(Message* m, const param_type& p) { | 1773 static void Write(Message* m, const param_type& p) { |
1774 WriteParam(m, p.name); | 1774 WriteParam(m, p.name); |
1775 WriteParam(m, p.method); | 1775 WriteParam(m, p.method); |
1776 WriteParam(m, p.origin); | 1776 WriteParam(m, p.origin); |
1777 WriteParam(m, p.action); | 1777 WriteParam(m, p.action); |
| 1778 WriteParam(m, p.user_submitted); |
1778 WriteParam(m, p.fields); | 1779 WriteParam(m, p.fields); |
1779 } | 1780 } |
1780 static bool Read(const Message* m, void** iter, param_type* p) { | 1781 static bool Read(const Message* m, void** iter, param_type* p) { |
1781 return | 1782 return |
1782 ReadParam(m, iter, &p->name) && | 1783 ReadParam(m, iter, &p->name) && |
1783 ReadParam(m, iter, &p->method) && | 1784 ReadParam(m, iter, &p->method) && |
1784 ReadParam(m, iter, &p->origin) && | 1785 ReadParam(m, iter, &p->origin) && |
1785 ReadParam(m, iter, &p->action) && | 1786 ReadParam(m, iter, &p->action) && |
| 1787 ReadParam(m, iter, &p->user_submitted) && |
1786 ReadParam(m, iter, &p->fields); | 1788 ReadParam(m, iter, &p->fields); |
1787 } | 1789 } |
1788 static void Log(const param_type& p, std::wstring* l) { | 1790 static void Log(const param_type& p, std::wstring* l) { |
1789 l->append(L"<FormData>"); | 1791 l->append(L"<FormData>"); |
1790 } | 1792 } |
1791 }; | 1793 }; |
1792 | 1794 |
1793 // Traits for ViewMsg_Print_Params | 1795 // Traits for ViewMsg_Print_Params |
1794 template <> | 1796 template <> |
1795 struct ParamTraits<ViewMsg_Print_Params> { | 1797 struct ParamTraits<ViewMsg_Print_Params> { |
(...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3192 l->append(L")"); | 3194 l->append(L")"); |
3193 } | 3195 } |
3194 }; | 3196 }; |
3195 | 3197 |
3196 } // namespace IPC | 3198 } // namespace IPC |
3197 | 3199 |
3198 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 3200 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
3199 #include "ipc/ipc_message_macros.h" | 3201 #include "ipc/ipc_message_macros.h" |
3200 | 3202 |
3201 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 3203 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |