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

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

Issue 1117203002: Enforce referrer policies for workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix layout test indentation 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
« 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 854df0c9f5936aa1a52e9bb41c7a47511f8f3bc8..5fdbd76630c84eb689a9301cbb32662715ade20e 100644
--- a/Source/core/dom/ExecutionContext.h
+++ b/Source/core/dom/ExecutionContext.h
@@ -37,6 +37,7 @@
#include "platform/Supplementable.h"
#include "platform/heap/Handle.h"
#include "platform/weborigin/KURL.h"
+#include "platform/weborigin/ReferrerPolicy.h"
#include "wtf/Deque.h"
#include "wtf/Noncopyable.h"
#include "wtf/OwnPtr.h"
@@ -153,6 +154,9 @@ public:
// https://w3c.github.io/webappsec/specs/powerfulfeatures/#settings-privileged.
virtual bool isPrivilegedContext(String& errorMessage, const PrivilegeContextCheck = StandardPrivilegeCheck) = 0;
+ virtual void setReferrerPolicy(ReferrerPolicy);
+ ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; }
+
protected:
ExecutionContext();
virtual ~ExecutionContext();
@@ -191,6 +195,8 @@ private:
Deque<OwnPtr<SuspendableTask>> m_suspendedTasks;
bool m_isRunSuspendableTasksScheduled;
+
+ ReferrerPolicy m_referrerPolicy;
};
} // namespace blink
« 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