diff options
Diffstat (limited to 'url/gurl.cc')
-rw-r--r-- | url/gurl.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/url/gurl.cc b/url/gurl.cc index b580125..46ca408 100644 --- a/url/gurl.cc +++ b/url/gurl.cc @@ -177,6 +177,22 @@ const std::string& GURL::spec() const { return EmptyStringForGURL(); } +bool GURL::operator==(const GURL& other) const { + return spec_ == other.spec_; +} + +bool GURL::operator!=(const GURL& other) const { + return spec_ != other.spec_; +} + +bool GURL::operator<(const GURL& other) const { + return spec_ < other.spec_; +} + +bool GURL::operator>(const GURL& other) const { + return spec_ > other.spec_; +} + GURL GURL::Resolve(const std::string& relative) const { return ResolveWithCharsetConverter(relative, NULL); } |