| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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 1604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1615 WriteParam(m, p.shrinks_standalone_images_to_fit); | 1615 WriteParam(m, p.shrinks_standalone_images_to_fit); |
| 1616 WriteParam(m, p.uses_universal_detector); | 1616 WriteParam(m, p.uses_universal_detector); |
| 1617 WriteParam(m, p.text_areas_are_resizable); | 1617 WriteParam(m, p.text_areas_are_resizable); |
| 1618 WriteParam(m, p.java_enabled); | 1618 WriteParam(m, p.java_enabled); |
| 1619 WriteParam(m, p.user_style_sheet_enabled); | 1619 WriteParam(m, p.user_style_sheet_enabled); |
| 1620 WriteParam(m, p.user_style_sheet_location); | 1620 WriteParam(m, p.user_style_sheet_location); |
| 1621 WriteParam(m, p.uses_page_cache); | 1621 WriteParam(m, p.uses_page_cache); |
| 1622 WriteParam(m, p.remote_fonts_enabled); | 1622 WriteParam(m, p.remote_fonts_enabled); |
| 1623 WriteParam(m, p.xss_auditor_enabled); | 1623 WriteParam(m, p.xss_auditor_enabled); |
| 1624 WriteParam(m, p.local_storage_enabled); | 1624 WriteParam(m, p.local_storage_enabled); |
| 1625 WriteParam(m, p.databases_enabled); |
| 1625 WriteParam(m, p.session_storage_enabled); | 1626 WriteParam(m, p.session_storage_enabled); |
| 1626 WriteParam(m, p.application_cache_enabled); | 1627 WriteParam(m, p.application_cache_enabled); |
| 1627 } | 1628 } |
| 1628 static bool Read(const Message* m, void** iter, param_type* p) { | 1629 static bool Read(const Message* m, void** iter, param_type* p) { |
| 1629 return | 1630 return |
| 1630 ReadParam(m, iter, &p->standard_font_family) && | 1631 ReadParam(m, iter, &p->standard_font_family) && |
| 1631 ReadParam(m, iter, &p->fixed_font_family) && | 1632 ReadParam(m, iter, &p->fixed_font_family) && |
| 1632 ReadParam(m, iter, &p->serif_font_family) && | 1633 ReadParam(m, iter, &p->serif_font_family) && |
| 1633 ReadParam(m, iter, &p->sans_serif_font_family) && | 1634 ReadParam(m, iter, &p->sans_serif_font_family) && |
| 1634 ReadParam(m, iter, &p->cursive_font_family) && | 1635 ReadParam(m, iter, &p->cursive_font_family) && |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1649 ReadParam(m, iter, &p->shrinks_standalone_images_to_fit) && | 1650 ReadParam(m, iter, &p->shrinks_standalone_images_to_fit) && |
| 1650 ReadParam(m, iter, &p->uses_universal_detector) && | 1651 ReadParam(m, iter, &p->uses_universal_detector) && |
| 1651 ReadParam(m, iter, &p->text_areas_are_resizable) && | 1652 ReadParam(m, iter, &p->text_areas_are_resizable) && |
| 1652 ReadParam(m, iter, &p->java_enabled) && | 1653 ReadParam(m, iter, &p->java_enabled) && |
| 1653 ReadParam(m, iter, &p->user_style_sheet_enabled) && | 1654 ReadParam(m, iter, &p->user_style_sheet_enabled) && |
| 1654 ReadParam(m, iter, &p->user_style_sheet_location) && | 1655 ReadParam(m, iter, &p->user_style_sheet_location) && |
| 1655 ReadParam(m, iter, &p->uses_page_cache) && | 1656 ReadParam(m, iter, &p->uses_page_cache) && |
| 1656 ReadParam(m, iter, &p->remote_fonts_enabled) && | 1657 ReadParam(m, iter, &p->remote_fonts_enabled) && |
| 1657 ReadParam(m, iter, &p->xss_auditor_enabled) && | 1658 ReadParam(m, iter, &p->xss_auditor_enabled) && |
| 1658 ReadParam(m, iter, &p->local_storage_enabled) && | 1659 ReadParam(m, iter, &p->local_storage_enabled) && |
| 1660 ReadParam(m, iter, &p->databases_enabled) && |
| 1659 ReadParam(m, iter, &p->session_storage_enabled) && | 1661 ReadParam(m, iter, &p->session_storage_enabled) && |
| 1660 ReadParam(m, iter, &p->application_cache_enabled); | 1662 ReadParam(m, iter, &p->application_cache_enabled); |
| 1661 } | 1663 } |
| 1662 static void Log(const param_type& p, std::wstring* l) { | 1664 static void Log(const param_type& p, std::wstring* l) { |
| 1663 l->append(L"<WebPreferences>"); | 1665 l->append(L"<WebPreferences>"); |
| 1664 } | 1666 } |
| 1665 }; | 1667 }; |
| 1666 | 1668 |
| 1667 // Traits for WebDropData | 1669 // Traits for WebDropData |
| 1668 template <> | 1670 template <> |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2123 } | 2125 } |
| 2124 }; | 2126 }; |
| 2125 | 2127 |
| 2126 } // namespace IPC | 2128 } // namespace IPC |
| 2127 | 2129 |
| 2128 | 2130 |
| 2129 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 2131 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
| 2130 #include "ipc/ipc_message_macros.h" | 2132 #include "ipc/ipc_message_macros.h" |
| 2131 | 2133 |
| 2132 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 2134 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| OLD | NEW |