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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 357203003: Move webpreferences.* from webkit/ to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RenderView::FromWebView Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 #include "content/public/browser/child_process_security_policy.h" 116 #include "content/public/browser/child_process_security_policy.h"
117 #include "content/public/browser/render_frame_host.h" 117 #include "content/public/browser/render_frame_host.h"
118 #include "content/public/browser/render_process_host.h" 118 #include "content/public/browser/render_process_host.h"
119 #include "content/public/browser/render_view_host.h" 119 #include "content/public/browser/render_view_host.h"
120 #include "content/public/browser/resource_context.h" 120 #include "content/public/browser/resource_context.h"
121 #include "content/public/browser/site_instance.h" 121 #include "content/public/browser/site_instance.h"
122 #include "content/public/browser/web_contents.h" 122 #include "content/public/browser/web_contents.h"
123 #include "content/public/common/child_process_host.h" 123 #include "content/public/common/child_process_host.h"
124 #include "content/public/common/content_descriptors.h" 124 #include "content/public/common/content_descriptors.h"
125 #include "content/public/common/url_utils.h" 125 #include "content/public/common/url_utils.h"
126 #include "content/public/common/web_preferences.h"
126 #include "extensions/browser/extension_host.h" 127 #include "extensions/browser/extension_host.h"
127 #include "extensions/browser/extension_message_filter.h" 128 #include "extensions/browser/extension_message_filter.h"
128 #include "extensions/browser/extension_registry.h" 129 #include "extensions/browser/extension_registry.h"
129 #include "extensions/browser/extension_system.h" 130 #include "extensions/browser/extension_system.h"
130 #include "extensions/browser/info_map.h" 131 #include "extensions/browser/info_map.h"
131 #include "extensions/browser/process_manager.h" 132 #include "extensions/browser/process_manager.h"
132 #include "extensions/browser/process_map.h" 133 #include "extensions/browser/process_map.h"
133 #include "extensions/browser/view_type_utils.h" 134 #include "extensions/browser/view_type_utils.h"
134 #include "extensions/common/constants.h" 135 #include "extensions/common/constants.h"
135 #include "extensions/common/extension.h" 136 #include "extensions/common/extension.h"
136 #include "extensions/common/extension_set.h" 137 #include "extensions/common/extension_set.h"
137 #include "extensions/common/manifest_handlers/background_info.h" 138 #include "extensions/common/manifest_handlers/background_info.h"
138 #include "extensions/common/manifest_handlers/shared_module_info.h" 139 #include "extensions/common/manifest_handlers/shared_module_info.h"
139 #include "extensions/common/manifest_handlers/web_accessible_resources_info.h" 140 #include "extensions/common/manifest_handlers/web_accessible_resources_info.h"
140 #include "extensions/common/permissions/permissions_data.h" 141 #include "extensions/common/permissions/permissions_data.h"
141 #include "extensions/common/permissions/socket_permission.h" 142 #include "extensions/common/permissions/socket_permission.h"
142 #include "extensions/common/switches.h" 143 #include "extensions/common/switches.h"
143 #include "grit/generated_resources.h" 144 #include "grit/generated_resources.h"
144 #include "grit/ui_resources.h" 145 #include "grit/ui_resources.h"
145 #include "net/base/mime_util.h" 146 #include "net/base/mime_util.h"
146 #include "net/cookies/canonical_cookie.h" 147 #include "net/cookies/canonical_cookie.h"
147 #include "net/cookies/cookie_options.h" 148 #include "net/cookies/cookie_options.h"
148 #include "net/ssl/ssl_cert_request_info.h" 149 #include "net/ssl/ssl_cert_request_info.h"
149 #include "ppapi/host/ppapi_host.h" 150 #include "ppapi/host/ppapi_host.h"
150 #include "ppapi/shared_impl/ppapi_switches.h" 151 #include "ppapi/shared_impl/ppapi_switches.h"
151 #include "ui/base/l10n/l10n_util.h" 152 #include "ui/base/l10n/l10n_util.h"
152 #include "ui/base/resource/resource_bundle.h" 153 #include "ui/base/resource/resource_bundle.h"
153 #include "webkit/browser/fileapi/external_mount_points.h" 154 #include "webkit/browser/fileapi/external_mount_points.h"
154 #include "webkit/common/webpreferences.h"
155 155
156 #if defined(OS_WIN) 156 #if defined(OS_WIN)
157 #include "base/win/windows_version.h" 157 #include "base/win/windows_version.h"
158 #include "chrome/browser/chrome_browser_main_win.h" 158 #include "chrome/browser/chrome_browser_main_win.h"
159 #include "sandbox/win/src/sandbox_policy.h" 159 #include "sandbox/win/src/sandbox_policy.h"
160 #elif defined(OS_MACOSX) 160 #elif defined(OS_MACOSX)
161 #include "chrome/browser/chrome_browser_main_mac.h" 161 #include "chrome/browser/chrome_browser_main_mac.h"
162 #include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h" 162 #include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h"
163 #include "components/breakpad/app/breakpad_mac.h" 163 #include "components/breakpad/app/breakpad_mac.h"
164 #elif defined(OS_CHROMEOS) 164 #elif defined(OS_CHROMEOS)
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 using content::AccessTokenStore; 256 using content::AccessTokenStore;
257 using content::BrowserChildProcessHostIterator; 257 using content::BrowserChildProcessHostIterator;
258 using content::BrowserThread; 258 using content::BrowserThread;
259 using content::BrowserURLHandler; 259 using content::BrowserURLHandler;
260 using content::ChildProcessSecurityPolicy; 260 using content::ChildProcessSecurityPolicy;
261 using content::QuotaPermissionContext; 261 using content::QuotaPermissionContext;
262 using content::RenderFrameHost; 262 using content::RenderFrameHost;
263 using content::RenderViewHost; 263 using content::RenderViewHost;
264 using content::SiteInstance; 264 using content::SiteInstance;
265 using content::WebContents; 265 using content::WebContents;
266 using content::WebPreferences;
266 using extensions::APIPermission; 267 using extensions::APIPermission;
267 using extensions::Extension; 268 using extensions::Extension;
268 using extensions::InfoMap; 269 using extensions::InfoMap;
269 using extensions::Manifest; 270 using extensions::Manifest;
270 using message_center::NotifierId; 271 using message_center::NotifierId;
271 272
272 #if defined(OS_POSIX) 273 #if defined(OS_POSIX)
273 using content::FileDescriptorInfo; 274 using content::FileDescriptorInfo;
274 #endif 275 #endif
275 276
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 (cert.issuer().common_name == common_name)) { 491 (cert.issuer().common_name == common_name)) {
491 return true; 492 return true;
492 } 493 }
493 return false; 494 return false;
494 } 495 }
495 496
496 #if !defined(OS_ANDROID) 497 #if !defined(OS_ANDROID)
497 // Fills |map| with the per-script font prefs under path |map_name|. 498 // Fills |map| with the per-script font prefs under path |map_name|.
498 void FillFontFamilyMap(const PrefService* prefs, 499 void FillFontFamilyMap(const PrefService* prefs,
499 const char* map_name, 500 const char* map_name,
500 webkit_glue::ScriptFontFamilyMap* map) { 501 content::ScriptFontFamilyMap* map) {
501 // TODO(falken): Get rid of the brute-force scan over possible 502 // TODO(falken): Get rid of the brute-force scan over possible
502 // (font family / script) combinations - see http://crbug.com/308095. 503 // (font family / script) combinations - see http://crbug.com/308095.
503 for (size_t i = 0; i < prefs::kWebKitScriptsForFontFamilyMapsLength; ++i) { 504 for (size_t i = 0; i < prefs::kWebKitScriptsForFontFamilyMapsLength; ++i) {
504 const char* script = prefs::kWebKitScriptsForFontFamilyMaps[i]; 505 const char* script = prefs::kWebKitScriptsForFontFamilyMaps[i];
505 std::string pref_name = base::StringPrintf("%s.%s", map_name, script); 506 std::string pref_name = base::StringPrintf("%s.%s", map_name, script);
506 std::string font_family = prefs->GetString(pref_name.c_str()); 507 std::string font_family = prefs->GetString(pref_name.c_str());
507 if (!font_family.empty()) 508 if (!font_family.empty())
508 (*map)[script] = base::UTF8ToUTF16(font_family); 509 (*map)[script] = base::UTF8ToUTF16(font_family);
509 } 510 }
510 } 511 }
(...skipping 2288 matching lines...) Expand 10 before | Expand all | Expand 10 after
2799 switches::kDisableWebRtcEncryption, 2800 switches::kDisableWebRtcEncryption,
2800 }; 2801 };
2801 to_command_line->CopySwitchesFrom(from_command_line, 2802 to_command_line->CopySwitchesFrom(from_command_line,
2802 kWebRtcDevSwitchNames, 2803 kWebRtcDevSwitchNames,
2803 arraysize(kWebRtcDevSwitchNames)); 2804 arraysize(kWebRtcDevSwitchNames));
2804 } 2805 }
2805 } 2806 }
2806 #endif // defined(ENABLE_WEBRTC) 2807 #endif // defined(ENABLE_WEBRTC)
2807 2808
2808 } // namespace chrome 2809 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698