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