summaryrefslogtreecommitdiffstats
path: root/url/gurl.h
diff options
context:
space:
mode:
authorricea@chromium.org <ricea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-22 07:40:46 +0000
committerricea@chromium.org <ricea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-22 07:40:46 +0000
commit9690b9973408b5f84206a9688f84dedc27747f6e (patch)
tree3888e75ebb3491e4deebc1c4bfc11bae757e22a9 /url/gurl.h
parent62e41ba50f8f19053e126fee543e70147615ba81 (diff)
downloadchromium_src-9690b9973408b5f84206a9688f84dedc27747f6e.zip
chromium_src-9690b9973408b5f84206a9688f84dedc27747f6e.tar.gz
chromium_src-9690b9973408b5f84206a9688f84dedc27747f6e.tar.bz2
Fix some debugging checks that expect HTTP protocol schemes to also
accept WebSocket protocol schemes. No functional change to release builds. Debug builds will stop crashing when the new WebSocket implementation is used. BUG= TEST=net_unittests Review URL: https://codereview.chromium.org/68213017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236713 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'url/gurl.h')
-rw-r--r--url/gurl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/url/gurl.h b/url/gurl.h
index d4ea10f..d145ab6 100644
--- a/url/gurl.h
+++ b/url/gurl.h
@@ -210,6 +210,9 @@ class URL_EXPORT GURL {
// Returns true if the scheme is "http" or "https".
bool SchemeIsHTTPOrHTTPS() const;
+ // Returns true is the scheme is "ws" or "wss".
+ bool SchemeIsWSOrWSS() const;
+
// We often need to know if this is a file URL. File URLs are "standard", but
// are often treated separately by some programs.
bool SchemeIsFile() const {