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

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

Issue 5005: Reorganize the declarations to have some grouping and logical ordering in tab... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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
« no previous file with comments | « chrome/browser/tab_contents.cc ('k') | chrome/browser/views/tab_contents_container_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/view_source_contents.h" 5 #include "chrome/browser/view_source_contents.h"
6 6
7 #include "chrome/browser/navigation_entry.h" 7 #include "chrome/browser/navigation_entry.h"
8 #include "chrome/browser/render_view_host.h" 8 #include "chrome/browser/render_view_host.h"
9 9
10 ViewSourceContents::ViewSourceContents(Profile* profile, SiteInstance* instance) 10 ViewSourceContents::ViewSourceContents(Profile* profile, SiteInstance* instance)
11 : WebContents(profile, instance, NULL, MSG_ROUTING_NONE, NULL) { 11 : WebContents(profile, instance, NULL, MSG_ROUTING_NONE, NULL) {
12 type_ = TAB_CONTENTS_VIEW_SOURCE; 12 set_type(TAB_CONTENTS_VIEW_SOURCE);
13 } 13 }
14 14
15 void ViewSourceContents::RendererCreated(RenderViewHost* host) { 15 void ViewSourceContents::RendererCreated(RenderViewHost* host) {
16 // Make sure the renderer is in view source mode. 16 // Make sure the renderer is in view source mode.
17 host->Send(new ViewMsg_EnableViewSourceMode(host->routing_id())); 17 host->Send(new ViewMsg_EnableViewSourceMode(host->routing_id()));
18 } 18 }
19 19
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents.cc ('k') | chrome/browser/views/tab_contents_container_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698