OLD | NEW |
---|---|
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 Loading... | |
102 #include "chrome/common/extensions/permissions/permissions_data.h" | 102 #include "chrome/common/extensions/permissions/permissions_data.h" |
103 #include "chrome/common/extensions/permissions/socket_permission.h" | 103 #include "chrome/common/extensions/permissions/socket_permission.h" |
104 #include "chrome/common/extensions/web_accessible_resources_handler.h" | 104 #include "chrome/common/extensions/web_accessible_resources_handler.h" |
105 #include "chrome/common/logging_chrome.h" | 105 #include "chrome/common/logging_chrome.h" |
106 #include "chrome/common/pepper_permission_util.h" | 106 #include "chrome/common/pepper_permission_util.h" |
107 #include "chrome/common/pref_names.h" | 107 #include "chrome/common/pref_names.h" |
108 #include "chrome/common/render_messages.h" | 108 #include "chrome/common/render_messages.h" |
109 #include "chrome/common/url_constants.h" | 109 #include "chrome/common/url_constants.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 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1445 switches::kPpapiFlashArgs, | 1446 switches::kPpapiFlashArgs, |
1446 switches::kPpapiFlashInProcess, | 1447 switches::kPpapiFlashInProcess, |
1447 switches::kPpapiFlashPath, | 1448 switches::kPpapiFlashPath, |
1448 switches::kPpapiFlashVersion, | 1449 switches::kPpapiFlashVersion, |
1449 switches::kProfilingAtStart, | 1450 switches::kProfilingAtStart, |
1450 switches::kProfilingFile, | 1451 switches::kProfilingFile, |
1451 switches::kProfilingFlush, | 1452 switches::kProfilingFlush, |
1452 switches::kRecordMode, | 1453 switches::kRecordMode, |
1453 switches::kSilentDumpOnDCHECK, | 1454 switches::kSilentDumpOnDCHECK, |
1454 switches::kSpdyProxyAuthOrigin, | 1455 switches::kSpdyProxyAuthOrigin, |
1455 switches::kTranslateSecurityOrigin, | |
1456 switches::kWhitelistedExtensionID, | 1456 switches::kWhitelistedExtensionID, |
1457 translate::kTranslateSecurityOrigin, | |
blundell
2013/10/02 10:01:17
Hmm, now that I look at this, I think that this sh
droger
2013/10/02 10:59:41
Done.
| |
1457 }; | 1458 }; |
1458 | 1459 |
1459 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 1460 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
1460 arraysize(kSwitchNames)); | 1461 arraysize(kSwitchNames)); |
1461 } else if (process_type == switches::kUtilityProcess) { | 1462 } else if (process_type == switches::kUtilityProcess) { |
1462 static const char* const kSwitchNames[] = { | 1463 static const char* const kSwitchNames[] = { |
1463 extensions::switches::kEnableExperimentalExtensionApis, | 1464 extensions::switches::kEnableExperimentalExtensionApis, |
1464 extensions::switches::kExtensionsOnChromeURLs, | 1465 extensions::switches::kExtensionsOnChromeURLs, |
1465 switches::kAllowHTTPBackgroundPage, | 1466 switches::kAllowHTTPBackgroundPage, |
1466 switches::kWhitelistedExtensionID, | 1467 switches::kWhitelistedExtensionID, |
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2541 #if defined(USE_NSS) | 2542 #if defined(USE_NSS) |
2542 crypto::CryptoModuleBlockingPasswordDelegate* | 2543 crypto::CryptoModuleBlockingPasswordDelegate* |
2543 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 2544 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
2544 const GURL& url) { | 2545 const GURL& url) { |
2545 return chrome::NewCryptoModuleBlockingDialogDelegate( | 2546 return chrome::NewCryptoModuleBlockingDialogDelegate( |
2546 chrome::kCryptoModulePasswordKeygen, url.host()); | 2547 chrome::kCryptoModulePasswordKeygen, url.host()); |
2547 } | 2548 } |
2548 #endif | 2549 #endif |
2549 | 2550 |
2550 } // namespace chrome | 2551 } // namespace chrome |
OLD | NEW |