summaryrefslogtreecommitdiffstats
path: root/url/gurl.h
diff options
context:
space:
mode:
Diffstat (limited to 'url/gurl.h')
-rw-r--r--url/gurl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/url/gurl.h b/url/gurl.h
index 254f64b..f750c3a 100644
--- a/url/gurl.h
+++ b/url/gurl.h
@@ -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).