Chromium Code Reviews| 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"; |
| +}; |