OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 1443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1454 WriteParam(m, p.serif_font_family); | 1454 WriteParam(m, p.serif_font_family); |
1455 WriteParam(m, p.sans_serif_font_family); | 1455 WriteParam(m, p.sans_serif_font_family); |
1456 WriteParam(m, p.cursive_font_family); | 1456 WriteParam(m, p.cursive_font_family); |
1457 WriteParam(m, p.fantasy_font_family); | 1457 WriteParam(m, p.fantasy_font_family); |
1458 WriteParam(m, p.default_font_size); | 1458 WriteParam(m, p.default_font_size); |
1459 WriteParam(m, p.default_fixed_font_size); | 1459 WriteParam(m, p.default_fixed_font_size); |
1460 WriteParam(m, p.minimum_font_size); | 1460 WriteParam(m, p.minimum_font_size); |
1461 WriteParam(m, p.minimum_logical_font_size); | 1461 WriteParam(m, p.minimum_logical_font_size); |
1462 WriteParam(m, p.default_encoding); | 1462 WriteParam(m, p.default_encoding); |
1463 WriteParam(m, p.javascript_enabled); | 1463 WriteParam(m, p.javascript_enabled); |
| 1464 WriteParam(m, p.web_security_enabled); |
1464 WriteParam(m, p.javascript_can_open_windows_automatically); | 1465 WriteParam(m, p.javascript_can_open_windows_automatically); |
1465 WriteParam(m, p.loads_images_automatically); | 1466 WriteParam(m, p.loads_images_automatically); |
1466 WriteParam(m, p.plugins_enabled); | 1467 WriteParam(m, p.plugins_enabled); |
1467 WriteParam(m, p.dom_paste_enabled); | 1468 WriteParam(m, p.dom_paste_enabled); |
1468 WriteParam(m, p.developer_extras_enabled); | 1469 WriteParam(m, p.developer_extras_enabled); |
1469 WriteParam(m, p.shrinks_standalone_images_to_fit); | 1470 WriteParam(m, p.shrinks_standalone_images_to_fit); |
1470 WriteParam(m, p.uses_universal_detector); | 1471 WriteParam(m, p.uses_universal_detector); |
1471 WriteParam(m, p.text_areas_are_resizable); | 1472 WriteParam(m, p.text_areas_are_resizable); |
1472 WriteParam(m, p.java_enabled); | 1473 WriteParam(m, p.java_enabled); |
1473 WriteParam(m, p.user_style_sheet_enabled); | 1474 WriteParam(m, p.user_style_sheet_enabled); |
1474 WriteParam(m, p.user_style_sheet_location); | 1475 WriteParam(m, p.user_style_sheet_location); |
1475 WriteParam(m, p.uses_page_cache); | 1476 WriteParam(m, p.uses_page_cache); |
1476 } | 1477 } |
1477 static bool Read(const Message* m, void** iter, param_type* p) { | 1478 static bool Read(const Message* m, void** iter, param_type* p) { |
1478 return | 1479 return |
1479 ReadParam(m, iter, &p->standard_font_family) && | 1480 ReadParam(m, iter, &p->standard_font_family) && |
1480 ReadParam(m, iter, &p->fixed_font_family) && | 1481 ReadParam(m, iter, &p->fixed_font_family) && |
1481 ReadParam(m, iter, &p->serif_font_family) && | 1482 ReadParam(m, iter, &p->serif_font_family) && |
1482 ReadParam(m, iter, &p->sans_serif_font_family) && | 1483 ReadParam(m, iter, &p->sans_serif_font_family) && |
1483 ReadParam(m, iter, &p->cursive_font_family) && | 1484 ReadParam(m, iter, &p->cursive_font_family) && |
1484 ReadParam(m, iter, &p->fantasy_font_family) && | 1485 ReadParam(m, iter, &p->fantasy_font_family) && |
1485 ReadParam(m, iter, &p->default_font_size) && | 1486 ReadParam(m, iter, &p->default_font_size) && |
1486 ReadParam(m, iter, &p->default_fixed_font_size) && | 1487 ReadParam(m, iter, &p->default_fixed_font_size) && |
1487 ReadParam(m, iter, &p->minimum_font_size) && | 1488 ReadParam(m, iter, &p->minimum_font_size) && |
1488 ReadParam(m, iter, &p->minimum_logical_font_size) && | 1489 ReadParam(m, iter, &p->minimum_logical_font_size) && |
1489 ReadParam(m, iter, &p->default_encoding) && | 1490 ReadParam(m, iter, &p->default_encoding) && |
1490 ReadParam(m, iter, &p->javascript_enabled) && | 1491 ReadParam(m, iter, &p->javascript_enabled) && |
| 1492 ReadParam(m, iter, &p->web_security_enabled) && |
1491 ReadParam(m, iter, &p->javascript_can_open_windows_automatically) && | 1493 ReadParam(m, iter, &p->javascript_can_open_windows_automatically) && |
1492 ReadParam(m, iter, &p->loads_images_automatically) && | 1494 ReadParam(m, iter, &p->loads_images_automatically) && |
1493 ReadParam(m, iter, &p->plugins_enabled) && | 1495 ReadParam(m, iter, &p->plugins_enabled) && |
1494 ReadParam(m, iter, &p->dom_paste_enabled) && | 1496 ReadParam(m, iter, &p->dom_paste_enabled) && |
1495 ReadParam(m, iter, &p->developer_extras_enabled) && | 1497 ReadParam(m, iter, &p->developer_extras_enabled) && |
1496 ReadParam(m, iter, &p->shrinks_standalone_images_to_fit) && | 1498 ReadParam(m, iter, &p->shrinks_standalone_images_to_fit) && |
1497 ReadParam(m, iter, &p->uses_universal_detector) && | 1499 ReadParam(m, iter, &p->uses_universal_detector) && |
1498 ReadParam(m, iter, &p->text_areas_are_resizable) && | 1500 ReadParam(m, iter, &p->text_areas_are_resizable) && |
1499 ReadParam(m, iter, &p->java_enabled) && | 1501 ReadParam(m, iter, &p->java_enabled) && |
1500 ReadParam(m, iter, &p->user_style_sheet_enabled) && | 1502 ReadParam(m, iter, &p->user_style_sheet_enabled) && |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1610 | 1612 |
1611 #endif // defined(OS_POSIX) | 1613 #endif // defined(OS_POSIX) |
1612 | 1614 |
1613 } // namespace IPC | 1615 } // namespace IPC |
1614 | 1616 |
1615 | 1617 |
1616 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 1618 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
1617 #include "chrome/common/ipc_message_macros.h" | 1619 #include "chrome/common/ipc_message_macros.h" |
1618 | 1620 |
1619 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 1621 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |