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 2417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2428 } | 2428 } |
2429 | 2429 |
2430 // Allow both public and private APIs if the command line says so. | 2430 // Allow both public and private APIs if the command line says so. |
2431 return IsHostAllowedByCommandLine(url, extension_set, | 2431 return IsHostAllowedByCommandLine(url, extension_set, |
2432 switches::kAllowNaClSocketAPI); | 2432 switches::kAllowNaClSocketAPI); |
2433 #else | 2433 #else |
2434 return false; | 2434 return false; |
2435 #endif | 2435 #endif |
2436 } | 2436 } |
2437 | 2437 |
2438 base::FilePath ChromeContentBrowserClient::GetHyphenDictionaryDirectory() { | |
2439 base::FilePath directory; | |
2440 PathService::Get(chrome::DIR_APP_DICTIONARIES, &directory); | |
2441 return directory.Append(FILE_PATH_LITERAL("Hyphen")); | |
2442 } | |
2443 | |
2444 ui::SelectFilePolicy* ChromeContentBrowserClient::CreateSelectFilePolicy( | 2438 ui::SelectFilePolicy* ChromeContentBrowserClient::CreateSelectFilePolicy( |
2445 WebContents* web_contents) { | 2439 WebContents* web_contents) { |
2446 return new ChromeSelectFilePolicy(web_contents); | 2440 return new ChromeSelectFilePolicy(web_contents); |
2447 } | 2441 } |
2448 | 2442 |
2449 void ChromeContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem( | 2443 void ChromeContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem( |
2450 std::vector<std::string>* additional_allowed_schemes) { | 2444 std::vector<std::string>* additional_allowed_schemes) { |
2451 ContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem( | 2445 ContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem( |
2452 additional_allowed_schemes); | 2446 additional_allowed_schemes); |
2453 additional_allowed_schemes->push_back(kChromeUIScheme); | 2447 additional_allowed_schemes->push_back(kChromeUIScheme); |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2579 #if defined(USE_NSS) | 2573 #if defined(USE_NSS) |
2580 crypto::CryptoModuleBlockingPasswordDelegate* | 2574 crypto::CryptoModuleBlockingPasswordDelegate* |
2581 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 2575 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
2582 const GURL& url) { | 2576 const GURL& url) { |
2583 return chrome::NewCryptoModuleBlockingDialogDelegate( | 2577 return chrome::NewCryptoModuleBlockingDialogDelegate( |
2584 chrome::kCryptoModulePasswordKeygen, url.host()); | 2578 chrome::kCryptoModulePasswordKeygen, url.host()); |
2585 } | 2579 } |
2586 #endif | 2580 #endif |
2587 | 2581 |
2588 } // namespace chrome | 2582 } // namespace chrome |
OLD | NEW |