summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/url_fixer_upper.h
diff options
context:
space:
mode:
authormsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-07 17:20:12 +0000
committermsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-07 17:20:12 +0000
commit0985614e49db6b4a94c551fda1107462b53a9aac (patch)
tree60ddc04f5622960211f528e828b2ac7f38f0f31b /chrome/browser/net/url_fixer_upper.h
parentbab8eff84eba3743c1812cc8fb4c49a9771864c4 (diff)
downloadchromium_src-0985614e49db6b4a94c551fda1107462b53a9aac.zip
chromium_src-0985614e49db6b4a94c551fda1107462b53a9aac.tar.gz
chromium_src-0985614e49db6b4a94c551fda1107462b53a9aac.tar.bz2
*Fixup about and chrome scheme URLs in URLFixerUpper::FixupURL.
*Update AboutSource to use the source_name of each about/chrome page. *Make WillHandleBrowserAboutURL fix up schemes and handle chrome://foo/ -Redirect memory to memory-redirect (wasn't handling chrome://memory/). -Catalog all kChromeUI*Hosts in url_constants.cc -Simplify paths (credits, os-credits, ipc, settings, about/version). -Nix web_ui_util::ChromeURLHostEquals (use scheme & host comparison). -Favor GURL::SchemeIs and url_constants, update & expand tests. -Add and fixup chrome://chrome-urls (the about:about page). BUG=55771 TEST=Access about:, about://, chrome:, chrome:// pages. Review URL: http://codereview.chromium.org/7068007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88142 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/url_fixer_upper.h')
-rw-r--r--chrome/browser/net/url_fixer_upper.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/net/url_fixer_upper.h b/chrome/browser/net/url_fixer_upper.h
index e6096bb..f5b5327 100644
--- a/chrome/browser/net/url_fixer_upper.h
+++ b/chrome/browser/net/url_fixer_upper.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -41,6 +41,11 @@ namespace URLFixerUpper {
// be valid, so check the return value's validity or use
// possibly_invalid_spec().
//
+ // Schemes "about" and "chrome" are normalized to "chrome://", with slashes.
+ // "about:blank" is unaltered, as Webkit allows frames to access about:blank.
+ // Additionally, if a chrome URL does not have a valid host, as in "about:",
+ // the returned URL will have the host "version", as in "chrome://version".
+ //
// If |desired_tld| is non-empty, it represents the TLD the user wishes to
// append in the case of an incomplete domain. We check that this is not a
// file path and there does not appear to be a valid TLD already, then append