OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 #include <map> | 10 #include <map> |
(...skipping 1648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1659 } | 1659 } |
1660 }; | 1660 }; |
1661 | 1661 |
1662 // Traits for WebDropData | 1662 // Traits for WebDropData |
1663 template <> | 1663 template <> |
1664 struct ParamTraits<WebDropData> { | 1664 struct ParamTraits<WebDropData> { |
1665 typedef WebDropData param_type; | 1665 typedef WebDropData param_type; |
1666 static void Write(Message* m, const param_type& p) { | 1666 static void Write(Message* m, const param_type& p) { |
1667 WriteParam(m, p.url); | 1667 WriteParam(m, p.url); |
1668 WriteParam(m, p.url_title); | 1668 WriteParam(m, p.url_title); |
| 1669 WriteParam(m, p.file_extension); |
1669 WriteParam(m, p.filenames); | 1670 WriteParam(m, p.filenames); |
1670 WriteParam(m, p.plain_text); | 1671 WriteParam(m, p.plain_text); |
1671 WriteParam(m, p.text_html); | 1672 WriteParam(m, p.text_html); |
1672 WriteParam(m, p.html_base_url); | 1673 WriteParam(m, p.html_base_url); |
1673 WriteParam(m, p.file_description_filename); | 1674 WriteParam(m, p.file_description_filename); |
1674 WriteParam(m, p.file_contents); | 1675 WriteParam(m, p.file_contents); |
1675 } | 1676 } |
1676 static bool Read(const Message* m, void** iter, param_type* p) { | 1677 static bool Read(const Message* m, void** iter, param_type* p) { |
1677 return | 1678 return |
1678 ReadParam(m, iter, &p->url) && | 1679 ReadParam(m, iter, &p->url) && |
1679 ReadParam(m, iter, &p->url_title) && | 1680 ReadParam(m, iter, &p->url_title) && |
| 1681 ReadParam(m, iter, &p->file_extension) && |
1680 ReadParam(m, iter, &p->filenames) && | 1682 ReadParam(m, iter, &p->filenames) && |
1681 ReadParam(m, iter, &p->plain_text) && | 1683 ReadParam(m, iter, &p->plain_text) && |
1682 ReadParam(m, iter, &p->text_html) && | 1684 ReadParam(m, iter, &p->text_html) && |
1683 ReadParam(m, iter, &p->html_base_url) && | 1685 ReadParam(m, iter, &p->html_base_url) && |
1684 ReadParam(m, iter, &p->file_description_filename) && | 1686 ReadParam(m, iter, &p->file_description_filename) && |
1685 ReadParam(m, iter, &p->file_contents); | 1687 ReadParam(m, iter, &p->file_contents); |
1686 } | 1688 } |
1687 static void Log(const param_type& p, std::wstring* l) { | 1689 static void Log(const param_type& p, std::wstring* l) { |
1688 l->append(L"<WebDropData>"); | 1690 l->append(L"<WebDropData>"); |
1689 } | 1691 } |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1732 #endif | 1734 #endif |
1733 | 1735 |
1734 static void Log(const param_type& p, std::wstring* l) { | 1736 static void Log(const param_type& p, std::wstring* l) { |
1735 l->append(L"<ModalDialogEvent>"); | 1737 l->append(L"<ModalDialogEvent>"); |
1736 } | 1738 } |
1737 }; | 1739 }; |
1738 | 1740 |
1739 } // namespace IPC | 1741 } // namespace IPC |
1740 | 1742 |
1741 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 1743 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |