Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(721)

Unified Diff: url/gurl.h

Issue 23549039: Preparing to support fragment resolution against non-hierarchical schemes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Not updating the net tests Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: url/gurl.h
diff --git a/url/gurl.h b/url/gurl.h
index 4b986a6a4deb4a22dbe204385c7c92f892ace6a3..922f2c71a8a292d51758cdba69875254852732ec 100644
--- a/url/gurl.h
+++ b/url/gurl.h
@@ -223,6 +223,12 @@ class URL_EXPORT GURL {
(SchemeIsFileSystem() && inner_url() && inner_url()->SchemeIsSecure());
}
+ // The "content" or the URL is everything after the scheme (skipping the
+ // scheme delimiting colon), or the entire URL if it has no scheme.
joth 2013/09/19 22:50:02 Probably safer as: // The "content" or the URL is
Kristian Monsen 2013/09/20 05:57:31 Done.
+ std::string GetContent() const {
+ return ComponentString(parsed_.GetContent());
+ }
+
// 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).

Powered by Google App Engine
This is Rietveld 408576698