Chromium Code Reviews| Index: url/gurl.cc |
| diff --git a/url/gurl.cc b/url/gurl.cc |
| index 09b8abbcc23933c884e1fe62a2fea9fac54c2386..03ef3040252e760f56d0fed377f4ef2552fefcee 100644 |
| --- a/url/gurl.cc |
| +++ b/url/gurl.cc |
| @@ -367,6 +367,10 @@ bool GURL::SchemeIs(const char* lower_ascii_scheme) const { |
| lower_ascii_scheme); |
| } |
| +bool GURL::SchemeIsHttp() const { |
| + return SchemeIs("http") || SchemeIs("https"); |
| +} |
| + |
| int GURL::IntPort() const { |
| if (parsed_.port.is_nonempty()) |
| return url_parse::ParsePort(spec_.data(), parsed_.port); |