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

Side by Side Diff: chrome/browser/browser_about_handler.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/automation/automation_provider.cc ('k') | chrome/browser/browser_commands.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/browser_about_handler.h" 5 #include "chrome/browser/browser_about_handler.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_version_info.h" 10 #include "base/file_version_info.h"
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 std::string about_url = "chrome-resource://about/"; 191 std::string about_url = "chrome-resource://about/";
192 about_url.append(url->path()); 192 about_url.append(url->path());
193 *url = GURL(about_url); 193 *url = GURL(about_url);
194 return true; 194 return true;
195 } 195 }
196 196
197 BrowserAboutHandler::BrowserAboutHandler(Profile* profile, 197 BrowserAboutHandler::BrowserAboutHandler(Profile* profile,
198 SiteInstance* instance, 198 SiteInstance* instance,
199 RenderViewHostFactory* render_view_factory) : 199 RenderViewHostFactory* render_view_factory) :
200 WebContents(profile, instance, render_view_factory, MSG_ROUTING_NONE, NULL) { 200 WebContents(profile, instance, render_view_factory, MSG_ROUTING_NONE, NULL) {
201 type_ = TAB_CONTENTS_ABOUT_UI; 201 set_type(TAB_CONTENTS_ABOUT_UI);
202 202
203 // We only need to register the AboutSource once and it is 203 // We only need to register the AboutSource once and it is
204 // kept globally. There is currently no way to remove a data source. 204 // kept globally. There is currently no way to remove a data source.
205 static bool initialized = false; 205 static bool initialized = false;
206 if (!initialized) { 206 if (!initialized) {
207 about_source_ = new AboutSource(); 207 about_source_ = new AboutSource();
208 g_browser_process->io_thread()->message_loop()->PostTask(FROM_HERE, 208 g_browser_process->io_thread()->message_loop()->PostTask(FROM_HERE,
209 NewRunnableMethod(&chrome_url_data_manager, 209 NewRunnableMethod(&chrome_url_data_manager,
210 &ChromeURLDataManager::AddDataSource, 210 &ChromeURLDataManager::AddDataSource,
211 about_source_)); 211 about_source_));
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 AboutSource* about_source = static_cast<AboutSource*>(source_); 630 AboutSource* about_source = static_cast<AboutSource*>(source_);
631 about_source->FinishDataRequest(template_html, request_id_); 631 about_source->FinishDataRequest(template_html, request_id_);
632 } 632 }
633 633
634 // static 634 // static
635 void BrowserAboutHandler::AboutMemory(AboutSource* source, int request_id) { 635 void BrowserAboutHandler::AboutMemory(AboutSource* source, int request_id) {
636 // The AboutMemoryHandler cleans itself up. 636 // The AboutMemoryHandler cleans itself up.
637 new AboutMemoryHandler(source, request_id); 637 new AboutMemoryHandler(source, request_id);
638 } 638 }
639 639
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | chrome/browser/browser_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698