diff options
author | kristianm@chromium.org <kristianm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-24 19:05:17 +0000 |
---|---|---|
committer | kristianm@chromium.org <kristianm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-24 19:05:17 +0000 |
commit | 5f50c5dbbad30f25ee6f983f555237c3f4e0a1a3 (patch) | |
tree | 91055362c58de7699dea1022efe8ca9732f7c01d /url/gurl.h | |
parent | 22abbd82c93a9c85f2364586919a6e3485586bcc (diff) | |
download | chromium_src-5f50c5dbbad30f25ee6f983f555237c3f4e0a1a3.zip chromium_src-5f50c5dbbad30f25ee6f983f555237c3f4e0a1a3.tar.gz chromium_src-5f50c5dbbad30f25ee6f983f555237c3f4e0a1a3.tar.bz2 |
Preparing to support fragment resolution against non-hierarchical schemes
Adds a new GURL::GetContent() to retrieve the text after scheme: specifically
intended for use in non-hierarchical schemes (data: etc).
Doing the first part of https://codereview.chromium.org/23835019/
in a preparation CL.
BUG=291747
Review URL: https://codereview.chromium.org/23549039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230781 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'url/gurl.h')
-rw-r--r-- | url/gurl.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -227,6 +227,11 @@ class URL_EXPORT GURL { (SchemeIsFileSystem() && inner_url() && inner_url()->SchemeIsSecure()); } + // The "content" of the URL is everything after the scheme (skipping the + // scheme delimiting colon). It is an error to get the origin of an invalid + // URL. The result will be an empty string. + std::string GetContent() const; + // Returns true if the hostname is an IP address. Note: this function isn't // as cheap as a simple getter because it re-parses the hostname to verify. // This currently identifies only IPv4 addresses (bug 822685). |