| 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 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 |
| OLD | NEW |