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

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

Issue 26316005: Move out DidStartProvisionalLoad from WebContentsImpl into Navigator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes based on Charlie's latest review. Created 7 years 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_frame_host_factory.h ('k') | content/test/test_render_view_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "content/test/test_render_frame_host_factory.h" 5 #include "content/test/test_render_frame_host_factory.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/test/test_render_frame_host.h" 10 #include "content/test/test_render_frame_host.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 TestRenderFrameHostFactory::TestRenderFrameHostFactory() { 14 TestRenderFrameHostFactory::TestRenderFrameHostFactory() {
15 RenderFrameHostFactory::RegisterFactory(this); 15 RenderFrameHostFactory::RegisterFactory(this);
16 } 16 }
17 17
18 TestRenderFrameHostFactory::~TestRenderFrameHostFactory() { 18 TestRenderFrameHostFactory::~TestRenderFrameHostFactory() {
19 RenderFrameHostFactory::UnregisterFactory(); 19 RenderFrameHostFactory::UnregisterFactory();
20 } 20 }
21 21
22 scoped_ptr<RenderFrameHostImpl> 22 scoped_ptr<RenderFrameHostImpl>
23 TestRenderFrameHostFactory::CreateRenderFrameHost( 23 TestRenderFrameHostFactory::CreateRenderFrameHost(
24 RenderViewHostImpl* render_view_host, 24 RenderViewHostImpl* render_view_host,
25 RenderFrameHostDelegate* delegate, 25 RenderFrameHostDelegate* delegate,
26 FrameTree* frame_tree, 26 FrameTree* frame_tree,
27 FrameTreeNode* frame_tree_node,
27 int routing_id, 28 int routing_id,
28 bool is_swapped_out) { 29 bool is_swapped_out) {
29 return make_scoped_ptr( 30 return make_scoped_ptr(
30 new TestRenderFrameHost( 31 new TestRenderFrameHost(
31 render_view_host, delegate, frame_tree, routing_id, is_swapped_out)) 32 render_view_host, delegate, frame_tree, frame_tree_node, routing_id,
33 is_swapped_out))
32 .PassAs<RenderFrameHostImpl>(); 34 .PassAs<RenderFrameHostImpl>();
33 } 35 }
34 36
35 } // namespace content 37 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_render_frame_host_factory.h ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698