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::IsSuitableHost( |
| 72 RenderProcessHost* process_host, |
| 73 const GURL& site_url) { |
| 74 return true; |
| 75 } |
| 76 |
71 std::string MockContentBrowserClient::GetCanonicalEncodingNameByAliasName( | 77 std::string MockContentBrowserClient::GetCanonicalEncodingNameByAliasName( |
72 const std::string& alias_name) { | 78 const std::string& alias_name) { |
73 return std::string(); | 79 return std::string(); |
74 } | 80 } |
75 | 81 |
76 void MockContentBrowserClient::AppendExtraCommandLineSwitches( | 82 void MockContentBrowserClient::AppendExtraCommandLineSwitches( |
77 CommandLine* command_line, int child_process_id) { | 83 CommandLine* command_line, int child_process_id) { |
78 } | 84 } |
79 | 85 |
80 std::string MockContentBrowserClient::GetApplicationLocale() { | 86 std::string MockContentBrowserClient::GetApplicationLocale() { |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 #endif | 291 #endif |
286 | 292 |
287 #if defined(USE_NSS) | 293 #if defined(USE_NSS) |
288 crypto::CryptoModuleBlockingPasswordDelegate* | 294 crypto::CryptoModuleBlockingPasswordDelegate* |
289 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 295 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
290 return NULL; | 296 return NULL; |
291 } | 297 } |
292 #endif | 298 #endif |
293 | 299 |
294 } // namespace content | 300 } // namespace content |
OLD | NEW |