Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Side by Side Diff: content/public/browser/render_process_host_factory.h

Issue 16490003: Pass the SiteInstance into CreateRenderProcessHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/site_instance_impl.cc ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « content/browser/site_instance_impl.cc ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698