IndexedDBFactory now ForceCloses databases.
[chromium-blink-merge.git] / content / test / test_render_frame_host.cc
blobe9a3bc8d3e30be01812a0f78357fe520491675ea
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.h"
7 #include "content/browser/frame_host/frame_tree.h"
8 #include "content/test/test_render_view_host.h"
10 namespace content {
12 TestRenderFrameHost::TestRenderFrameHost(RenderViewHostImpl* render_view_host,
13 RenderFrameHostDelegate* delegate,
14 FrameTree* frame_tree,
15 FrameTreeNode* frame_tree_node,
16 int routing_id,
17 bool is_swapped_out)
18 : RenderFrameHostImpl(render_view_host,
19 delegate,
20 frame_tree,
21 frame_tree_node,
22 routing_id,
23 is_swapped_out) {
24 // Allow TestRenderViewHosts to easily access their main frame RFH.
25 if (frame_tree_node == frame_tree->root()) {
26 static_cast<TestRenderViewHost*>(render_view_host)->
27 set_main_render_frame_host(this);
31 TestRenderFrameHost::~TestRenderFrameHost() {}
33 } // namespace content