| 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 "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 memory_html, &root, "t" /* template root node id */); | 691 memory_html, &root, "t" /* template root node id */); |
| 692 | 692 |
| 693 AboutSource* src = static_cast<AboutSource*>(source_); | 693 AboutSource* src = static_cast<AboutSource*>(source_); |
| 694 src->FinishDataRequest(template_html, request_id_); | 694 src->FinishDataRequest(template_html, request_id_); |
| 695 } | 695 } |
| 696 | 696 |
| 697 } // namespace | 697 } // namespace |
| 698 | 698 |
| 699 // ----------------------------------------------------------------------------- | 699 // ----------------------------------------------------------------------------- |
| 700 | 700 |
| 701 bool WillHandleBrowserAboutURL(GURL* url) { | 701 bool WillHandleBrowserAboutURL(GURL* url, Profile* profile) { |
| 702 // We only handle about: schemes. | 702 // We only handle about: schemes. |
| 703 if (!url->SchemeIs(chrome::kAboutScheme)) | 703 if (!url->SchemeIs(chrome::kAboutScheme)) |
| 704 return false; | 704 return false; |
| 705 | 705 |
| 706 // about:blank is special. Frames are allowed to access about:blank, | 706 // about:blank is special. Frames are allowed to access about:blank, |
| 707 // but they are not allowed to access other types of about pages. | 707 // but they are not allowed to access other types of about pages. |
| 708 // Just ignore the about:blank and let the TAB_CONTENTS_WEB handle it. | 708 // Just ignore the about:blank and let the TAB_CONTENTS_WEB handle it. |
| 709 if (LowerCaseEqualsASCII(url->spec(), chrome::kAboutBlankURL)) | 709 if (LowerCaseEqualsASCII(url->spec(), chrome::kAboutBlankURL)) |
| 710 return false; | 710 return false; |
| 711 | 711 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 AboutIPCDialog::RunDialog(); | 772 AboutIPCDialog::RunDialog(); |
| 773 return true; | 773 return true; |
| 774 } | 774 } |
| 775 #endif | 775 #endif |
| 776 | 776 |
| 777 #else | 777 #else |
| 778 // TODO(port) Implement this. | 778 // TODO(port) Implement this. |
| 779 #endif | 779 #endif |
| 780 return false; | 780 return false; |
| 781 } | 781 } |
| OLD | NEW |