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