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

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

Issue 27073003: CSP Suborigins Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address many of mkwst's comments Created 5 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
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();

Powered by Google App Engine
This is Rietveld 408576698