Popular sites on the NTP: Try to keep the ordering constant
[chromium-blink-merge.git] / content / public / browser / render_process_host_factory.h
blobaeec3595d1c58ca86d38b07d7a7167537a7cbf15
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_FACTORY_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_FACTORY_H_
8 #include "base/basictypes.h"
9 #include "content/common/content_export.h"
11 namespace content {
12 class BrowserContext;
13 class ContentBrowserClient;
14 class RenderProcessHost;
15 class SiteInstance;
17 // Factory object for RenderProcessHosts. Using this factory allows tests to
18 // swap out a different one to use a TestRenderProcessHost.
19 class RenderProcessHostFactory {
20 public:
21 virtual ~RenderProcessHostFactory() {}
22 virtual RenderProcessHost* CreateRenderProcessHost(
23 BrowserContext* browser_context,
24 SiteInstance* site_instance) const = 0;
27 } // namespace content
29 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_FACTORY_H_