Index: Source/core/dom/ExecutionContext.h |
diff --git a/Source/core/dom/ExecutionContext.h b/Source/core/dom/ExecutionContext.h |
index 25db3803fc59755487154072a5580e886296c020..db169ffcc6158e51530011f7aee521c1217dddfe 100644 |
--- a/Source/core/dom/ExecutionContext.h |
+++ b/Source/core/dom/ExecutionContext.h |
@@ -35,6 +35,7 @@ |
#include "platform/Supplementable.h" |
#include "platform/heap/Handle.h" |
#include "platform/weborigin/KURL.h" |
+#include "platform/weborigin/SecurityOrigin.h" |
#include "wtf/OwnPtr.h" |
#include "wtf/PassOwnPtr.h" |
@@ -123,6 +124,10 @@ public: |
void enforceStrictMixedContentChecking() { m_strictMixedContentCheckingEnforced = true; } |
bool shouldEnforceStrictMixedContentChecking() const { return m_strictMixedContentCheckingEnforced; } |
+ void enforceSuborigin(const String& name); |
+ bool hasSuborigin() { return securityContext().securityOrigin()->hasSuborigin(); } |
+ String suboriginName() { return securityContext().securityOrigin()->suboriginName(); } |
+ |
// Methods related to window interaction. It should be used to manage window |
// focusing and window creation permission for an ExecutionContext. |
void allowWindowInteraction(); |