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

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

Issue 27073003: CSP Suborigins Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 6 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 9e52a25737814f0c9c018d57476c0d039652462f..851282feaf962811b6fe27469c39bc1193097cc2 100644
--- a/Source/core/dom/ExecutionContext.h
+++ b/Source/core/dom/ExecutionContext.h
@@ -125,6 +125,10 @@ public:
bool isSandboxed(SandboxFlags mask) const { return m_sandboxFlags & mask; }
void enforceSandboxFlags(SandboxFlags mask);
+ void enforceSuborigin(const String& name);
+ bool hasSuborigin() const { return m_client->securityContext().securityOrigin()->hasSuborigin(); }
+ String suboriginName() const { return m_client->securityContext().securityOrigin()->suboriginName(); }
+
PassOwnPtr<LifecycleNotifier<ExecutionContext> > createLifecycleNotifier();
virtual EventQueue* eventQueue() const = 0;
@@ -151,6 +155,7 @@ private:
ExecutionContextClient* m_client;
SandboxFlags m_sandboxFlags;
+ String m_suboriginName;
abarth-chromium 2014/07/31 04:56:47 Why do we store the m_suboriginName here but have
jww 2014/10/21 23:51:06 Yup, this was totally unnecessary, made even more
int m_circularSequentialID;
typedef HashMap<int, OwnPtr<DOMTimer> > TimeoutMap;

Powered by Google App Engine
This is Rietveld 408576698