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/file_path.h" | 9 #include "base/file_path.h" |
10 #include "content/browser/webui/empty_web_ui_factory.h" | 10 #include "content/browser/webui/empty_web_ui_factory.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 void MockContentBrowserClient::PluginProcessHostCreated( | 34 void MockContentBrowserClient::PluginProcessHostCreated( |
35 PluginProcessHost* host) { | 35 PluginProcessHost* host) { |
36 } | 36 } |
37 | 37 |
38 void MockContentBrowserClient::WorkerProcessHostCreated( | 38 void MockContentBrowserClient::WorkerProcessHostCreated( |
39 WorkerProcessHost* host) { | 39 WorkerProcessHost* host) { |
40 } | 40 } |
41 | 41 |
42 WebUIFactory* MockContentBrowserClient::GetWebUIFactory() { | 42 WebUIFactory* MockContentBrowserClient::GetWebUIFactory() { |
43 // Return an empty factory so callsites don't have to check for NULL. | 43 // Return an empty factory so callsites don't have to check for NULL. |
44 return EmptyWebUIFactory::Get(); | 44 return EmptyWebUIFactory::GetInstance(); |
45 } | 45 } |
46 | 46 |
47 GURL MockContentBrowserClient::GetEffectiveURL( | 47 GURL MockContentBrowserClient::GetEffectiveURL( |
48 content::BrowserContext* browser_context, const GURL& url) { | 48 content::BrowserContext* browser_context, const GURL& url) { |
49 return GURL(); | 49 return GURL(); |
50 } | 50 } |
51 | 51 |
52 bool MockContentBrowserClient::ShouldUseProcessPerSite( | 52 bool MockContentBrowserClient::ShouldUseProcessPerSite( |
53 BrowserContext* browser_context, const GURL& effective_url) { | 53 BrowserContext* browser_context, const GURL& effective_url) { |
54 return false; | 54 return false; |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 #endif | 270 #endif |
271 | 271 |
272 #if defined(USE_NSS) | 272 #if defined(USE_NSS) |
273 crypto::CryptoModuleBlockingPasswordDelegate* | 273 crypto::CryptoModuleBlockingPasswordDelegate* |
274 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 274 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
275 return NULL; | 275 return NULL; |
276 } | 276 } |
277 #endif | 277 #endif |
278 | 278 |
279 } // namespace content | 279 } // namespace content |
OLD | NEW |