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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 158 |
159 namespace { | 159 namespace { |
160 | 160 |
161 const char* kPredefinedAllowedSocketOrigins[] = { | 161 const char* kPredefinedAllowedSocketOrigins[] = { |
162 "okddffdblfhhnmhodogpojmfkjmhinfp", // Test SSH Client | 162 "okddffdblfhhnmhodogpojmfkjmhinfp", // Test SSH Client |
163 "pnhechapfaindjhompbnflcldabbghjo", // HTerm App (SSH Client) | 163 "pnhechapfaindjhompbnflcldabbghjo", // HTerm App (SSH Client) |
164 "bglhmjfplikpjnfoegeomebmfnkjomhe", // see crbug.com/122126 | 164 "bglhmjfplikpjnfoegeomebmfnkjomhe", // see crbug.com/122126 |
165 "gbchcmhmhahfdphkhkmpfmihenigjmpp", // Chrome Remote Desktop | 165 "gbchcmhmhahfdphkhkmpfmihenigjmpp", // Chrome Remote Desktop |
166 "kgngmbheleoaphbjbaiobfdepmghbfah", // Pre-release Chrome Remote Desktop | 166 "kgngmbheleoaphbjbaiobfdepmghbfah", // Pre-release Chrome Remote Desktop |
167 "odkaodonbgfohohmklejpjiejmcipmib", // Dogfood Chrome Remote Desktop | 167 "odkaodonbgfohohmklejpjiejmcipmib", // Dogfood Chrome Remote Desktop |
168 "ojoimpklfciegopdfgeenehpalipignm" // Chromoting canary | 168 "ojoimpklfciegopdfgeenehpalipignm", // Chromoting canary |
| 169 "cbkkbcmdlboombapidmoeolnmdacpkch" // see crbug.com/129089 |
169 }; | 170 }; |
170 | 171 |
171 // Handles rewriting Web UI URLs. | 172 // Handles rewriting Web UI URLs. |
172 bool HandleWebUI(GURL* url, content::BrowserContext* browser_context) { | 173 bool HandleWebUI(GURL* url, content::BrowserContext* browser_context) { |
173 if (!ChromeWebUIControllerFactory::GetInstance()->UseWebUIForURL( | 174 if (!ChromeWebUIControllerFactory::GetInstance()->UseWebUIForURL( |
174 browser_context, *url)) | 175 browser_context, *url)) |
175 return false; | 176 return false; |
176 | 177 |
177 #if defined(OS_CHROMEOS) | 178 #if defined(OS_CHROMEOS) |
178 // Special case : in ChromeOS in Guest mode bookmarks and history are | 179 // Special case : in ChromeOS in Guest mode bookmarks and history are |
(...skipping 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1618 #if defined(USE_NSS) | 1619 #if defined(USE_NSS) |
1619 crypto::CryptoModuleBlockingPasswordDelegate* | 1620 crypto::CryptoModuleBlockingPasswordDelegate* |
1620 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 1621 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
1621 const GURL& url) { | 1622 const GURL& url) { |
1622 return browser::NewCryptoModuleBlockingDialogDelegate( | 1623 return browser::NewCryptoModuleBlockingDialogDelegate( |
1623 browser::kCryptoModulePasswordKeygen, url.host()); | 1624 browser::kCryptoModulePasswordKeygen, url.host()); |
1624 } | 1625 } |
1625 #endif | 1626 #endif |
1626 | 1627 |
1627 } // namespace chrome | 1628 } // namespace chrome |
OLD | NEW |