Chromium Code Reviews| 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(); |