Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: content/browser/mock_content_browser_client.h

Issue 7779040: Start moving code from BrowserMain to content, so that it can be reused by all embedders of conte... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix windows unittest Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "content/browser/content_browser_client.h" 12 #include "content/browser/content_browser_client.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 // Base for unit tests that need to mock the ContentBrowserClient. 16 // Base for unit tests that need to mock the ContentBrowserClient.
17 class MockContentBrowserClient : public ContentBrowserClient { 17 class MockContentBrowserClient : public ContentBrowserClient {
18 public: 18 public:
19 virtual ~MockContentBrowserClient(); 19 virtual ~MockContentBrowserClient();
20 20
21 virtual BrowserMainParts* CreateBrowserMainParts(
22 const MainFunctionParams& parameters) OVERRIDE;
21 virtual TabContentsView* CreateTabContentsView( 23 virtual TabContentsView* CreateTabContentsView(
22 TabContents* tab_contents) OVERRIDE; 24 TabContents* tab_contents) OVERRIDE;
23 virtual void RenderViewHostCreated( 25 virtual void RenderViewHostCreated(
24 RenderViewHost* render_view_host) OVERRIDE; 26 RenderViewHost* render_view_host) OVERRIDE;
25 virtual void BrowserRenderProcessHostCreated( 27 virtual void BrowserRenderProcessHostCreated(
26 BrowserRenderProcessHost* host) OVERRIDE; 28 BrowserRenderProcessHost* host) OVERRIDE;
27 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; 29 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE;
28 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) OVERRIDE; 30 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) OVERRIDE;
29 virtual WebUIFactory* GetWebUIFactory() OVERRIDE; 31 virtual WebUIFactory* GetWebUIFactory() OVERRIDE;
30 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, 32 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 #if defined(USE_NSS) 134 #if defined(USE_NSS)
133 virtual 135 virtual
134 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 136 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
135 const GURL& url) OVERRIDE; 137 const GURL& url) OVERRIDE;
136 #endif 138 #endif
137 }; 139 };
138 140
139 } // namespace content 141 } // namespace content
140 142
141 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ 143 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698