| Index: url/gurl.h
|
| diff --git a/url/gurl.h b/url/gurl.h
|
| index 4b986a6a4deb4a22dbe204385c7c92f892ace6a3..6af7d44a95d8a56f9c4008ce994264413a534d1c 100644
|
| --- a/url/gurl.h
|
| +++ b/url/gurl.h
|
| @@ -223,6 +223,15 @@ 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.
|
| + bool HasContent() const {
|
| + return parsed_.Content().is_valid();
|
| + }
|
| + std::string Content() const {
|
| + return ComponentString(parsed_.Content());
|
| + }
|
| +
|
| // 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).
|
|
|