[Android WebView] Put AndroidStreamReaderURLRequestJob into a namespace
[chromium-blink-merge.git] / content / test / test_render_frame_host_factory.cc
blobd36234bd796637e845738a0a0bfa743f723f19e9
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
3 // found in the LICENSE file.
5 #include "content/test/test_render_frame_host_factory.h"
7 #include "base/basictypes.h"
8 #include "base/compiler_specific.h"
9 #include "base/logging.h"
10 #include "content/test/test_render_frame_host.h"
12 namespace content {
14 TestRenderFrameHostFactory::TestRenderFrameHostFactory() {
15 RenderFrameHostFactory::RegisterFactory(this);
18 TestRenderFrameHostFactory::~TestRenderFrameHostFactory() {
19 RenderFrameHostFactory::UnregisterFactory();
22 scoped_ptr<RenderFrameHostImpl>
23 TestRenderFrameHostFactory::CreateRenderFrameHost(
24 SiteInstance* site_instance,
25 RenderViewHostImpl* render_view_host,
26 RenderFrameHostDelegate* delegate,
27 RenderWidgetHostDelegate* rwh_delegate,
28 FrameTree* frame_tree,
29 FrameTreeNode* frame_tree_node,
30 int32 routing_id,
31 int32 widget_routing_id,
32 int32 surface_id,
33 int flags) {
34 return make_scoped_ptr(new TestRenderFrameHost(
35 site_instance, render_view_host, delegate, rwh_delegate, frame_tree,
36 frame_tree_node, routing_id, widget_routing_id, surface_id, flags));
39 } // namespace content