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

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

Issue 2841003002: Disallow Atomics.wait in ServiceWorker, allow in SharedWorker (Closed)
Patch Set: rename to IsAtomicsWaitAllowed Created 3 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 | « no previous file | third_party/WebKit/Source/core/workers/DedicatedWorkerMessagingProxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index 3730794119e29995f17a41fadb1aa40ff9e76ec4..a6b3a6616daa3ad39a91957ddb5f6fa75b3720c7 100644
--- a/third_party/WebKit/Source/bindings/core/v8/WorkerV8Settings.h
+++ b/third_party/WebKit/Source/bindings/core/v8/WorkerV8Settings.h
@@ -13,15 +13,20 @@ namespace blink {
// The V8 settings that are passed from the main isolate to the worker isolate.
struct CORE_EXPORT WorkerV8Settings {
enum class HeapLimitMode { kDefault, kIncreasedForDebugging };
+ enum class AtomicsWaitMode { kDisallow, kAllow };
WorkerV8Settings(HeapLimitMode heap_limit_mode,
- V8CacheOptions v8_cache_options)
+ V8CacheOptions v8_cache_options,
+ AtomicsWaitMode atomics_wait_mode)
: heap_limit_mode_(heap_limit_mode),
- v8_cache_options_(v8_cache_options) {}
+ v8_cache_options_(v8_cache_options),
+ atomics_wait_mode_(atomics_wait_mode) {}
static WorkerV8Settings Default() {
- return WorkerV8Settings(HeapLimitMode::kDefault, kV8CacheOptionsDefault);
+ return WorkerV8Settings(HeapLimitMode::kDefault, kV8CacheOptionsDefault,
+ AtomicsWaitMode::kDisallow);
}
HeapLimitMode heap_limit_mode_;
V8CacheOptions v8_cache_options_;
+ AtomicsWaitMode atomics_wait_mode_;
};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/workers/DedicatedWorkerMessagingProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698