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

Unified Diff: extensions/common/url_pattern.cc

Issue 2449913002: Support WebSocket in WebRequest API. (Closed)
Patch Set: git cl format Created 3 years, 10 months 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
« no previous file with comments | « extensions/common/url_pattern.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/url_pattern.cc
diff --git a/extensions/common/url_pattern.cc b/extensions/common/url_pattern.cc
index fcd50f676dcf709777b3df33894adeecd3b213e9..0b318d95ea28b0d3de5b9087417ccd92fcdafdb1 100644
--- a/extensions/common/url_pattern.cc
+++ b/extensions/common/url_pattern.cc
@@ -31,17 +31,16 @@ const char* const kValidSchemes[] = {
url::kHttpScheme, url::kHttpsScheme,
url::kFileScheme, url::kFtpScheme,
content::kChromeUIScheme, extensions::kExtensionScheme,
- url::kFileSystemScheme,
+ url::kFileSystemScheme, url::kWsScheme,
+ url::kWssScheme,
};
const int kValidSchemeMasks[] = {
- URLPattern::SCHEME_HTTP,
- URLPattern::SCHEME_HTTPS,
- URLPattern::SCHEME_FILE,
- URLPattern::SCHEME_FTP,
- URLPattern::SCHEME_CHROMEUI,
- URLPattern::SCHEME_EXTENSION,
- URLPattern::SCHEME_FILESYSTEM,
+ URLPattern::SCHEME_HTTP, URLPattern::SCHEME_HTTPS,
+ URLPattern::SCHEME_FILE, URLPattern::SCHEME_FTP,
+ URLPattern::SCHEME_CHROMEUI, URLPattern::SCHEME_EXTENSION,
+ URLPattern::SCHEME_FILESYSTEM, URLPattern::SCHEME_WS,
+ URLPattern::SCHEME_WSS,
};
static_assert(arraysize(kValidSchemes) == arraysize(kValidSchemeMasks),
« no previous file with comments | « extensions/common/url_pattern.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698