summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/test_web_contents.cc
blob: 866e28aa0a7f0425fa48bea9c83e7b868237dd1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) 2009 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 "chrome/browser/tab_contents/test_web_contents.h"

#include "chrome/browser/renderer_host/test_render_view_host.h"

TestWebContents::TestWebContents(Profile* profile, SiteInstance* instance,
                                 RenderViewHostFactory* rvh_factory)
    : WebContents(profile, instance, rvh_factory, MSG_ROUTING_NONE, NULL),
      transition_cross_site(false) {
}

TestRenderViewHost* TestWebContents::pending_rvh() {
  return static_cast<TestRenderViewHost*>(
      render_manager_.pending_render_view_host_);
}