| 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 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1523 WriteParam(m, p.xss_auditor_enabled); | 1523 WriteParam(m, p.xss_auditor_enabled); |
| 1524 WriteParam(m, p.local_storage_enabled); | 1524 WriteParam(m, p.local_storage_enabled); |
| 1525 WriteParam(m, p.databases_enabled); | 1525 WriteParam(m, p.databases_enabled); |
| 1526 WriteParam(m, p.session_storage_enabled); | 1526 WriteParam(m, p.session_storage_enabled); |
| 1527 WriteParam(m, p.application_cache_enabled); | 1527 WriteParam(m, p.application_cache_enabled); |
| 1528 WriteParam(m, p.tabs_to_links); | 1528 WriteParam(m, p.tabs_to_links); |
| 1529 WriteParam(m, p.user_style_sheet_enabled); | 1529 WriteParam(m, p.user_style_sheet_enabled); |
| 1530 WriteParam(m, p.user_style_sheet_location); | 1530 WriteParam(m, p.user_style_sheet_location); |
| 1531 WriteParam(m, p.allow_universal_access_from_file_urls); | 1531 WriteParam(m, p.allow_universal_access_from_file_urls); |
| 1532 WriteParam(m, p.experimental_webgl_enabled); | 1532 WriteParam(m, p.experimental_webgl_enabled); |
| 1533 WriteParam(m, p.experimental_notifications_enabled); | |
| 1534 } | 1533 } |
| 1535 static bool Read(const Message* m, void** iter, param_type* p) { | 1534 static bool Read(const Message* m, void** iter, param_type* p) { |
| 1536 return | 1535 return |
| 1537 ReadParam(m, iter, &p->standard_font_family) && | 1536 ReadParam(m, iter, &p->standard_font_family) && |
| 1538 ReadParam(m, iter, &p->fixed_font_family) && | 1537 ReadParam(m, iter, &p->fixed_font_family) && |
| 1539 ReadParam(m, iter, &p->serif_font_family) && | 1538 ReadParam(m, iter, &p->serif_font_family) && |
| 1540 ReadParam(m, iter, &p->sans_serif_font_family) && | 1539 ReadParam(m, iter, &p->sans_serif_font_family) && |
| 1541 ReadParam(m, iter, &p->cursive_font_family) && | 1540 ReadParam(m, iter, &p->cursive_font_family) && |
| 1542 ReadParam(m, iter, &p->fantasy_font_family) && | 1541 ReadParam(m, iter, &p->fantasy_font_family) && |
| 1543 ReadParam(m, iter, &p->default_font_size) && | 1542 ReadParam(m, iter, &p->default_font_size) && |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1562 ReadParam(m, iter, &p->remote_fonts_enabled) && | 1561 ReadParam(m, iter, &p->remote_fonts_enabled) && |
| 1563 ReadParam(m, iter, &p->xss_auditor_enabled) && | 1562 ReadParam(m, iter, &p->xss_auditor_enabled) && |
| 1564 ReadParam(m, iter, &p->local_storage_enabled) && | 1563 ReadParam(m, iter, &p->local_storage_enabled) && |
| 1565 ReadParam(m, iter, &p->databases_enabled) && | 1564 ReadParam(m, iter, &p->databases_enabled) && |
| 1566 ReadParam(m, iter, &p->session_storage_enabled) && | 1565 ReadParam(m, iter, &p->session_storage_enabled) && |
| 1567 ReadParam(m, iter, &p->application_cache_enabled) && | 1566 ReadParam(m, iter, &p->application_cache_enabled) && |
| 1568 ReadParam(m, iter, &p->tabs_to_links) && | 1567 ReadParam(m, iter, &p->tabs_to_links) && |
| 1569 ReadParam(m, iter, &p->user_style_sheet_enabled) && | 1568 ReadParam(m, iter, &p->user_style_sheet_enabled) && |
| 1570 ReadParam(m, iter, &p->user_style_sheet_location) && | 1569 ReadParam(m, iter, &p->user_style_sheet_location) && |
| 1571 ReadParam(m, iter, &p->allow_universal_access_from_file_urls) && | 1570 ReadParam(m, iter, &p->allow_universal_access_from_file_urls) && |
| 1572 ReadParam(m, iter, &p->experimental_webgl_enabled) && | 1571 ReadParam(m, iter, &p->experimental_webgl_enabled); |
| 1573 ReadParam(m, iter, &p->experimental_notifications_enabled); | |
| 1574 } | 1572 } |
| 1575 static void Log(const param_type& p, std::wstring* l) { | 1573 static void Log(const param_type& p, std::wstring* l) { |
| 1576 l->append(L"<WebPreferences>"); | 1574 l->append(L"<WebPreferences>"); |
| 1577 } | 1575 } |
| 1578 }; | 1576 }; |
| 1579 | 1577 |
| 1580 // Traits for WebDropData | 1578 // Traits for WebDropData |
| 1581 template <> | 1579 template <> |
| 1582 struct ParamTraits<WebDropData> { | 1580 struct ParamTraits<WebDropData> { |
| 1583 typedef WebDropData param_type; | 1581 typedef WebDropData param_type; |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2155 } | 2153 } |
| 2156 }; | 2154 }; |
| 2157 | 2155 |
| 2158 } // namespace IPC | 2156 } // namespace IPC |
| 2159 | 2157 |
| 2160 | 2158 |
| 2161 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 2159 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
| 2162 #include "ipc/ipc_message_macros.h" | 2160 #include "ipc/ipc_message_macros.h" |
| 2163 | 2161 |
| 2164 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 2162 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| OLD | NEW |