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 1632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1643 WriteParam(m, p.java_enabled); | 1643 WriteParam(m, p.java_enabled); |
1644 WriteParam(m, p.user_style_sheet_enabled); | 1644 WriteParam(m, p.user_style_sheet_enabled); |
1645 WriteParam(m, p.user_style_sheet_location); | 1645 WriteParam(m, p.user_style_sheet_location); |
1646 WriteParam(m, p.uses_page_cache); | 1646 WriteParam(m, p.uses_page_cache); |
1647 WriteParam(m, p.remote_fonts_enabled); | 1647 WriteParam(m, p.remote_fonts_enabled); |
1648 WriteParam(m, p.xss_auditor_enabled); | 1648 WriteParam(m, p.xss_auditor_enabled); |
1649 WriteParam(m, p.local_storage_enabled); | 1649 WriteParam(m, p.local_storage_enabled); |
1650 WriteParam(m, p.databases_enabled); | 1650 WriteParam(m, p.databases_enabled); |
1651 WriteParam(m, p.session_storage_enabled); | 1651 WriteParam(m, p.session_storage_enabled); |
1652 WriteParam(m, p.application_cache_enabled); | 1652 WriteParam(m, p.application_cache_enabled); |
| 1653 WriteParam(m, p.experimental_webgl_enabled); |
1653 } | 1654 } |
1654 static bool Read(const Message* m, void** iter, param_type* p) { | 1655 static bool Read(const Message* m, void** iter, param_type* p) { |
1655 return | 1656 return |
1656 ReadParam(m, iter, &p->standard_font_family) && | 1657 ReadParam(m, iter, &p->standard_font_family) && |
1657 ReadParam(m, iter, &p->fixed_font_family) && | 1658 ReadParam(m, iter, &p->fixed_font_family) && |
1658 ReadParam(m, iter, &p->serif_font_family) && | 1659 ReadParam(m, iter, &p->serif_font_family) && |
1659 ReadParam(m, iter, &p->sans_serif_font_family) && | 1660 ReadParam(m, iter, &p->sans_serif_font_family) && |
1660 ReadParam(m, iter, &p->cursive_font_family) && | 1661 ReadParam(m, iter, &p->cursive_font_family) && |
1661 ReadParam(m, iter, &p->fantasy_font_family) && | 1662 ReadParam(m, iter, &p->fantasy_font_family) && |
1662 ReadParam(m, iter, &p->default_font_size) && | 1663 ReadParam(m, iter, &p->default_font_size) && |
(...skipping 14 matching lines...) Expand all Loading... |
1677 ReadParam(m, iter, &p->text_areas_are_resizable) && | 1678 ReadParam(m, iter, &p->text_areas_are_resizable) && |
1678 ReadParam(m, iter, &p->java_enabled) && | 1679 ReadParam(m, iter, &p->java_enabled) && |
1679 ReadParam(m, iter, &p->user_style_sheet_enabled) && | 1680 ReadParam(m, iter, &p->user_style_sheet_enabled) && |
1680 ReadParam(m, iter, &p->user_style_sheet_location) && | 1681 ReadParam(m, iter, &p->user_style_sheet_location) && |
1681 ReadParam(m, iter, &p->uses_page_cache) && | 1682 ReadParam(m, iter, &p->uses_page_cache) && |
1682 ReadParam(m, iter, &p->remote_fonts_enabled) && | 1683 ReadParam(m, iter, &p->remote_fonts_enabled) && |
1683 ReadParam(m, iter, &p->xss_auditor_enabled) && | 1684 ReadParam(m, iter, &p->xss_auditor_enabled) && |
1684 ReadParam(m, iter, &p->local_storage_enabled) && | 1685 ReadParam(m, iter, &p->local_storage_enabled) && |
1685 ReadParam(m, iter, &p->databases_enabled) && | 1686 ReadParam(m, iter, &p->databases_enabled) && |
1686 ReadParam(m, iter, &p->session_storage_enabled) && | 1687 ReadParam(m, iter, &p->session_storage_enabled) && |
1687 ReadParam(m, iter, &p->application_cache_enabled); | 1688 ReadParam(m, iter, &p->application_cache_enabled) && |
| 1689 ReadParam(m, iter, &p->experimental_webgl_enabled); |
1688 } | 1690 } |
1689 static void Log(const param_type& p, std::wstring* l) { | 1691 static void Log(const param_type& p, std::wstring* l) { |
1690 l->append(L"<WebPreferences>"); | 1692 l->append(L"<WebPreferences>"); |
1691 } | 1693 } |
1692 }; | 1694 }; |
1693 | 1695 |
1694 // Traits for WebDropData | 1696 // Traits for WebDropData |
1695 template <> | 1697 template <> |
1696 struct ParamTraits<WebDropData> { | 1698 struct ParamTraits<WebDropData> { |
1697 typedef WebDropData param_type; | 1699 typedef WebDropData param_type; |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2239 } | 2241 } |
2240 }; | 2242 }; |
2241 | 2243 |
2242 } // namespace IPC | 2244 } // namespace IPC |
2243 | 2245 |
2244 | 2246 |
2245 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 2247 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
2246 #include "ipc/ipc_message_macros.h" | 2248 #include "ipc/ipc_message_macros.h" |
2247 | 2249 |
2248 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 2250 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |