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

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

Issue 1109633002: Basic experimental suborigin CSP directive and SecurityOrigin mods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on ToT Created 5 years, 7 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 | « Source/core/dom/Document.cpp ('k') | Source/core/dom/ExecutionContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ExecutionContext.h
diff --git a/Source/core/dom/ExecutionContext.h b/Source/core/dom/ExecutionContext.h
index c5f8fc0826178f6cd5dc10c0915b2e545a326bb4..c314ee98e110e8594af8cd059afc4e58201dd305 100644
--- a/Source/core/dom/ExecutionContext.h
+++ b/Source/core/dom/ExecutionContext.h
@@ -99,7 +99,7 @@ public:
virtual void reportBlockedScriptExecutionToInspector(const String& directiveText) = 0;
- virtual const SecurityContext& securityContext() const = 0;
+ virtual SecurityContext& securityContext() = 0;
KURL contextURL() const { return virtualURL(); }
KURL contextCompleteURL(const String& url) const { return virtualCompleteURL(url); }
@@ -144,6 +144,10 @@ public:
void enforceStrictMixedContentChecking() { m_strictMixedContentCheckingEnforced = true; }
bool shouldEnforceStrictMixedContentChecking() const { return m_strictMixedContentCheckingEnforced; }
+ void enforceSuborigin(const String& name);
+ bool hasSuborigin();
+ String suboriginName();
+
// Methods related to window interaction. It should be used to manage window
// focusing and window creation permission for an ExecutionContext.
void allowWindowInteraction();
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/ExecutionContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698