| 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 1644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1655 | 1655 |
| 1656 // Traits for WebDropData | 1656 // Traits for WebDropData |
| 1657 template <> | 1657 template <> |
| 1658 struct ParamTraits<WebDropData> { | 1658 struct ParamTraits<WebDropData> { |
| 1659 typedef WebDropData param_type; | 1659 typedef WebDropData param_type; |
| 1660 static void Write(Message* m, const param_type& p) { | 1660 static void Write(Message* m, const param_type& p) { |
| 1661 WriteParam(m, p.url); | 1661 WriteParam(m, p.url); |
| 1662 WriteParam(m, p.url_title); | 1662 WriteParam(m, p.url_title); |
| 1663 WriteParam(m, p.filenames); | 1663 WriteParam(m, p.filenames); |
| 1664 WriteParam(m, p.plain_text); | 1664 WriteParam(m, p.plain_text); |
| 1665 WriteParam(m, p.cf_html); | |
| 1666 WriteParam(m, p.text_html); | 1665 WriteParam(m, p.text_html); |
| 1666 WriteParam(m, p.html_base_url); |
| 1667 WriteParam(m, p.file_description_filename); | 1667 WriteParam(m, p.file_description_filename); |
| 1668 WriteParam(m, p.file_contents); | 1668 WriteParam(m, p.file_contents); |
| 1669 } | 1669 } |
| 1670 static bool Read(const Message* m, void** iter, param_type* p) { | 1670 static bool Read(const Message* m, void** iter, param_type* p) { |
| 1671 return | 1671 return |
| 1672 ReadParam(m, iter, &p->url) && | 1672 ReadParam(m, iter, &p->url) && |
| 1673 ReadParam(m, iter, &p->url_title) && | 1673 ReadParam(m, iter, &p->url_title) && |
| 1674 ReadParam(m, iter, &p->filenames) && | 1674 ReadParam(m, iter, &p->filenames) && |
| 1675 ReadParam(m, iter, &p->plain_text) && | 1675 ReadParam(m, iter, &p->plain_text) && |
| 1676 ReadParam(m, iter, &p->cf_html) && | |
| 1677 ReadParam(m, iter, &p->text_html) && | 1676 ReadParam(m, iter, &p->text_html) && |
| 1677 ReadParam(m, iter, &p->html_base_url) && |
| 1678 ReadParam(m, iter, &p->file_description_filename) && | 1678 ReadParam(m, iter, &p->file_description_filename) && |
| 1679 ReadParam(m, iter, &p->file_contents); | 1679 ReadParam(m, iter, &p->file_contents); |
| 1680 } | 1680 } |
| 1681 static void Log(const param_type& p, std::wstring* l) { | 1681 static void Log(const param_type& p, std::wstring* l) { |
| 1682 l->append(L"<WebDropData>"); | 1682 l->append(L"<WebDropData>"); |
| 1683 } | 1683 } |
| 1684 }; | 1684 }; |
| 1685 | 1685 |
| 1686 // Traits for ScreenInfo | 1686 // Traits for ScreenInfo |
| 1687 template <> | 1687 template <> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1703 ReadParam(m, iter, &p->available_rect); | 1703 ReadParam(m, iter, &p->available_rect); |
| 1704 } | 1704 } |
| 1705 static void Log(const param_type& p, std::wstring* l) { | 1705 static void Log(const param_type& p, std::wstring* l) { |
| 1706 l->append(L"<webkit_glue::ScreenInfo>"); | 1706 l->append(L"<webkit_glue::ScreenInfo>"); |
| 1707 } | 1707 } |
| 1708 }; | 1708 }; |
| 1709 | 1709 |
| 1710 } // namespace IPC | 1710 } // namespace IPC |
| 1711 | 1711 |
| 1712 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 1712 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| OLD | NEW |