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 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1781 | 1781 |
1782 // Traits for FormData structure to pack/unpack. | 1782 // Traits for FormData structure to pack/unpack. |
1783 template <> | 1783 template <> |
1784 struct ParamTraits<webkit_glue::FormData> { | 1784 struct ParamTraits<webkit_glue::FormData> { |
1785 typedef webkit_glue::FormData param_type; | 1785 typedef webkit_glue::FormData param_type; |
1786 static void Write(Message* m, const param_type& p) { | 1786 static void Write(Message* m, const param_type& p) { |
1787 WriteParam(m, p.name); | 1787 WriteParam(m, p.name); |
1788 WriteParam(m, p.method); | 1788 WriteParam(m, p.method); |
1789 WriteParam(m, p.origin); | 1789 WriteParam(m, p.origin); |
1790 WriteParam(m, p.action); | 1790 WriteParam(m, p.action); |
| 1791 WriteParam(m, p.user_submitted); |
1791 WriteParam(m, p.fields); | 1792 WriteParam(m, p.fields); |
1792 } | 1793 } |
1793 static bool Read(const Message* m, void** iter, param_type* p) { | 1794 static bool Read(const Message* m, void** iter, param_type* p) { |
1794 return | 1795 return |
1795 ReadParam(m, iter, &p->name) && | 1796 ReadParam(m, iter, &p->name) && |
1796 ReadParam(m, iter, &p->method) && | 1797 ReadParam(m, iter, &p->method) && |
1797 ReadParam(m, iter, &p->origin) && | 1798 ReadParam(m, iter, &p->origin) && |
1798 ReadParam(m, iter, &p->action) && | 1799 ReadParam(m, iter, &p->action) && |
| 1800 ReadParam(m, iter, &p->user_submitted) && |
1799 ReadParam(m, iter, &p->fields); | 1801 ReadParam(m, iter, &p->fields); |
1800 } | 1802 } |
1801 static void Log(const param_type& p, std::wstring* l) { | 1803 static void Log(const param_type& p, std::wstring* l) { |
1802 l->append(L"<FormData>"); | 1804 l->append(L"<FormData>"); |
1803 } | 1805 } |
1804 }; | 1806 }; |
1805 | 1807 |
1806 // Traits for ViewMsg_Print_Params | 1808 // Traits for ViewMsg_Print_Params |
1807 template <> | 1809 template <> |
1808 struct ParamTraits<ViewMsg_Print_Params> { | 1810 struct ParamTraits<ViewMsg_Print_Params> { |
(...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3205 l->append(L")"); | 3207 l->append(L")"); |
3206 } | 3208 } |
3207 }; | 3209 }; |
3208 | 3210 |
3209 } // namespace IPC | 3211 } // namespace IPC |
3210 | 3212 |
3211 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 3213 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
3212 #include "ipc/ipc_message_macros.h" | 3214 #include "ipc/ipc_message_macros.h" |
3213 | 3215 |
3214 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 3216 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |