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

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

Issue 25531002: Move language detection to a component (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add a README Created 7 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
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 #include "chrome/common/extensions/permissions/socket_permission.h" 102 #include "chrome/common/extensions/permissions/socket_permission.h"
103 #include "chrome/common/extensions/web_accessible_resources_handler.h" 103 #include "chrome/common/extensions/web_accessible_resources_handler.h"
104 #include "chrome/common/logging_chrome.h" 104 #include "chrome/common/logging_chrome.h"
105 #include "chrome/common/pepper_permission_util.h" 105 #include "chrome/common/pepper_permission_util.h"
106 #include "chrome/common/pref_names.h" 106 #include "chrome/common/pref_names.h"
107 #include "chrome/common/render_messages.h" 107 #include "chrome/common/render_messages.h"
108 #include "chrome/common/url_constants.h" 108 #include "chrome/common/url_constants.h"
109 #include "chrome/installer/util/google_update_settings.h" 109 #include "chrome/installer/util/google_update_settings.h"
110 #include "chromeos/chromeos_constants.h" 110 #include "chromeos/chromeos_constants.h"
111 #include "components/nacl/common/nacl_process_type.h" 111 #include "components/nacl/common/nacl_process_type.h"
112 #include "components/translate/common/translate_switches.h"
112 #include "components/user_prefs/pref_registry_syncable.h" 113 #include "components/user_prefs/pref_registry_syncable.h"
113 #include "content/public/browser/browser_child_process_host.h" 114 #include "content/public/browser/browser_child_process_host.h"
114 #include "content/public/browser/browser_main_parts.h" 115 #include "content/public/browser/browser_main_parts.h"
115 #include "content/public/browser/browser_ppapi_host.h" 116 #include "content/public/browser/browser_ppapi_host.h"
116 #include "content/public/browser/browser_thread.h" 117 #include "content/public/browser/browser_thread.h"
117 #include "content/public/browser/browser_url_handler.h" 118 #include "content/public/browser/browser_url_handler.h"
118 #include "content/public/browser/child_process_data.h" 119 #include "content/public/browser/child_process_data.h"
119 #include "content/public/browser/child_process_security_policy.h" 120 #include "content/public/browser/child_process_security_policy.h"
120 #include "content/public/browser/render_process_host.h" 121 #include "content/public/browser/render_process_host.h"
121 #include "content/public/browser/render_view_host.h" 122 #include "content/public/browser/render_view_host.h"
(...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 switches::kPpapiFlashArgs, 1445 switches::kPpapiFlashArgs,
1445 switches::kPpapiFlashInProcess, 1446 switches::kPpapiFlashInProcess,
1446 switches::kPpapiFlashPath, 1447 switches::kPpapiFlashPath,
1447 switches::kPpapiFlashVersion, 1448 switches::kPpapiFlashVersion,
1448 switches::kProfilingAtStart, 1449 switches::kProfilingAtStart,
1449 switches::kProfilingFile, 1450 switches::kProfilingFile,
1450 switches::kProfilingFlush, 1451 switches::kProfilingFlush,
1451 switches::kRecordMode, 1452 switches::kRecordMode,
1452 switches::kSilentDumpOnDCHECK, 1453 switches::kSilentDumpOnDCHECK,
1453 switches::kSpdyProxyAuthOrigin, 1454 switches::kSpdyProxyAuthOrigin,
1454 switches::kTranslateSecurityOrigin,
1455 switches::kWhitelistedExtensionID, 1455 switches::kWhitelistedExtensionID,
1456 translate::switches::kTranslateSecurityOrigin,
1456 }; 1457 };
1457 1458
1458 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames, 1459 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
1459 arraysize(kSwitchNames)); 1460 arraysize(kSwitchNames));
1460 } else if (process_type == switches::kUtilityProcess) { 1461 } else if (process_type == switches::kUtilityProcess) {
1461 static const char* const kSwitchNames[] = { 1462 static const char* const kSwitchNames[] = {
1462 extensions::switches::kEnableExperimentalExtensionApis, 1463 extensions::switches::kEnableExperimentalExtensionApis,
1463 extensions::switches::kExtensionsOnChromeURLs, 1464 extensions::switches::kExtensionsOnChromeURLs,
1464 switches::kAllowHTTPBackgroundPage, 1465 switches::kAllowHTTPBackgroundPage,
1465 switches::kWhitelistedExtensionID, 1466 switches::kWhitelistedExtensionID,
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after
2540 #if defined(USE_NSS) 2541 #if defined(USE_NSS)
2541 crypto::CryptoModuleBlockingPasswordDelegate* 2542 crypto::CryptoModuleBlockingPasswordDelegate*
2542 ChromeContentBrowserClient::GetCryptoPasswordDelegate( 2543 ChromeContentBrowserClient::GetCryptoPasswordDelegate(
2543 const GURL& url) { 2544 const GURL& url) {
2544 return chrome::NewCryptoModuleBlockingDialogDelegate( 2545 return chrome::NewCryptoModuleBlockingDialogDelegate(
2545 chrome::kCryptoModulePasswordKeygen, url.host()); 2546 chrome::kCryptoModulePasswordKeygen, url.host());
2546 } 2547 }
2547 #endif 2548 #endif
2548 2549
2549 } // namespace chrome 2550 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698