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

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

Issue 13415006: Do not refer "chrome" in content/browser/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 2070 matching lines...) Expand 10 before | Expand all | Expand 10 after
2081 base::FilePath directory; 2081 base::FilePath directory;
2082 PathService::Get(chrome::DIR_APP_DICTIONARIES, &directory); 2082 PathService::Get(chrome::DIR_APP_DICTIONARIES, &directory);
2083 return directory.Append(FILE_PATH_LITERAL("Hyphen")); 2083 return directory.Append(FILE_PATH_LITERAL("Hyphen"));
2084 } 2084 }
2085 2085
2086 ui::SelectFilePolicy* ChromeContentBrowserClient::CreateSelectFilePolicy( 2086 ui::SelectFilePolicy* ChromeContentBrowserClient::CreateSelectFilePolicy(
2087 WebContents* web_contents) { 2087 WebContents* web_contents) {
2088 return new ChromeSelectFilePolicy(web_contents); 2088 return new ChromeSelectFilePolicy(web_contents);
2089 } 2089 }
2090 2090
2091 void ChromeContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem(
2092 std::vector<std::string>* additional_allowed_schemes) {
2093 ContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem(
2094 additional_allowed_schemes);
2095 additional_allowed_schemes->push_back(kChromeUIScheme);
2096 additional_allowed_schemes->push_back(extensions::kExtensionScheme);
2097 }
2098
2091 #if defined(OS_POSIX) && !defined(OS_MACOSX) 2099 #if defined(OS_POSIX) && !defined(OS_MACOSX)
2092 void ChromeContentBrowserClient::GetAdditionalMappedFilesForChildProcess( 2100 void ChromeContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
2093 const CommandLine& command_line, 2101 const CommandLine& command_line,
2094 int child_process_id, 2102 int child_process_id,
2095 std::vector<FileDescriptorInfo>* mappings) { 2103 std::vector<FileDescriptorInfo>* mappings) {
2096 #if defined(OS_ANDROID) 2104 #if defined(OS_ANDROID)
2097 base::FilePath data_path; 2105 base::FilePath data_path;
2098 PathService::Get(ui::DIR_RESOURCE_PAKS_ANDROID, &data_path); 2106 PathService::Get(ui::DIR_RESOURCE_PAKS_ANDROID, &data_path);
2099 DCHECK(!data_path.empty()); 2107 DCHECK(!data_path.empty());
2100 2108
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
2188 #if defined(USE_NSS) 2196 #if defined(USE_NSS)
2189 crypto::CryptoModuleBlockingPasswordDelegate* 2197 crypto::CryptoModuleBlockingPasswordDelegate*
2190 ChromeContentBrowserClient::GetCryptoPasswordDelegate( 2198 ChromeContentBrowserClient::GetCryptoPasswordDelegate(
2191 const GURL& url) { 2199 const GURL& url) {
2192 return chrome::NewCryptoModuleBlockingDialogDelegate( 2200 return chrome::NewCryptoModuleBlockingDialogDelegate(
2193 chrome::kCryptoModulePasswordKeygen, url.host()); 2201 chrome::kCryptoModulePasswordKeygen, url.host());
2194 } 2202 }
2195 #endif 2203 #endif
2196 2204
2197 } // namespace chrome 2205 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | content/browser/fileapi/browser_file_system_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698