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

Unified Diff: url/gurl.cc

Issue 68213017: Fix HTTP protocol scheme debugging checks for WebSockets (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Additional minor #include tweak. Created 7 years, 1 month 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.cc
diff --git a/url/gurl.cc b/url/gurl.cc
index 15de85af73adade3a7322537a286f0d177a85eba..a550c46fb2de16a814ad6f4b275201e2c908fb15 100644
--- a/url/gurl.cc
+++ b/url/gurl.cc
@@ -364,6 +364,10 @@ bool GURL::SchemeIsHTTPOrHTTPS() const {
return SchemeIs("http") || SchemeIs("https");
}
+bool GURL::SchemeIsWSOrWSS() const {
+ return SchemeIs("ws") || SchemeIs("wss");
+}
+
int GURL::IntPort() const {
if (parsed_.port.is_nonempty())
return url_parse::ParsePort(spec_.data(), parsed_.port);
« net/http/http_auth_handler_digest.cc ('K') | « url/gurl.h ('k') | url/gurl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698