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