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 1623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1634 WriteParam(m, p.javascript_can_open_windows_automatically); | 1634 WriteParam(m, p.javascript_can_open_windows_automatically); |
1635 WriteParam(m, p.loads_images_automatically); | 1635 WriteParam(m, p.loads_images_automatically); |
1636 WriteParam(m, p.plugins_enabled); | 1636 WriteParam(m, p.plugins_enabled); |
1637 WriteParam(m, p.dom_paste_enabled); | 1637 WriteParam(m, p.dom_paste_enabled); |
1638 WriteParam(m, p.developer_extras_enabled); | 1638 WriteParam(m, p.developer_extras_enabled); |
1639 WriteParam(m, p.inspector_settings); | 1639 WriteParam(m, p.inspector_settings); |
1640 WriteParam(m, p.shrinks_standalone_images_to_fit); | 1640 WriteParam(m, p.shrinks_standalone_images_to_fit); |
1641 WriteParam(m, p.uses_universal_detector); | 1641 WriteParam(m, p.uses_universal_detector); |
1642 WriteParam(m, p.text_areas_are_resizable); | 1642 WriteParam(m, p.text_areas_are_resizable); |
1643 WriteParam(m, p.java_enabled); | 1643 WriteParam(m, p.java_enabled); |
1644 WriteParam(m, p.user_style_sheet_enabled); | 1644 WriteParam(m, p.allow_scripts_to_close_windows); |
1645 WriteParam(m, p.user_style_sheet_location); | |
1646 WriteParam(m, p.uses_page_cache); | 1645 WriteParam(m, p.uses_page_cache); |
1647 WriteParam(m, p.remote_fonts_enabled); | 1646 WriteParam(m, p.remote_fonts_enabled); |
1648 WriteParam(m, p.xss_auditor_enabled); | 1647 WriteParam(m, p.xss_auditor_enabled); |
1649 WriteParam(m, p.local_storage_enabled); | 1648 WriteParam(m, p.local_storage_enabled); |
1650 WriteParam(m, p.databases_enabled); | 1649 WriteParam(m, p.databases_enabled); |
1651 WriteParam(m, p.session_storage_enabled); | 1650 WriteParam(m, p.session_storage_enabled); |
1652 WriteParam(m, p.application_cache_enabled); | 1651 WriteParam(m, p.application_cache_enabled); |
| 1652 WriteParam(m, p.tabs_to_links); |
| 1653 WriteParam(m, p.user_style_sheet_enabled); |
| 1654 WriteParam(m, p.user_style_sheet_location); |
| 1655 WriteParam(m, p.allow_universal_access_from_file_urls); |
1653 WriteParam(m, p.experimental_webgl_enabled); | 1656 WriteParam(m, p.experimental_webgl_enabled); |
1654 } | 1657 } |
1655 static bool Read(const Message* m, void** iter, param_type* p) { | 1658 static bool Read(const Message* m, void** iter, param_type* p) { |
1656 return | 1659 return |
1657 ReadParam(m, iter, &p->standard_font_family) && | 1660 ReadParam(m, iter, &p->standard_font_family) && |
1658 ReadParam(m, iter, &p->fixed_font_family) && | 1661 ReadParam(m, iter, &p->fixed_font_family) && |
1659 ReadParam(m, iter, &p->serif_font_family) && | 1662 ReadParam(m, iter, &p->serif_font_family) && |
1660 ReadParam(m, iter, &p->sans_serif_font_family) && | 1663 ReadParam(m, iter, &p->sans_serif_font_family) && |
1661 ReadParam(m, iter, &p->cursive_font_family) && | 1664 ReadParam(m, iter, &p->cursive_font_family) && |
1662 ReadParam(m, iter, &p->fantasy_font_family) && | 1665 ReadParam(m, iter, &p->fantasy_font_family) && |
1663 ReadParam(m, iter, &p->default_font_size) && | 1666 ReadParam(m, iter, &p->default_font_size) && |
1664 ReadParam(m, iter, &p->default_fixed_font_size) && | 1667 ReadParam(m, iter, &p->default_fixed_font_size) && |
1665 ReadParam(m, iter, &p->minimum_font_size) && | 1668 ReadParam(m, iter, &p->minimum_font_size) && |
1666 ReadParam(m, iter, &p->minimum_logical_font_size) && | 1669 ReadParam(m, iter, &p->minimum_logical_font_size) && |
1667 ReadParam(m, iter, &p->default_encoding) && | 1670 ReadParam(m, iter, &p->default_encoding) && |
1668 ReadParam(m, iter, &p->javascript_enabled) && | 1671 ReadParam(m, iter, &p->javascript_enabled) && |
1669 ReadParam(m, iter, &p->web_security_enabled) && | 1672 ReadParam(m, iter, &p->web_security_enabled) && |
1670 ReadParam(m, iter, &p->javascript_can_open_windows_automatically) && | 1673 ReadParam(m, iter, &p->javascript_can_open_windows_automatically) && |
1671 ReadParam(m, iter, &p->loads_images_automatically) && | 1674 ReadParam(m, iter, &p->loads_images_automatically) && |
1672 ReadParam(m, iter, &p->plugins_enabled) && | 1675 ReadParam(m, iter, &p->plugins_enabled) && |
1673 ReadParam(m, iter, &p->dom_paste_enabled) && | 1676 ReadParam(m, iter, &p->dom_paste_enabled) && |
1674 ReadParam(m, iter, &p->developer_extras_enabled) && | 1677 ReadParam(m, iter, &p->developer_extras_enabled) && |
1675 ReadParam(m, iter, &p->inspector_settings) && | 1678 ReadParam(m, iter, &p->inspector_settings) && |
1676 ReadParam(m, iter, &p->shrinks_standalone_images_to_fit) && | 1679 ReadParam(m, iter, &p->shrinks_standalone_images_to_fit) && |
1677 ReadParam(m, iter, &p->uses_universal_detector) && | 1680 ReadParam(m, iter, &p->uses_universal_detector) && |
1678 ReadParam(m, iter, &p->text_areas_are_resizable) && | 1681 ReadParam(m, iter, &p->text_areas_are_resizable) && |
1679 ReadParam(m, iter, &p->java_enabled) && | 1682 ReadParam(m, iter, &p->java_enabled) && |
1680 ReadParam(m, iter, &p->user_style_sheet_enabled) && | 1683 ReadParam(m, iter, &p->allow_scripts_to_close_windows) && |
1681 ReadParam(m, iter, &p->user_style_sheet_location) && | |
1682 ReadParam(m, iter, &p->uses_page_cache) && | 1684 ReadParam(m, iter, &p->uses_page_cache) && |
1683 ReadParam(m, iter, &p->remote_fonts_enabled) && | 1685 ReadParam(m, iter, &p->remote_fonts_enabled) && |
1684 ReadParam(m, iter, &p->xss_auditor_enabled) && | 1686 ReadParam(m, iter, &p->xss_auditor_enabled) && |
1685 ReadParam(m, iter, &p->local_storage_enabled) && | 1687 ReadParam(m, iter, &p->local_storage_enabled) && |
1686 ReadParam(m, iter, &p->databases_enabled) && | 1688 ReadParam(m, iter, &p->databases_enabled) && |
1687 ReadParam(m, iter, &p->session_storage_enabled) && | 1689 ReadParam(m, iter, &p->session_storage_enabled) && |
1688 ReadParam(m, iter, &p->application_cache_enabled) && | 1690 ReadParam(m, iter, &p->application_cache_enabled) && |
| 1691 ReadParam(m, iter, &p->tabs_to_links) && |
| 1692 ReadParam(m, iter, &p->user_style_sheet_enabled) && |
| 1693 ReadParam(m, iter, &p->user_style_sheet_location) && |
| 1694 ReadParam(m, iter, &p->allow_universal_access_from_file_urls) && |
1689 ReadParam(m, iter, &p->experimental_webgl_enabled); | 1695 ReadParam(m, iter, &p->experimental_webgl_enabled); |
1690 } | 1696 } |
1691 static void Log(const param_type& p, std::wstring* l) { | 1697 static void Log(const param_type& p, std::wstring* l) { |
1692 l->append(L"<WebPreferences>"); | 1698 l->append(L"<WebPreferences>"); |
1693 } | 1699 } |
1694 }; | 1700 }; |
1695 | 1701 |
1696 // Traits for WebDropData | 1702 // Traits for WebDropData |
1697 template <> | 1703 template <> |
1698 struct ParamTraits<WebDropData> { | 1704 struct ParamTraits<WebDropData> { |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2241 } | 2247 } |
2242 }; | 2248 }; |
2243 | 2249 |
2244 } // namespace IPC | 2250 } // namespace IPC |
2245 | 2251 |
2246 | 2252 |
2247 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 2253 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
2248 #include "ipc/ipc_message_macros.h" | 2254 #include "ipc/ipc_message_macros.h" |
2249 | 2255 |
2250 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 2256 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |