| 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 #ifndef CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "content/browser/content_browser_client.h" | 10 #include "content/browser/content_browser_client.h" |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 | 13 |
| 14 // Base for unit tests that need to mock the ContentBrowserClient. | 14 // Base for unit tests that need to mock the ContentBrowserClient. |
| 15 class MockContentBrowserClient : public ContentBrowserClient { | 15 class MockContentBrowserClient : public ContentBrowserClient { |
| 16 public: | 16 public: |
| 17 virtual ~MockContentBrowserClient(); | 17 virtual ~MockContentBrowserClient(); |
| 18 | 18 |
| 19 virtual TabContentsView* CreateTabContentsView( |
| 20 TabContents* tab_contents) OVERRIDE; |
| 19 virtual void RenderViewHostCreated( | 21 virtual void RenderViewHostCreated( |
| 20 RenderViewHost* render_view_host) OVERRIDE; | 22 RenderViewHost* render_view_host) OVERRIDE; |
| 21 virtual void BrowserRenderProcessHostCreated( | 23 virtual void BrowserRenderProcessHostCreated( |
| 22 BrowserRenderProcessHost* host) OVERRIDE; | 24 BrowserRenderProcessHost* host) OVERRIDE; |
| 23 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; | 25 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; |
| 24 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) OVERRIDE; | 26 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) OVERRIDE; |
| 25 virtual WebUIFactory* GetWebUIFactory() OVERRIDE; | 27 virtual WebUIFactory* GetWebUIFactory() OVERRIDE; |
| 26 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, | 28 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, |
| 27 const GURL& url) OVERRIDE; | 29 const GURL& url) OVERRIDE; |
| 28 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, | 30 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 #if defined(USE_NSS) | 123 #if defined(USE_NSS) |
| 122 virtual | 124 virtual |
| 123 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 125 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 124 const GURL& url) OVERRIDE; | 126 const GURL& url) OVERRIDE; |
| 125 #endif | 127 #endif |
| 126 }; | 128 }; |
| 127 | 129 |
| 128 } // namespace content | 130 } // namespace content |
| 129 | 131 |
| 130 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ | 132 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |