| 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 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1618 WriteParam(m, p.remote_fonts_enabled); | 1618 WriteParam(m, p.remote_fonts_enabled); |
| 1619 WriteParam(m, p.xss_auditor_enabled); | 1619 WriteParam(m, p.xss_auditor_enabled); |
| 1620 WriteParam(m, p.local_storage_enabled); | 1620 WriteParam(m, p.local_storage_enabled); |
| 1621 WriteParam(m, p.databases_enabled); | 1621 WriteParam(m, p.databases_enabled); |
| 1622 WriteParam(m, p.application_cache_enabled); | 1622 WriteParam(m, p.application_cache_enabled); |
| 1623 WriteParam(m, p.tabs_to_links); | 1623 WriteParam(m, p.tabs_to_links); |
| 1624 WriteParam(m, p.user_style_sheet_enabled); | 1624 WriteParam(m, p.user_style_sheet_enabled); |
| 1625 WriteParam(m, p.user_style_sheet_location); | 1625 WriteParam(m, p.user_style_sheet_location); |
| 1626 WriteParam(m, p.allow_universal_access_from_file_urls); | 1626 WriteParam(m, p.allow_universal_access_from_file_urls); |
| 1627 WriteParam(m, p.experimental_webgl_enabled); | 1627 WriteParam(m, p.experimental_webgl_enabled); |
| 1628 WriteParam(m, p.geolocation_enabled); |
| 1628 } | 1629 } |
| 1629 static bool Read(const Message* m, void** iter, param_type* p) { | 1630 static bool Read(const Message* m, void** iter, param_type* p) { |
| 1630 return | 1631 return |
| 1631 ReadParam(m, iter, &p->standard_font_family) && | 1632 ReadParam(m, iter, &p->standard_font_family) && |
| 1632 ReadParam(m, iter, &p->fixed_font_family) && | 1633 ReadParam(m, iter, &p->fixed_font_family) && |
| 1633 ReadParam(m, iter, &p->serif_font_family) && | 1634 ReadParam(m, iter, &p->serif_font_family) && |
| 1634 ReadParam(m, iter, &p->sans_serif_font_family) && | 1635 ReadParam(m, iter, &p->sans_serif_font_family) && |
| 1635 ReadParam(m, iter, &p->cursive_font_family) && | 1636 ReadParam(m, iter, &p->cursive_font_family) && |
| 1636 ReadParam(m, iter, &p->fantasy_font_family) && | 1637 ReadParam(m, iter, &p->fantasy_font_family) && |
| 1637 ReadParam(m, iter, &p->default_font_size) && | 1638 ReadParam(m, iter, &p->default_font_size) && |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1656 ReadParam(m, iter, &p->uses_page_cache) && | 1657 ReadParam(m, iter, &p->uses_page_cache) && |
| 1657 ReadParam(m, iter, &p->remote_fonts_enabled) && | 1658 ReadParam(m, iter, &p->remote_fonts_enabled) && |
| 1658 ReadParam(m, iter, &p->xss_auditor_enabled) && | 1659 ReadParam(m, iter, &p->xss_auditor_enabled) && |
| 1659 ReadParam(m, iter, &p->local_storage_enabled) && | 1660 ReadParam(m, iter, &p->local_storage_enabled) && |
| 1660 ReadParam(m, iter, &p->databases_enabled) && | 1661 ReadParam(m, iter, &p->databases_enabled) && |
| 1661 ReadParam(m, iter, &p->application_cache_enabled) && | 1662 ReadParam(m, iter, &p->application_cache_enabled) && |
| 1662 ReadParam(m, iter, &p->tabs_to_links) && | 1663 ReadParam(m, iter, &p->tabs_to_links) && |
| 1663 ReadParam(m, iter, &p->user_style_sheet_enabled) && | 1664 ReadParam(m, iter, &p->user_style_sheet_enabled) && |
| 1664 ReadParam(m, iter, &p->user_style_sheet_location) && | 1665 ReadParam(m, iter, &p->user_style_sheet_location) && |
| 1665 ReadParam(m, iter, &p->allow_universal_access_from_file_urls) && | 1666 ReadParam(m, iter, &p->allow_universal_access_from_file_urls) && |
| 1666 ReadParam(m, iter, &p->experimental_webgl_enabled); | 1667 ReadParam(m, iter, &p->experimental_webgl_enabled) && |
| 1668 ReadParam(m, iter, &p->geolocation_enabled); |
| 1667 } | 1669 } |
| 1668 static void Log(const param_type& p, std::wstring* l) { | 1670 static void Log(const param_type& p, std::wstring* l) { |
| 1669 l->append(L"<WebPreferences>"); | 1671 l->append(L"<WebPreferences>"); |
| 1670 } | 1672 } |
| 1671 }; | 1673 }; |
| 1672 | 1674 |
| 1673 // Traits for WebDropData | 1675 // Traits for WebDropData |
| 1674 template <> | 1676 template <> |
| 1675 struct ParamTraits<WebDropData> { | 1677 struct ParamTraits<WebDropData> { |
| 1676 typedef WebDropData param_type; | 1678 typedef WebDropData param_type; |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2286 } | 2288 } |
| 2287 }; | 2289 }; |
| 2288 | 2290 |
| 2289 } // namespace IPC | 2291 } // namespace IPC |
| 2290 | 2292 |
| 2291 | 2293 |
| 2292 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 2294 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
| 2293 #include "ipc/ipc_message_macros.h" | 2295 #include "ipc/ipc_message_macros.h" |
| 2294 | 2296 |
| 2295 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 2297 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| OLD | NEW |