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

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

Issue 2025633002: Move 'ContentSecurityPolicy::RedirectStatus' into 'ResourceRequest' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/CSPSource.cpp
diff --git a/third_party/WebKit/Source/core/frame/csp/CSPSource.cpp b/third_party/WebKit/Source/core/frame/csp/CSPSource.cpp
index f8e597bc6ecb54b399ba6a67b8065eef391da0e4..7568ee2233051e8d5de748f5df3204f43cc5944d 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPSource.cpp
+++ b/third_party/WebKit/Source/core/frame/csp/CSPSource.cpp
@@ -6,6 +6,7 @@
#include "core/frame/UseCounter.h"
#include "core/frame/csp/ContentSecurityPolicy.h"
+
foolip 2016/05/30 10:10:23 Intentional?
Mike West 2016/05/30 14:59:30 Not at all! Thanks. :)
#include "platform/weborigin/KURL.h"
#include "platform/weborigin/KnownPorts.h"
#include "platform/weborigin/SecurityOrigin.h"
@@ -24,13 +25,13 @@ CSPSource::CSPSource(ContentSecurityPolicy* policy, const String& scheme, const
{
}
-bool CSPSource::matches(const KURL& url, ContentSecurityPolicy::RedirectStatus redirectStatus) const
+bool CSPSource::matches(const KURL& url, RedirectStatus redirectStatus) const
{
if (!schemeMatches(url))
return false;
if (isSchemeOnly())
return true;
- bool pathsMatch = (redirectStatus == ContentSecurityPolicy::DidRedirect) || pathMatches(url);
+ bool pathsMatch = (redirectStatus == RedirectStatus::FollowedRedirect) || pathMatches(url);
return hostMatches(url) && portMatches(url) && pathsMatch;
}

Powered by Google App Engine
This is Rietveld 408576698