| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 1731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1742 WriteParam(m, p.uses_page_cache); | 1742 WriteParam(m, p.uses_page_cache); |
| 1743 WriteParam(m, p.remote_fonts_enabled); | 1743 WriteParam(m, p.remote_fonts_enabled); |
| 1744 WriteParam(m, p.xss_auditor_enabled); | 1744 WriteParam(m, p.xss_auditor_enabled); |
| 1745 WriteParam(m, p.local_storage_enabled); | 1745 WriteParam(m, p.local_storage_enabled); |
| 1746 WriteParam(m, p.databases_enabled); | 1746 WriteParam(m, p.databases_enabled); |
| 1747 WriteParam(m, p.application_cache_enabled); | 1747 WriteParam(m, p.application_cache_enabled); |
| 1748 WriteParam(m, p.tabs_to_links); | 1748 WriteParam(m, p.tabs_to_links); |
| 1749 WriteParam(m, p.user_style_sheet_enabled); | 1749 WriteParam(m, p.user_style_sheet_enabled); |
| 1750 WriteParam(m, p.user_style_sheet_location); | 1750 WriteParam(m, p.user_style_sheet_location); |
| 1751 WriteParam(m, p.allow_universal_access_from_file_urls); | 1751 WriteParam(m, p.allow_universal_access_from_file_urls); |
| 1752 WriteParam(m, p.allow_file_access_from_file_urls); | |
| 1753 WriteParam(m, p.experimental_webgl_enabled); | 1752 WriteParam(m, p.experimental_webgl_enabled); |
| 1754 WriteParam(m, p.geolocation_enabled); | 1753 WriteParam(m, p.geolocation_enabled); |
| 1755 } | 1754 } |
| 1756 static bool Read(const Message* m, void** iter, param_type* p) { | 1755 static bool Read(const Message* m, void** iter, param_type* p) { |
| 1757 return | 1756 return |
| 1758 ReadParam(m, iter, &p->standard_font_family) && | 1757 ReadParam(m, iter, &p->standard_font_family) && |
| 1759 ReadParam(m, iter, &p->fixed_font_family) && | 1758 ReadParam(m, iter, &p->fixed_font_family) && |
| 1760 ReadParam(m, iter, &p->serif_font_family) && | 1759 ReadParam(m, iter, &p->serif_font_family) && |
| 1761 ReadParam(m, iter, &p->sans_serif_font_family) && | 1760 ReadParam(m, iter, &p->sans_serif_font_family) && |
| 1762 ReadParam(m, iter, &p->cursive_font_family) && | 1761 ReadParam(m, iter, &p->cursive_font_family) && |
| (...skipping 20 matching lines...) Expand all Loading... |
| 1783 ReadParam(m, iter, &p->uses_page_cache) && | 1782 ReadParam(m, iter, &p->uses_page_cache) && |
| 1784 ReadParam(m, iter, &p->remote_fonts_enabled) && | 1783 ReadParam(m, iter, &p->remote_fonts_enabled) && |
| 1785 ReadParam(m, iter, &p->xss_auditor_enabled) && | 1784 ReadParam(m, iter, &p->xss_auditor_enabled) && |
| 1786 ReadParam(m, iter, &p->local_storage_enabled) && | 1785 ReadParam(m, iter, &p->local_storage_enabled) && |
| 1787 ReadParam(m, iter, &p->databases_enabled) && | 1786 ReadParam(m, iter, &p->databases_enabled) && |
| 1788 ReadParam(m, iter, &p->application_cache_enabled) && | 1787 ReadParam(m, iter, &p->application_cache_enabled) && |
| 1789 ReadParam(m, iter, &p->tabs_to_links) && | 1788 ReadParam(m, iter, &p->tabs_to_links) && |
| 1790 ReadParam(m, iter, &p->user_style_sheet_enabled) && | 1789 ReadParam(m, iter, &p->user_style_sheet_enabled) && |
| 1791 ReadParam(m, iter, &p->user_style_sheet_location) && | 1790 ReadParam(m, iter, &p->user_style_sheet_location) && |
| 1792 ReadParam(m, iter, &p->allow_universal_access_from_file_urls) && | 1791 ReadParam(m, iter, &p->allow_universal_access_from_file_urls) && |
| 1793 ReadParam(m, iter, &p->allow_file_access_from_file_urls) && | |
| 1794 ReadParam(m, iter, &p->experimental_webgl_enabled) && | 1792 ReadParam(m, iter, &p->experimental_webgl_enabled) && |
| 1795 ReadParam(m, iter, &p->geolocation_enabled); | 1793 ReadParam(m, iter, &p->geolocation_enabled); |
| 1796 } | 1794 } |
| 1797 static void Log(const param_type& p, std::wstring* l) { | 1795 static void Log(const param_type& p, std::wstring* l) { |
| 1798 l->append(L"<WebPreferences>"); | 1796 l->append(L"<WebPreferences>"); |
| 1799 } | 1797 } |
| 1800 }; | 1798 }; |
| 1801 | 1799 |
| 1802 // Traits for WebDropData | 1800 // Traits for WebDropData |
| 1803 template <> | 1801 template <> |
| (...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2566 } | 2564 } |
| 2567 }; | 2565 }; |
| 2568 | 2566 |
| 2569 } // namespace IPC | 2567 } // namespace IPC |
| 2570 | 2568 |
| 2571 | 2569 |
| 2572 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 2570 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
| 2573 #include "ipc/ipc_message_macros.h" | 2571 #include "ipc/ipc_message_macros.h" |
| 2574 | 2572 |
| 2575 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 2573 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| OLD | NEW |