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_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 "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 class BrowserContext; | 11 class BrowserContext; |
12 class ContentBrowserClient; | |
13 class RenderProcessHost; | 12 class RenderProcessHost; |
14 class SiteInstance; | 13 class SiteInstance; |
15 | 14 |
16 // Factory object for RenderProcessHosts. Using this factory allows tests to | 15 // Factory object for RenderProcessHosts. Using this factory allows tests to |
17 // swap out a different one to use a TestRenderProcessHost. | 16 // swap out a different one to use a TestRenderProcessHost. |
18 class RenderProcessHostFactory { | 17 class RenderProcessHostFactory { |
19 public: | 18 public: |
20 virtual ~RenderProcessHostFactory() {} | 19 virtual ~RenderProcessHostFactory() {} |
21 virtual RenderProcessHost* CreateRenderProcessHost( | 20 virtual RenderProcessHost* CreateRenderProcessHost( |
22 BrowserContext* browser_context, | 21 BrowserContext* browser_context, |
23 SiteInstance* site_instance) const = 0; | 22 SiteInstance* site_instance) const = 0; |
24 }; | 23 }; |
25 | 24 |
26 } // namespace content | 25 } // namespace content |
27 | 26 |
28 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_FACTORY_H_ | 27 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_FACTORY_H_ |
OLD | NEW |