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

Side by Side Diff: content/test/test_render_view_host_factory.cc

Issue 10191010: Re-implement the screensaver to use WebView instead of ExtensionDialogHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ut fix. Created 8 years, 7 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/test/test_render_view_host_factory.h ('k') | content/test/test_renderer_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 #include "content/test/test_render_view_host_factory.h"
6
7 #include "content/browser/renderer_host/test_render_view_host.h"
8 #include "content/browser/site_instance_impl.h"
9 #include "content/public/browser/render_process_host_factory.h"
10
11 namespace content {
12
13 TestRenderViewHostFactory::TestRenderViewHostFactory(
14 content::RenderProcessHostFactory* rph_factory)
15 : render_process_host_factory_(rph_factory) {
16 RenderViewHostFactory::RegisterFactory(this);
17 }
18
19 TestRenderViewHostFactory::~TestRenderViewHostFactory() {
20 RenderViewHostFactory::UnregisterFactory();
21 }
22
23 void TestRenderViewHostFactory::set_render_process_host_factory(
24 content::RenderProcessHostFactory* rph_factory) {
25 render_process_host_factory_ = rph_factory;
26 }
27
28 content::RenderViewHost* TestRenderViewHostFactory::CreateRenderViewHost(
29 SiteInstance* instance,
30 RenderViewHostDelegate* delegate,
31 int routing_id,
32 bool swapped_out,
33 SessionStorageNamespace* session_storage) {
34 // See declaration of render_process_host_factory_ below.
35 static_cast<SiteInstanceImpl*>(instance)->
36 set_render_process_host_factory(render_process_host_factory_);
37 return new TestRenderViewHost(instance, delegate, routing_id, swapped_out);
38 }
39
40 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_render_view_host_factory.h ('k') | content/test/test_renderer_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698