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 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1522 WriteParam(m, p.inspector_settings); | 1522 WriteParam(m, p.inspector_settings); |
1523 WriteParam(m, p.shrinks_standalone_images_to_fit); | 1523 WriteParam(m, p.shrinks_standalone_images_to_fit); |
1524 WriteParam(m, p.uses_universal_detector); | 1524 WriteParam(m, p.uses_universal_detector); |
1525 WriteParam(m, p.text_areas_are_resizable); | 1525 WriteParam(m, p.text_areas_are_resizable); |
1526 WriteParam(m, p.java_enabled); | 1526 WriteParam(m, p.java_enabled); |
1527 WriteParam(m, p.user_style_sheet_enabled); | 1527 WriteParam(m, p.user_style_sheet_enabled); |
1528 WriteParam(m, p.user_style_sheet_location); | 1528 WriteParam(m, p.user_style_sheet_location); |
1529 WriteParam(m, p.uses_page_cache); | 1529 WriteParam(m, p.uses_page_cache); |
1530 WriteParam(m, p.remote_fonts_enabled); | 1530 WriteParam(m, p.remote_fonts_enabled); |
1531 WriteParam(m, p.xss_auditor_enabled); | 1531 WriteParam(m, p.xss_auditor_enabled); |
| 1532 WriteParam(m, p.local_storage_enabled); |
| 1533 WriteParam(m, p.session_storage_enabled); |
1532 } | 1534 } |
1533 static bool Read(const Message* m, void** iter, param_type* p) { | 1535 static bool Read(const Message* m, void** iter, param_type* p) { |
1534 return | 1536 return |
1535 ReadParam(m, iter, &p->standard_font_family) && | 1537 ReadParam(m, iter, &p->standard_font_family) && |
1536 ReadParam(m, iter, &p->fixed_font_family) && | 1538 ReadParam(m, iter, &p->fixed_font_family) && |
1537 ReadParam(m, iter, &p->serif_font_family) && | 1539 ReadParam(m, iter, &p->serif_font_family) && |
1538 ReadParam(m, iter, &p->sans_serif_font_family) && | 1540 ReadParam(m, iter, &p->sans_serif_font_family) && |
1539 ReadParam(m, iter, &p->cursive_font_family) && | 1541 ReadParam(m, iter, &p->cursive_font_family) && |
1540 ReadParam(m, iter, &p->fantasy_font_family) && | 1542 ReadParam(m, iter, &p->fantasy_font_family) && |
1541 ReadParam(m, iter, &p->default_font_size) && | 1543 ReadParam(m, iter, &p->default_font_size) && |
(...skipping 10 matching lines...) Expand all Loading... |
1552 ReadParam(m, iter, &p->developer_extras_enabled) && | 1554 ReadParam(m, iter, &p->developer_extras_enabled) && |
1553 ReadParam(m, iter, &p->inspector_settings) && | 1555 ReadParam(m, iter, &p->inspector_settings) && |
1554 ReadParam(m, iter, &p->shrinks_standalone_images_to_fit) && | 1556 ReadParam(m, iter, &p->shrinks_standalone_images_to_fit) && |
1555 ReadParam(m, iter, &p->uses_universal_detector) && | 1557 ReadParam(m, iter, &p->uses_universal_detector) && |
1556 ReadParam(m, iter, &p->text_areas_are_resizable) && | 1558 ReadParam(m, iter, &p->text_areas_are_resizable) && |
1557 ReadParam(m, iter, &p->java_enabled) && | 1559 ReadParam(m, iter, &p->java_enabled) && |
1558 ReadParam(m, iter, &p->user_style_sheet_enabled) && | 1560 ReadParam(m, iter, &p->user_style_sheet_enabled) && |
1559 ReadParam(m, iter, &p->user_style_sheet_location) && | 1561 ReadParam(m, iter, &p->user_style_sheet_location) && |
1560 ReadParam(m, iter, &p->uses_page_cache) && | 1562 ReadParam(m, iter, &p->uses_page_cache) && |
1561 ReadParam(m, iter, &p->remote_fonts_enabled) && | 1563 ReadParam(m, iter, &p->remote_fonts_enabled) && |
1562 ReadParam(m, iter, &p->xss_auditor_enabled); | 1564 ReadParam(m, iter, &p->xss_auditor_enabled) && |
| 1565 ReadParam(m, iter, &p->local_storage_enabled) && |
| 1566 ReadParam(m, iter, &p->session_storage_enabled); |
1563 } | 1567 } |
1564 static void Log(const param_type& p, std::wstring* l) { | 1568 static void Log(const param_type& p, std::wstring* l) { |
1565 l->append(L"<WebPreferences>"); | 1569 l->append(L"<WebPreferences>"); |
1566 } | 1570 } |
1567 }; | 1571 }; |
1568 | 1572 |
1569 // Traits for WebDropData | 1573 // Traits for WebDropData |
1570 template <> | 1574 template <> |
1571 struct ParamTraits<WebDropData> { | 1575 struct ParamTraits<WebDropData> { |
1572 typedef WebDropData param_type; | 1576 typedef WebDropData param_type; |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1921 }; | 1925 }; |
1922 | 1926 |
1923 | 1927 |
1924 } // namespace IPC | 1928 } // namespace IPC |
1925 | 1929 |
1926 | 1930 |
1927 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 1931 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
1928 #include "chrome/common/ipc_message_macros.h" | 1932 #include "chrome/common/ipc_message_macros.h" |
1929 | 1933 |
1930 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 1934 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |