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

Unified Diff: content/common/content_security_policy/csp_context.h

Issue 2792013002: Stop CSP from matching independent scheme/port upgrades (content layer) (Closed)
Patch Set: Created 3 years, 9 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: content/common/content_security_policy/csp_context.h
diff --git a/content/common/content_security_policy/csp_context.h b/content/common/content_security_policy/csp_context.h
index 695dfe59e2528da0570c9b2f44e646f82fc078c8..31513ca74f9fa57dda98a0d4b8cda254065b1ccb 100644
--- a/content/common/content_security_policy/csp_context.h
+++ b/content/common/content_security_policy/csp_context.h
@@ -40,7 +40,8 @@ class CONTENT_EXPORT CSPContext {
void SetSelf(const url::Origin origin);
bool AllowSelf(const GURL& url);
- bool ProtocolMatchesSelf(const GURL& url);
+ bool ProtocolIsSelf(const GURL& url);
+ const std::string& GetSelfScheme();
virtual void ReportContentSecurityPolicyViolation(
const CSPViolationParams& violation_params);

Powered by Google App Engine
This is Rietveld 408576698