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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp

Issue 2171563002: Add WorkerSettings to expose certain flag values in WorkerGlobalScope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 4 years, 5 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: third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
index 5a61b752a8f78409d2159e0dc5eec0a9dd55d0b9..a0dfed0f2153565a932891ed32ea26c1f5f78034 100644
--- a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
@@ -319,6 +319,11 @@ void WorkerGlobalScope::applyContentSecurityPolicyFromVector(const Vector<CSPHea
contentSecurityPolicy()->bindToExecutionContext(getExecutionContext());
}
+void WorkerGlobalScope::setWorkerSettings(std::unique_ptr<WorkerSettings> workerSettings)
+{
+ m_workerSettings = std::move(workerSettings);
+}
+
void WorkerGlobalScope::addMessageToWorkerConsole(ConsoleMessage* consoleMessage)
{
DCHECK(isContextThread());
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerGlobalScope.h ('k') | third_party/WebKit/Source/core/workers/WorkerSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698