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

Unified Diff: Source/core/dom/SecurityContext.cpp

Issue 27073003: CSP Suborigins Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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: Source/core/dom/SecurityContext.cpp
diff --git a/Source/core/dom/SecurityContext.cpp b/Source/core/dom/SecurityContext.cpp
index c81e923e553c2971c3be971db275d5402c6296d4..7e35661b3c9573fff661bb45685ca0d9703dcbcf 100644
--- a/Source/core/dom/SecurityContext.cpp
+++ b/Source/core/dom/SecurityContext.cpp
@@ -79,6 +79,10 @@ void SecurityContext::enforceSandboxFlags(SandboxFlags mask)
}
}
+void SecurityContext::enforceSuboriginFlags(const SuboriginFlags& mask)
+{
+}
+
void SecurityContext::didUpdateSecurityOrigin()
{
// Subclasses can override this function if the need to do extra work when the security origin changes.
@@ -141,4 +145,9 @@ SandboxFlags SecurityContext::parseSandboxPolicy(const String& policy, String& i
return flags;
}
+SuboriginFlags SecurityContext::parseSuboriginPolicy(const String& policy, String& invalidTokensErrorMessage)
+{
+ return String("my-suborigin-name");
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698