diff options
Diffstat (limited to 'chrome/browser/tab_contents/view_source_contents.cc')
-rw-r--r-- | chrome/browser/tab_contents/view_source_contents.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/view_source_contents.cc b/chrome/browser/tab_contents/view_source_contents.cc new file mode 100644 index 0000000..849a005 --- /dev/null +++ b/chrome/browser/tab_contents/view_source_contents.cc @@ -0,0 +1,19 @@ +// Copyright (c) 2006-2008 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/view_source_contents.h" + +#include "chrome/browser/tab_contents/navigation_entry.h" +#include "chrome/browser/render_view_host.h" + +ViewSourceContents::ViewSourceContents(Profile* profile, SiteInstance* instance) + : WebContents(profile, instance, NULL, MSG_ROUTING_NONE, NULL) { + set_type(TAB_CONTENTS_VIEW_SOURCE); +} + +void ViewSourceContents::RendererCreated(RenderViewHost* host) { + // Make sure the renderer is in view source mode. + host->Send(new ViewMsg_EnableViewSourceMode(host->routing_id())); +} + |