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

Side by Side Diff: content/public/browser/render_process_host_factory.h

Issue 10510005: Hide TestRenderViewHostFactory from embedders since it depends on internal content classes. Expose … (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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_PUBLIC_BROWSER_RENDER_PROCESS_HOST_FACTORY_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_FACTORY_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_FACTORY_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_FACTORY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 10
11 namespace content { 11 namespace content {
12 class BrowserContext; 12 class BrowserContext;
13 class RenderProcessHost; 13 class RenderProcessHost;
14 }
15
16 namespace content {
17 14
18 // Factory object for RenderProcessHosts. Using this factory allows tests to 15 // Factory object for RenderProcessHosts. Using this factory allows tests to
19 // swap out a different one to use a TestRenderProcessHost. 16 // swap out a different one to use a TestRenderProcessHost.
20 class RenderProcessHostFactory { 17 class RenderProcessHostFactory {
21 public: 18 public:
22 virtual ~RenderProcessHostFactory() {} 19 virtual ~RenderProcessHostFactory() {}
23 virtual RenderProcessHost* CreateRenderProcessHost( 20 virtual RenderProcessHost* CreateRenderProcessHost(
24 content::BrowserContext* browser_context) const = 0; 21 BrowserContext* browser_context) const = 0;
25 }; 22 };
26 23
27 } // namespace content 24 } // namespace content
28 25
29 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_FACTORY_H_ 26 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_FACTORY_H_
30 27
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698