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

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

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
« no previous file with comments | « no previous file | Source/core/dom/SecurityContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/SecurityContext.h
diff --git a/Source/core/dom/SecurityContext.h b/Source/core/dom/SecurityContext.h
index 0674b939bdcf85ce367b5d62ce1654465448ba21..6b32d0f17d4cc3e2dcfdb520d0950bf1a624a7c7 100644
--- a/Source/core/dom/SecurityContext.h
+++ b/Source/core/dom/SecurityContext.h
@@ -55,6 +55,8 @@ enum SandboxFlag {
typedef int SandboxFlags;
+typedef String SuboriginFlags;
abarth-chromium 2013/10/13 05:14:50 We don't usually create typedefs for Strings. If
+
class SecurityContext {
public:
SecurityOrigin* securityOrigin() const { return m_securityOrigin.get(); }
@@ -64,6 +66,7 @@ public:
bool isSecureTransitionTo(const KURL&) const;
void enforceSandboxFlags(SandboxFlags mask);
+ void enforceSuboriginFlags(const SuboriginFlags& mask);
bool isSandboxed(SandboxFlags mask) const { return m_sandboxFlags & mask; }
// Explicitly override the security origin for this security context.
@@ -73,6 +76,8 @@ public:
static SandboxFlags parseSandboxPolicy(const String& policy, String& invalidTokensErrorMessage);
+ static SuboriginFlags parseSuboriginPolicy(const String& policy, String& invalidTokensErrorMessage);
+
protected:
SecurityContext();
virtual ~SecurityContext();
« no previous file with comments | « no previous file | Source/core/dom/SecurityContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698