| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 bool MockContentBrowserClient::ShouldUseProcessPerSite( | 62 bool MockContentBrowserClient::ShouldUseProcessPerSite( |
| 63 BrowserContext* browser_context, const GURL& effective_url) { | 63 BrowserContext* browser_context, const GURL& effective_url) { |
| 64 return false; | 64 return false; |
| 65 } | 65 } |
| 66 | 66 |
| 67 bool MockContentBrowserClient::IsURLSameAsAnySiteInstance(const GURL& url) { | 67 bool MockContentBrowserClient::IsURLSameAsAnySiteInstance(const GURL& url) { |
| 68 return false; | 68 return false; |
| 69 } | 69 } |
| 70 | 70 |
| 71 bool MockContentBrowserClient::ShouldRunInPrivilegedProcess(const GURL& url) { |
| 72 return false; |
| 73 } |
| 74 |
| 75 bool MockContentBrowserClient::IsSuitableHost( |
| 76 RenderProcessHost* process_host, |
| 77 const GURL& site_url) { |
| 78 return true; |
| 79 } |
| 80 |
| 71 std::string MockContentBrowserClient::GetCanonicalEncodingNameByAliasName( | 81 std::string MockContentBrowserClient::GetCanonicalEncodingNameByAliasName( |
| 72 const std::string& alias_name) { | 82 const std::string& alias_name) { |
| 73 return std::string(); | 83 return std::string(); |
| 74 } | 84 } |
| 75 | 85 |
| 76 void MockContentBrowserClient::AppendExtraCommandLineSwitches( | 86 void MockContentBrowserClient::AppendExtraCommandLineSwitches( |
| 77 CommandLine* command_line, int child_process_id) { | 87 CommandLine* command_line, int child_process_id) { |
| 78 } | 88 } |
| 79 | 89 |
| 80 std::string MockContentBrowserClient::GetApplicationLocale() { | 90 std::string MockContentBrowserClient::GetApplicationLocale() { |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 #endif | 295 #endif |
| 286 | 296 |
| 287 #if defined(USE_NSS) | 297 #if defined(USE_NSS) |
| 288 crypto::CryptoModuleBlockingPasswordDelegate* | 298 crypto::CryptoModuleBlockingPasswordDelegate* |
| 289 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 299 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
| 290 return NULL; | 300 return NULL; |
| 291 } | 301 } |
| 292 #endif | 302 #endif |
| 293 | 303 |
| 294 } // namespace content | 304 } // namespace content |
| OLD | NEW |