Remove unused code calling WebMediaPlayerClient::requestFullscreen()
[chromium-blink-merge.git] / content / test / test_render_view_host_factory.cc
blob8bfc69741f8a6efa835d85fe0d6dc6970b49003a
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.
5 #include "content/test/test_render_view_host_factory.h"
7 #include "content/browser/site_instance_impl.h"
8 #include "content/public/browser/render_process_host_factory.h"
9 #include "content/test/test_render_view_host.h"
11 namespace content {
13 TestRenderViewHostFactory::TestRenderViewHostFactory(
14 RenderProcessHostFactory* rph_factory) {
15 SiteInstanceImpl::set_render_process_host_factory(rph_factory);
16 RenderViewHostFactory::RegisterFactory(this);
19 TestRenderViewHostFactory::~TestRenderViewHostFactory() {
20 RenderViewHostFactory::UnregisterFactory();
21 SiteInstanceImpl::set_render_process_host_factory(NULL);
24 void TestRenderViewHostFactory::set_render_process_host_factory(
25 RenderProcessHostFactory* rph_factory) {
26 SiteInstanceImpl::set_render_process_host_factory(rph_factory);
29 RenderViewHost* TestRenderViewHostFactory::CreateRenderViewHost(
30 SiteInstance* instance,
31 RenderViewHostDelegate* delegate,
32 RenderWidgetHostDelegate* widget_delegate,
33 int routing_id,
34 int main_frame_routing_id,
35 bool swapped_out) {
36 return new TestRenderViewHost(
37 instance, delegate, widget_delegate, routing_id, main_frame_routing_id,
38 swapped_out);
41 } // namespace content