Index: third_party/WebKit/Source/core/workers/WorkerGlobalScope.h |
diff --git a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h |
index 4e64e97bc445939dcffb9270ffaa8bfca8dd6fca..41e684d2fb4067af80fa0e2737c9e0542bd17426 100644 |
--- a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h |
+++ b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h |
@@ -40,6 +40,7 @@ |
#include "core/frame/csp/ContentSecurityPolicy.h" |
#include "core/workers/WorkerEventQueue.h" |
#include "core/workers/WorkerOrWorkletGlobalScope.h" |
+#include "core/workers/WorkerSettings.h" |
#include "platform/heap/Handle.h" |
#include "wtf/ListHashSet.h" |
#include <memory> |
@@ -128,6 +129,7 @@ public: |
const KURL& url() const { return m_url; } |
WorkerThread* thread() const { return m_thread; } |
double timeOrigin() const { return m_timeOrigin; } |
+ WorkerSettings* workerSettings() const { return m_workerSettings.get(); } |
WorkerOrWorkletScriptController* scriptController() final { return m_scriptController.get(); } |
WorkerInspectorController* workerInspectorController() { return m_workerInspectorController.get(); } |
@@ -138,6 +140,7 @@ public: |
protected: |
WorkerGlobalScope(const KURL&, const String& userAgent, WorkerThread*, double timeOrigin, std::unique_ptr<SecurityOrigin::PrivilegeData>, WorkerClients*); |
+ void setWorkerSettings(std::unique_ptr<WorkerSettings>); |
void applyContentSecurityPolicyFromVector(const Vector<CSPHeaderAndType>& headers); |
void addMessageToWorkerConsole(ConsoleMessage*); |
@@ -162,6 +165,7 @@ private: |
const KURL m_url; |
const String m_userAgent; |
V8CacheOptions m_v8CacheOptions; |
+ std::unique_ptr<WorkerSettings> m_workerSettings; |
mutable Member<WorkerLocation> m_location; |
mutable Member<WorkerNavigator> m_navigator; |