blob: 12b66ca4d24bc240f36d8786aa7b4ab49726215f [file] [log] [blame]
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/test/test_render_frame_host_factory.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "content/test/test_render_frame_host.h"
namespace content {
TestRenderFrameHostFactory::TestRenderFrameHostFactory() {
RenderFrameHostFactory::RegisterFactory(this);
}
TestRenderFrameHostFactory::~TestRenderFrameHostFactory() {
RenderFrameHostFactory::UnregisterFactory();
}
scoped_ptr<RenderFrameHostImpl>
TestRenderFrameHostFactory::CreateRenderFrameHost(
RenderViewHostImpl* render_view_host,
RenderFrameHostDelegate* delegate,
FrameTree* frame_tree,
FrameTreeNode* frame_tree_node,
int routing_id,
bool is_swapped_out) {
return make_scoped_ptr(
new TestRenderFrameHost(
render_view_host, delegate, frame_tree, frame_tree_node, routing_id,
is_swapped_out));
}
} // namespace content