Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Side by Side Diff: chrome/common/render_messages.h

Issue 100012: Disable web-fonts, Chrome part.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/branches/172/src/
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | webkit/glue/webpreferences.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/gfx/native_widget_types.h" 13 #include "base/gfx/native_widget_types.h"
14 #include "base/ref_counted.h" 14 #include "base/ref_counted.h"
15 #include "base/shared_memory.h" 15 #include "base/shared_memory.h"
16 #include "chrome/browser/renderer_host/resource_handler.h" 16 #include "chrome/browser/renderer_host/resource_handler.h"
17 #include "chrome/common/filter_policy.h" 17 #include "chrome/common/filter_policy.h"
18 #include "chrome/common/ipc_message_utils.h" 18 #include "chrome/common/ipc_message_utils.h"
19 #include "chrome/common/modal_dialog_event.h" 19 #include "chrome/common/modal_dialog_event.h"
20 #include "chrome/common/page_transition_types.h" 20 #include "chrome/common/page_transition_types.h"
21 #include "chrome/common/transport_dib.h" 21 #include "chrome/common/transport_dib.h"
22 #include "googleurl/src/gurl.h" 22 #include "googleurl/src/gurl.h"
23 #include "media/audio/audio_output.h" 23 #include "media/audio/audio_output.h"
24 #include "net/base/upload_data.h" 24 #include "net/base/upload_data.h"
25 #include "net/http/http_response_headers.h" 25 #include "net/http/http_response_headers.h"
26 #include "net/url_request/url_request_status.h" 26 #include "net/url_request/url_request_status.h"
27 #include "third_party/WebKit/WebKit/chromium/public/WebCache.h" 27 #include "third_party/WebKit/WebKit/chromium/public/WebCache.h"
28 #include "third_party/WebKit/WebKit/chromium/public/WebFindInPageRequest.h" 28 #include "third_party/WebKit/WebKit/chromium/public/WebFindInPageRequest.h"
29 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" 29 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h"
30 #include "webkit/glue/autofill_form.h" 30 #include "webkit/glue/autofill_form.h"
31 #include "webkit/glue/context_menu.h" 31 #include "webkit/glue/context_menu.h"
32 #include "webkit/glue/feed.h" 32 #include "webkit/glue/feed.h"
33 #include "webkit/glue/form_data.h" 33 #include "webkit/glue/form_data.h"
34 #include "webkit/glue/password_form.h" 34 #include "webkit/glue/password_form.h"
35 #include "webkit/glue/password_form_dom_manager.h" 35 #include "webkit/glue/password_form_dom_manager.h"
36 #include "webkit/glue/resource_loader_bridge.h" 36 #include "webkit/glue/resource_loader_bridge.h"
37 #include "webkit/glue/screen_info.h" 37 #include "webkit/glue/screen_info.h"
38 #include "webkit/glue/webaccessibility.h" 38 #include "webkit/glue/webaccessibility.h"
(...skipping 1656 matching lines...) Expand 10 before | Expand all | Expand 10 after
1695 WriteParam(m, p.plugins_enabled); 1695 WriteParam(m, p.plugins_enabled);
1696 WriteParam(m, p.dom_paste_enabled); 1696 WriteParam(m, p.dom_paste_enabled);
1697 WriteParam(m, p.developer_extras_enabled); 1697 WriteParam(m, p.developer_extras_enabled);
1698 WriteParam(m, p.shrinks_standalone_images_to_fit); 1698 WriteParam(m, p.shrinks_standalone_images_to_fit);
1699 WriteParam(m, p.uses_universal_detector); 1699 WriteParam(m, p.uses_universal_detector);
1700 WriteParam(m, p.text_areas_are_resizable); 1700 WriteParam(m, p.text_areas_are_resizable);
1701 WriteParam(m, p.java_enabled); 1701 WriteParam(m, p.java_enabled);
1702 WriteParam(m, p.user_style_sheet_enabled); 1702 WriteParam(m, p.user_style_sheet_enabled);
1703 WriteParam(m, p.user_style_sheet_location); 1703 WriteParam(m, p.user_style_sheet_location);
1704 WriteParam(m, p.uses_page_cache); 1704 WriteParam(m, p.uses_page_cache);
1705 WriteParam(m, p.remote_font_enabled);
1705 } 1706 }
1706 static bool Read(const Message* m, void** iter, param_type* p) { 1707 static bool Read(const Message* m, void** iter, param_type* p) {
1707 return 1708 return
1708 ReadParam(m, iter, &p->standard_font_family) && 1709 ReadParam(m, iter, &p->standard_font_family) &&
1709 ReadParam(m, iter, &p->fixed_font_family) && 1710 ReadParam(m, iter, &p->fixed_font_family) &&
1710 ReadParam(m, iter, &p->serif_font_family) && 1711 ReadParam(m, iter, &p->serif_font_family) &&
1711 ReadParam(m, iter, &p->sans_serif_font_family) && 1712 ReadParam(m, iter, &p->sans_serif_font_family) &&
1712 ReadParam(m, iter, &p->cursive_font_family) && 1713 ReadParam(m, iter, &p->cursive_font_family) &&
1713 ReadParam(m, iter, &p->fantasy_font_family) && 1714 ReadParam(m, iter, &p->fantasy_font_family) &&
1714 ReadParam(m, iter, &p->default_font_size) && 1715 ReadParam(m, iter, &p->default_font_size) &&
1715 ReadParam(m, iter, &p->default_fixed_font_size) && 1716 ReadParam(m, iter, &p->default_fixed_font_size) &&
1716 ReadParam(m, iter, &p->minimum_font_size) && 1717 ReadParam(m, iter, &p->minimum_font_size) &&
1717 ReadParam(m, iter, &p->minimum_logical_font_size) && 1718 ReadParam(m, iter, &p->minimum_logical_font_size) &&
1718 ReadParam(m, iter, &p->default_encoding) && 1719 ReadParam(m, iter, &p->default_encoding) &&
1719 ReadParam(m, iter, &p->javascript_enabled) && 1720 ReadParam(m, iter, &p->javascript_enabled) &&
1720 ReadParam(m, iter, &p->web_security_enabled) && 1721 ReadParam(m, iter, &p->web_security_enabled) &&
1721 ReadParam(m, iter, &p->javascript_can_open_windows_automatically) && 1722 ReadParam(m, iter, &p->javascript_can_open_windows_automatically) &&
1722 ReadParam(m, iter, &p->loads_images_automatically) && 1723 ReadParam(m, iter, &p->loads_images_automatically) &&
1723 ReadParam(m, iter, &p->plugins_enabled) && 1724 ReadParam(m, iter, &p->plugins_enabled) &&
1724 ReadParam(m, iter, &p->dom_paste_enabled) && 1725 ReadParam(m, iter, &p->dom_paste_enabled) &&
1725 ReadParam(m, iter, &p->developer_extras_enabled) && 1726 ReadParam(m, iter, &p->developer_extras_enabled) &&
1726 ReadParam(m, iter, &p->shrinks_standalone_images_to_fit) && 1727 ReadParam(m, iter, &p->shrinks_standalone_images_to_fit) &&
1727 ReadParam(m, iter, &p->uses_universal_detector) && 1728 ReadParam(m, iter, &p->uses_universal_detector) &&
1728 ReadParam(m, iter, &p->text_areas_are_resizable) && 1729 ReadParam(m, iter, &p->text_areas_are_resizable) &&
1729 ReadParam(m, iter, &p->java_enabled) && 1730 ReadParam(m, iter, &p->java_enabled) &&
1730 ReadParam(m, iter, &p->user_style_sheet_enabled) && 1731 ReadParam(m, iter, &p->user_style_sheet_enabled) &&
1731 ReadParam(m, iter, &p->user_style_sheet_location) && 1732 ReadParam(m, iter, &p->user_style_sheet_location) &&
1732 ReadParam(m, iter, &p->uses_page_cache); 1733 ReadParam(m, iter, &p->uses_page_cache) &&
1734 ReadParam(m, iter, &p->remote_font_enabled);
1733 } 1735 }
1734 static void Log(const param_type& p, std::wstring* l) { 1736 static void Log(const param_type& p, std::wstring* l) {
1735 l->append(L"<WebPreferences>"); 1737 l->append(L"<WebPreferences>");
1736 } 1738 }
1737 }; 1739 };
1738 1740
1739 // Traits for WebDropData 1741 // Traits for WebDropData
1740 template <> 1742 template <>
1741 struct ParamTraits<WebDropData> { 1743 struct ParamTraits<WebDropData> {
1742 typedef WebDropData param_type; 1744 typedef WebDropData param_type;
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
1968 } 1970 }
1969 }; 1971 };
1970 1972
1971 } // namespace IPC 1973 } // namespace IPC
1972 1974
1973 1975
1974 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" 1976 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h"
1975 #include "chrome/common/ipc_message_macros.h" 1977 #include "chrome/common/ipc_message_macros.h"
1976 1978
1977 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 1979 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | webkit/glue/webpreferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698