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

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: Format changes Created 3 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
« no previous file with comments | « no previous file | content/common/content_security_policy/csp_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 45895e638f26f95e5b80aae89a89b864cc4d5049..cc5f3b50873a7a62ce363cf3cf9f14f74ce28827 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);
« no previous file with comments | « no previous file | content/common/content_security_policy/csp_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698