Chromium Code Reviews| 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, | |
| 25 ContentBrowserClient* client) const = 0; | |
|
Charlie Reis
2013/06/05 22:37:30
Hmm, isn't the ContentBrowserClient global? I don
Jeffrey Yasskin
2013/06/05 23:01:32
Good point. It's gone again.
| |
| 22 }; | 26 }; |
| 23 | 27 |
| 24 } // namespace content | 28 } // namespace content |
| 25 | 29 |
| 26 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_FACTORY_H_ | 30 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_FACTORY_H_ |
| 27 | |
| OLD | NEW |