| OLD | NEW |
| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 | 180 |
| 181 #ifdef IPC_MESSAGE_LOG_ENABLED | 181 #ifdef IPC_MESSAGE_LOG_ENABLED |
| 182 if ((LowerCaseEqualsASCII(url->path(), "ipc")) && | 182 if ((LowerCaseEqualsASCII(url->path(), "ipc")) && |
| 183 (IPCStatusView::current() == NULL)) { | 183 (IPCStatusView::current() == NULL)) { |
| 184 // about:ipc doesn't have an internal protocol, so don't modify |url|. | 184 // about:ipc doesn't have an internal protocol, so don't modify |url|. |
| 185 *result_type = TAB_CONTENTS_IPC_STATUS_VIEW; | 185 *result_type = TAB_CONTENTS_IPC_STATUS_VIEW; |
| 186 return true; | 186 return true; |
| 187 } | 187 } |
| 188 #endif | 188 #endif |
| 189 | 189 |
| 190 if (LowerCaseEqualsASCII(url->path(), "internets")) { | |
| 191 // about:internets doesn't have an internal protocol, so don't modify |url|. | |
| 192 *result_type = TAB_CONTENTS_ABOUT_INTERNETS_STATUS_VIEW; | |
| 193 return true; | |
| 194 } | |
| 195 | |
| 196 // There are a few about URLs that we hand over to the renderer. | 190 // There are a few about URLs that we hand over to the renderer. |
| 197 // If the renderer wants them, let it have them. | 191 // If the renderer wants them, let it have them. |
| 198 if (AboutHandler::WillHandle(*url)) | 192 if (AboutHandler::WillHandle(*url)) |
| 199 return false; | 193 return false; |
| 200 | 194 |
| 201 *result_type = TAB_CONTENTS_ABOUT_UI; | 195 *result_type = TAB_CONTENTS_ABOUT_UI; |
| 202 std::string about_url = "chrome://about/"; | 196 std::string about_url = "chrome://about/"; |
| 203 about_url.append(url->path()); | 197 about_url.append(url->path()); |
| 204 *url = GURL(about_url); | 198 *url = GURL(about_url); |
| 205 return true; | 199 return true; |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 AboutSource* about_source = static_cast<AboutSource*>(source_); | 653 AboutSource* about_source = static_cast<AboutSource*>(source_); |
| 660 about_source->FinishDataRequest(template_html, request_id_); | 654 about_source->FinishDataRequest(template_html, request_id_); |
| 661 } | 655 } |
| 662 | 656 |
| 663 // static | 657 // static |
| 664 void BrowserAboutHandler::AboutMemory(AboutSource* source, int request_id) { | 658 void BrowserAboutHandler::AboutMemory(AboutSource* source, int request_id) { |
| 665 // The AboutMemoryHandler cleans itself up. | 659 // The AboutMemoryHandler cleans itself up. |
| 666 new AboutMemoryHandler(source, request_id); | 660 new AboutMemoryHandler(source, request_id); |
| 667 } | 661 } |
| 668 | 662 |
| OLD | NEW |