blob: be95c5b6dcbcada887f846a6f00e59aa74e21193 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// 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/renderer_host/render_view_host.h"
#include "chrome/browser/tab_contents/navigation_entry.h"
#include "chrome/common/render_messages.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()));
}
|