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

Unified Diff: third_party/WebKit/Source/core/frame/csp/CSPSourceList.cpp

Issue 2393313002: reflow comments in core/frame (Closed)
Patch Set: tweak Created 4 years, 2 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: third_party/WebKit/Source/core/frame/csp/CSPSourceList.cpp
diff --git a/third_party/WebKit/Source/core/frame/csp/CSPSourceList.cpp b/third_party/WebKit/Source/core/frame/csp/CSPSourceList.cpp
index a5f04d7c2f05ecd4db7096e7967ab55688215817..dd061cd16411100f48d3bd660f2cc46212b24c21 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPSourceList.cpp
+++ b/third_party/WebKit/Source/core/frame/csp/CSPSourceList.cpp
@@ -46,9 +46,11 @@ CSPSourceList::CSPSourceList(ContentSecurityPolicy* policy,
bool CSPSourceList::matches(
const KURL& url,
ResourceRequest::RedirectStatus redirectStatus) const {
- // Wildcards match network schemes ('http', 'https', 'ws', 'wss'), and the scheme of the
- // protected resource: https://w3c.github.io/webappsec-csp/#match-url-to-source-expression.
- // Other schemes, including custom schemes, must be explicitly listed in a source list.
+ // Wildcards match network schemes ('http', 'https', 'ws', 'wss'), and the
+ // scheme of the protected resource:
+ // https://w3c.github.io/webappsec-csp/#match-url-to-source-expression. Other
+ // schemes, including custom schemes, must be explicitly listed in a source
+ // list.
if (m_allowStar) {
if (url.protocolIsInHTTPFamily() || url.protocolIs("ws") ||
url.protocolIs("wss") || m_policy->protocolMatchesSelf(url))
@@ -346,7 +348,8 @@ bool CSPSourceList::parseHash(
for (const auto& algorithm : kSupportedPrefixes) {
prefix = algorithm.prefix;
- // TODO(esprehn): Should be StringView(begin, end - begin).startsWith(prefix).
+ // TODO(esprehn): Should be StringView(begin, end -
+ // begin).startsWith(prefix).
if (hashLength > prefix.length() &&
equalIgnoringCase(prefix, StringView(begin, prefix.length()))) {
hashAlgorithm = algorithm.type;

Powered by Google App Engine
This is Rietveld 408576698