| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser/mock_content_browser_client.h" | 5 #include "content/browser/mock_content_browser_client.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 FilePath MockContentBrowserClient::GetDefaultDownloadDirectory() { | 262 FilePath MockContentBrowserClient::GetDefaultDownloadDirectory() { |
| 263 if (!download_dir_.IsValid()) { | 263 if (!download_dir_.IsValid()) { |
| 264 bool result = download_dir_.CreateUniqueTempDir(); | 264 bool result = download_dir_.CreateUniqueTempDir(); |
| 265 CHECK(result); | 265 CHECK(result); |
| 266 } | 266 } |
| 267 return download_dir_.path(); | 267 return download_dir_.path(); |
| 268 } | 268 } |
| 269 | 269 |
| 270 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 270 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 271 int MockContentBrowserClient::GetCrashSignalFD( | 271 int MockContentBrowserClient::GetCrashSignalFD( |
| 272 const std::string& process_type) { | 272 const CommandLine* command_line) { |
| 273 return -1; | 273 return -1; |
| 274 } | 274 } |
| 275 #endif | 275 #endif |
| 276 | 276 |
| 277 #if defined(OS_WIN) | 277 #if defined(OS_WIN) |
| 278 const wchar_t* MockContentBrowserClient::GetResourceDllName() { | 278 const wchar_t* MockContentBrowserClient::GetResourceDllName() { |
| 279 return NULL; | 279 return NULL; |
| 280 } | 280 } |
| 281 #endif | 281 #endif |
| 282 | 282 |
| 283 #if defined(USE_NSS) | 283 #if defined(USE_NSS) |
| 284 crypto::CryptoModuleBlockingPasswordDelegate* | 284 crypto::CryptoModuleBlockingPasswordDelegate* |
| 285 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 285 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
| 286 return NULL; | 286 return NULL; |
| 287 } | 287 } |
| 288 #endif | 288 #endif |
| 289 | 289 |
| 290 } // namespace content | 290 } // namespace content |
| OLD | NEW |