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

Unified Diff: third_party/WebKit/Source/core/workers/WorkletOptions.idl

Issue 2868413005: Worklet: Introduce WorkletOptions for addModule() (Closed)
Patch Set: add TODO comments Created 3 years, 7 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/WorkletOptions.idl
diff --git a/third_party/WebKit/Source/core/workers/WorkletOptions.idl b/third_party/WebKit/Source/core/workers/WorkletOptions.idl
new file mode 100644
index 0000000000000000000000000000000000000000..5fcff7e0e4437ace0bcb5f97315e90ccb6e8ba9e
--- /dev/null
+++ b/third_party/WebKit/Source/core/workers/WorkletOptions.idl
@@ -0,0 +1,14 @@
+// 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.
+
+// https://fetch.spec.whatwg.org/#requestcredentials
+// Copied from modules/fetch/Request.idl because it's not accessible from core/
+// directory.
+// TODO(nhiroki): Consider how to reuse the existing enum.
nhiroki 2017/05/12 09:24:46 yhirano@, any thoughts? Is it more preferable to m
yhirano 2017/05/12 10:56:34 lgtm
+enum RequestCredentials { "omit", "same-origin", "include" };
+
+// https://drafts.css-houdini.org/worklets/#dictdef-workletoptions
+dictionary WorkletOptions {
+ RequestCredentials credentials = "omit";
+};

Powered by Google App Engine
This is Rietveld 408576698