Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(585)

Side by Side Diff: chrome/browser/tab_contents/view_source_contents.cc

Issue 20072: Finish taking out render_messages.h include from other headers. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/tab_contents/view_source_contents.h" 5 #include "chrome/browser/tab_contents/view_source_contents.h"
6 6
7 #include "chrome/browser/renderer_host/render_view_host.h" 7 #include "chrome/browser/renderer_host/render_view_host.h"
8 #include "chrome/browser/tab_contents/navigation_entry.h" 8 #include "chrome/browser/tab_contents/navigation_entry.h"
9 #include "chrome/common/render_messages.h"
9 10
10 ViewSourceContents::ViewSourceContents(Profile* profile, SiteInstance* instance) 11 ViewSourceContents::ViewSourceContents(Profile* profile, SiteInstance* instance)
11 : WebContents(profile, instance, NULL, MSG_ROUTING_NONE, NULL) { 12 : WebContents(profile, instance, NULL, MSG_ROUTING_NONE, NULL) {
12 set_type(TAB_CONTENTS_VIEW_SOURCE); 13 set_type(TAB_CONTENTS_VIEW_SOURCE);
13 } 14 }
14 15
15 void ViewSourceContents::RendererCreated(RenderViewHost* host) { 16 void ViewSourceContents::RendererCreated(RenderViewHost* host) {
16 // Make sure the renderer is in view source mode. 17 // Make sure the renderer is in view source mode.
17 host->Send(new ViewMsg_EnableViewSourceMode(host->routing_id())); 18 host->Send(new ViewMsg_EnableViewSourceMode(host->routing_id()));
18 } 19 }
19 20
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698