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

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

Issue 255075: Implement --enable-web-sockets flag. (Closed)
Patch Set: Remove WebKIT API change Created 11 years, 2 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/api/public/WebSettings.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) 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 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after
1645 WriteParam(m, p.user_style_sheet_location); 1645 WriteParam(m, p.user_style_sheet_location);
1646 WriteParam(m, p.uses_page_cache); 1646 WriteParam(m, p.uses_page_cache);
1647 WriteParam(m, p.remote_fonts_enabled); 1647 WriteParam(m, p.remote_fonts_enabled);
1648 WriteParam(m, p.xss_auditor_enabled); 1648 WriteParam(m, p.xss_auditor_enabled);
1649 WriteParam(m, p.local_storage_enabled); 1649 WriteParam(m, p.local_storage_enabled);
1650 WriteParam(m, p.databases_enabled); 1650 WriteParam(m, p.databases_enabled);
1651 WriteParam(m, p.session_storage_enabled); 1651 WriteParam(m, p.session_storage_enabled);
1652 WriteParam(m, p.application_cache_enabled); 1652 WriteParam(m, p.application_cache_enabled);
1653 WriteParam(m, p.experimental_webgl_enabled); 1653 WriteParam(m, p.experimental_webgl_enabled);
1654 WriteParam(m, p.experimental_notifications_enabled); 1654 WriteParam(m, p.experimental_notifications_enabled);
1655 WriteParam(m, p.web_sockets_enabled);
1655 } 1656 }
1656 static bool Read(const Message* m, void** iter, param_type* p) { 1657 static bool Read(const Message* m, void** iter, param_type* p) {
1657 return 1658 return
1658 ReadParam(m, iter, &p->standard_font_family) && 1659 ReadParam(m, iter, &p->standard_font_family) &&
1659 ReadParam(m, iter, &p->fixed_font_family) && 1660 ReadParam(m, iter, &p->fixed_font_family) &&
1660 ReadParam(m, iter, &p->serif_font_family) && 1661 ReadParam(m, iter, &p->serif_font_family) &&
1661 ReadParam(m, iter, &p->sans_serif_font_family) && 1662 ReadParam(m, iter, &p->sans_serif_font_family) &&
1662 ReadParam(m, iter, &p->cursive_font_family) && 1663 ReadParam(m, iter, &p->cursive_font_family) &&
1663 ReadParam(m, iter, &p->fantasy_font_family) && 1664 ReadParam(m, iter, &p->fantasy_font_family) &&
1664 ReadParam(m, iter, &p->default_font_size) && 1665 ReadParam(m, iter, &p->default_font_size) &&
(...skipping 16 matching lines...) Expand all
1681 ReadParam(m, iter, &p->user_style_sheet_enabled) && 1682 ReadParam(m, iter, &p->user_style_sheet_enabled) &&
1682 ReadParam(m, iter, &p->user_style_sheet_location) && 1683 ReadParam(m, iter, &p->user_style_sheet_location) &&
1683 ReadParam(m, iter, &p->uses_page_cache) && 1684 ReadParam(m, iter, &p->uses_page_cache) &&
1684 ReadParam(m, iter, &p->remote_fonts_enabled) && 1685 ReadParam(m, iter, &p->remote_fonts_enabled) &&
1685 ReadParam(m, iter, &p->xss_auditor_enabled) && 1686 ReadParam(m, iter, &p->xss_auditor_enabled) &&
1686 ReadParam(m, iter, &p->local_storage_enabled) && 1687 ReadParam(m, iter, &p->local_storage_enabled) &&
1687 ReadParam(m, iter, &p->databases_enabled) && 1688 ReadParam(m, iter, &p->databases_enabled) &&
1688 ReadParam(m, iter, &p->session_storage_enabled) && 1689 ReadParam(m, iter, &p->session_storage_enabled) &&
1689 ReadParam(m, iter, &p->application_cache_enabled) && 1690 ReadParam(m, iter, &p->application_cache_enabled) &&
1690 ReadParam(m, iter, &p->experimental_webgl_enabled) && 1691 ReadParam(m, iter, &p->experimental_webgl_enabled) &&
1691 ReadParam(m, iter, &p->experimental_notifications_enabled); 1692 ReadParam(m, iter, &p->experimental_notifications_enabled) &&
1693 ReadParam(m, iter, &p->web_sockets_enabled);
1692 } 1694 }
1693 static void Log(const param_type& p, std::wstring* l) { 1695 static void Log(const param_type& p, std::wstring* l) {
1694 l->append(L"<WebPreferences>"); 1696 l->append(L"<WebPreferences>");
1695 } 1697 }
1696 }; 1698 };
1697 1699
1698 // Traits for WebDropData 1700 // Traits for WebDropData
1699 template <> 1701 template <>
1700 struct ParamTraits<WebDropData> { 1702 struct ParamTraits<WebDropData> {
1701 typedef WebDropData param_type; 1703 typedef WebDropData param_type;
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
2243 } 2245 }
2244 }; 2246 };
2245 2247
2246 } // namespace IPC 2248 } // namespace IPC
2247 2249
2248 2250
2249 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" 2251 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h"
2250 #include "ipc/ipc_message_macros.h" 2252 #include "ipc/ipc_message_macros.h"
2251 2253
2252 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 2254 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | webkit/api/public/WebSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698