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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/WorkerV8Settings.h

Issue 2627953005: Make workers inherit the large heap limit of the main isolate. (Closed)
Patch Set: fix tests Created 3 years, 11 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/bindings/core/v8/WorkerV8Settings.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/WorkerV8Settings.h b/third_party/WebKit/Source/bindings/core/v8/WorkerV8Settings.h
new file mode 100644
index 0000000000000000000000000000000000000000..6dc5676c9be9d2ddae4ec3615c0a4dc1b48f955a
--- /dev/null
+++ b/third_party/WebKit/Source/bindings/core/v8/WorkerV8Settings.h
@@ -0,0 +1,26 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WorkerV8Settings_h
+#define WorkerV8Settings_h
+
+#include "bindings/core/v8/V8CacheOptions.h"
+#include "core/CoreExport.h"
+
+namespace blink {
+
+// The V8 settings that are passed from the main isolate to the worker isolate.
+struct CORE_EXPORT WorkerV8Settings {
+ enum class HeapLimitMode { Default, IncreasedForDebugging };
+ WorkerV8Settings(HeapLimitMode heapLimitMode, V8CacheOptions v8CacheOptions)
+ : m_heapLimitMode(heapLimitMode), m_v8CacheOptions(v8CacheOptions) {}
+ static WorkerV8Settings Default() {
+ return WorkerV8Settings(HeapLimitMode::Default, V8CacheOptionsDefault);
+ }
+ HeapLimitMode m_heapLimitMode;
+ V8CacheOptions m_v8CacheOptions;
+};
+
+} // namespace blink
+#endif // WorkerV8Setttings
« no previous file with comments | « third_party/WebKit/Source/bindings/bindings.gni ('k') | third_party/WebKit/Source/core/workers/DedicatedWorkerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698