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

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

Issue 2797183002: CSP: Allow secure upgrade from an explicitly insecure expression. (Closed)
Patch Set: 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 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);
« 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