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

Unified Diff: chrome/common/extensions/url_pattern.cc

Issue 6804032: Add TLS-SRP (RFC 5054) support Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: use system srp and mpi libs, not local copies Created 9 years, 8 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
Index: chrome/common/extensions/url_pattern.cc
diff --git a/chrome/common/extensions/url_pattern.cc b/chrome/common/extensions/url_pattern.cc
index b6e09b78dd91b40b8ad382ab8c519dd3f88c6452..26fbd4caec9303f6512dbe44f55a1508a4f0c74f 100644
--- a/chrome/common/extensions/url_pattern.cc
+++ b/chrome/common/extensions/url_pattern.cc
@@ -17,6 +17,7 @@
static const char* kValidSchemes[] = {
chrome::kHttpScheme,
chrome::kHttpsScheme,
+ chrome::kHttpsvScheme,
chrome::kFileScheme,
chrome::kFtpScheme,
chrome::kChromeUIScheme,
@@ -25,6 +26,7 @@ static const char* kValidSchemes[] = {
static const int kValidSchemeMasks[] = {
URLPattern::SCHEME_HTTP,
URLPattern::SCHEME_HTTPS,
+ URLPattern::SCHEME_HTTPSV,
URLPattern::SCHEME_FILE,
URLPattern::SCHEME_FTP,
URLPattern::SCHEME_CHROMEUI,
@@ -148,7 +150,7 @@ URLPattern::ParseResult URLPattern::Parse(const std::string& pattern) {
bool URLPattern::SetScheme(const std::string& scheme) {
scheme_ = scheme;
if (scheme_ == "*") {
- valid_schemes_ &= (SCHEME_HTTP | SCHEME_HTTPS);
+ valid_schemes_ &= (SCHEME_HTTP | SCHEME_HTTPS | SCHEME_HTTPSV);
} else if (!IsValidScheme(scheme_)) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698