| 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 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 TabContentsView* MockContentBrowserClient::CreateTabContentsView( | 36 TabContentsView* MockContentBrowserClient::CreateTabContentsView( |
| 37 TabContents* tab_contents) { | 37 TabContents* tab_contents) { |
| 38 return new TestTabContentsView; | 38 return new TestTabContentsView; |
| 39 } | 39 } |
| 40 | 40 |
| 41 void MockContentBrowserClient::RenderViewHostCreated( | 41 void MockContentBrowserClient::RenderViewHostCreated( |
| 42 RenderViewHost* render_view_host) { | 42 RenderViewHost* render_view_host) { |
| 43 } | 43 } |
| 44 | 44 |
| 45 void MockContentBrowserClient::BrowserRenderProcessHostCreated( | 45 void MockContentBrowserClient::RenderProcessHostCreated( |
| 46 BrowserRenderProcessHost* host) { | 46 RenderProcessHost* host) { |
| 47 } | 47 } |
| 48 | 48 |
| 49 void MockContentBrowserClient::PluginProcessHostCreated( | 49 void MockContentBrowserClient::PluginProcessHostCreated( |
| 50 PluginProcessHost* host) { | 50 PluginProcessHost* host) { |
| 51 } | 51 } |
| 52 | 52 |
| 53 WebUIFactory* MockContentBrowserClient::GetWebUIFactory() { | 53 WebUIFactory* MockContentBrowserClient::GetWebUIFactory() { |
| 54 // Return an empty factory so callsites don't have to check for NULL. | 54 // Return an empty factory so callsites don't have to check for NULL. |
| 55 return EmptyWebUIFactory::GetInstance(); | 55 return EmptyWebUIFactory::GetInstance(); |
| 56 } | 56 } |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 #endif | 317 #endif |
| 318 | 318 |
| 319 #if defined(USE_NSS) | 319 #if defined(USE_NSS) |
| 320 crypto::CryptoModuleBlockingPasswordDelegate* | 320 crypto::CryptoModuleBlockingPasswordDelegate* |
| 321 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 321 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
| 322 return NULL; | 322 return NULL; |
| 323 } | 323 } |
| 324 #endif | 324 #endif |
| 325 | 325 |
| 326 } // namespace content | 326 } // namespace content |
| OLD | NEW |