| 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 "content/public/browser/content_browser_client.h" | 5 #include "content/public/browser/content_browser_client.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" |
| 7 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "content/public/common/content_switches.h" |
| 10 #include "content/public/common/url_constants.h" |
| 8 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
| 9 #include "ui/gfx/image/image_skia.h" | 12 #include "ui/gfx/image/image_skia.h" |
| 10 | 13 |
| 11 namespace content { | 14 namespace content { |
| 12 | 15 |
| 13 BrowserMainParts* ContentBrowserClient::CreateBrowserMainParts( | 16 BrowserMainParts* ContentBrowserClient::CreateBrowserMainParts( |
| 14 const MainFunctionParams& parameters) { | 17 const MainFunctionParams& parameters) { |
| 15 return NULL; | 18 return NULL; |
| 16 } | 19 } |
| 17 | 20 |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 | 263 |
| 261 base::FilePath ContentBrowserClient::GetHyphenDictionaryDirectory() { | 264 base::FilePath ContentBrowserClient::GetHyphenDictionaryDirectory() { |
| 262 return base::FilePath(); | 265 return base::FilePath(); |
| 263 } | 266 } |
| 264 | 267 |
| 265 ui::SelectFilePolicy* ContentBrowserClient::CreateSelectFilePolicy( | 268 ui::SelectFilePolicy* ContentBrowserClient::CreateSelectFilePolicy( |
| 266 WebContents* web_contents) { | 269 WebContents* web_contents) { |
| 267 return NULL; | 270 return NULL; |
| 268 } | 271 } |
| 269 | 272 |
| 273 std::vector<std::string> |
| 274 ContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem() { |
| 275 std::vector<std::string> additional_allowed_schemes; |
| 276 if (CommandLine::ForCurrentProcess()->HasSwitch( |
| 277 switches::kAllowFileAccessFromFiles)) { |
| 278 additional_allowed_schemes.push_back(chrome::kFileScheme); |
| 279 } |
| 280 return additional_allowed_schemes; |
| 281 } |
| 282 |
| 270 #if defined(OS_WIN) | 283 #if defined(OS_WIN) |
| 271 const wchar_t* ContentBrowserClient::GetResourceDllName() { | 284 const wchar_t* ContentBrowserClient::GetResourceDllName() { |
| 272 return NULL; | 285 return NULL; |
| 273 } | 286 } |
| 274 #endif | 287 #endif |
| 275 | 288 |
| 276 #if defined(USE_NSS) | 289 #if defined(USE_NSS) |
| 277 crypto::CryptoModuleBlockingPasswordDelegate* | 290 crypto::CryptoModuleBlockingPasswordDelegate* |
| 278 ContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 291 ContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
| 279 return NULL; | 292 return NULL; |
| 280 } | 293 } |
| 281 #endif | 294 #endif |
| 282 | 295 |
| 283 } // namespace content | 296 } // namespace content |
| OLD | NEW |