OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 1676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1687 }; | 1687 }; |
1688 | 1688 |
1689 // Traits for WebDropData | 1689 // Traits for WebDropData |
1690 template <> | 1690 template <> |
1691 struct ParamTraits<WebDropData> { | 1691 struct ParamTraits<WebDropData> { |
1692 typedef WebDropData param_type; | 1692 typedef WebDropData param_type; |
1693 static void Write(Message* m, const param_type& p) { | 1693 static void Write(Message* m, const param_type& p) { |
1694 WriteParam(m, p.identity); | 1694 WriteParam(m, p.identity); |
1695 WriteParam(m, p.url); | 1695 WriteParam(m, p.url); |
1696 WriteParam(m, p.url_title); | 1696 WriteParam(m, p.url_title); |
| 1697 WriteParam(m, p.download_url); |
1697 WriteParam(m, p.file_extension); | 1698 WriteParam(m, p.file_extension); |
1698 WriteParam(m, p.filenames); | 1699 WriteParam(m, p.filenames); |
1699 WriteParam(m, p.plain_text); | 1700 WriteParam(m, p.plain_text); |
1700 WriteParam(m, p.text_html); | 1701 WriteParam(m, p.text_html); |
1701 WriteParam(m, p.html_base_url); | 1702 WriteParam(m, p.html_base_url); |
1702 WriteParam(m, p.file_description_filename); | 1703 WriteParam(m, p.file_description_filename); |
1703 WriteParam(m, p.file_contents); | 1704 WriteParam(m, p.file_contents); |
1704 } | 1705 } |
1705 static bool Read(const Message* m, void** iter, param_type* p) { | 1706 static bool Read(const Message* m, void** iter, param_type* p) { |
1706 return | 1707 return |
1707 ReadParam(m, iter, &p->identity) && | 1708 ReadParam(m, iter, &p->identity) && |
1708 ReadParam(m, iter, &p->url) && | 1709 ReadParam(m, iter, &p->url) && |
1709 ReadParam(m, iter, &p->url_title) && | 1710 ReadParam(m, iter, &p->url_title) && |
| 1711 ReadParam(m, iter, &p->download_url) && |
1710 ReadParam(m, iter, &p->file_extension) && | 1712 ReadParam(m, iter, &p->file_extension) && |
1711 ReadParam(m, iter, &p->filenames) && | 1713 ReadParam(m, iter, &p->filenames) && |
1712 ReadParam(m, iter, &p->plain_text) && | 1714 ReadParam(m, iter, &p->plain_text) && |
1713 ReadParam(m, iter, &p->text_html) && | 1715 ReadParam(m, iter, &p->text_html) && |
1714 ReadParam(m, iter, &p->html_base_url) && | 1716 ReadParam(m, iter, &p->html_base_url) && |
1715 ReadParam(m, iter, &p->file_description_filename) && | 1717 ReadParam(m, iter, &p->file_description_filename) && |
1716 ReadParam(m, iter, &p->file_contents); | 1718 ReadParam(m, iter, &p->file_contents); |
1717 } | 1719 } |
1718 static void Log(const param_type& p, std::wstring* l) { | 1720 static void Log(const param_type& p, std::wstring* l) { |
1719 l->append(L"<WebDropData>"); | 1721 l->append(L"<WebDropData>"); |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2303 } | 2305 } |
2304 }; | 2306 }; |
2305 | 2307 |
2306 } // namespace IPC | 2308 } // namespace IPC |
2307 | 2309 |
2308 | 2310 |
2309 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 2311 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
2310 #include "ipc/ipc_message_macros.h" | 2312 #include "ipc/ipc_message_macros.h" |
2311 | 2313 |
2312 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 2314 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |