Chromium Code Reviews| Index: Source/modules/fetch/Request.idl |
| diff --git a/Source/modules/fetch/Request.idl b/Source/modules/fetch/Request.idl |
| index 4aacac79c05f6cdeb5cafdd0637caf4d89f85f72..99951c0367ef5d441659dbd754fc8d62cdbaa26a 100644 |
| --- a/Source/modules/fetch/Request.idl |
| +++ b/Source/modules/fetch/Request.idl |
| @@ -6,6 +6,13 @@ |
| typedef (Request or USVString) RequestInfo; |
| +enum RequestContext { |
| + "", "audio", "beacon", "cspreport", "download", "embed", "eventsource", "favicon", |
|
hiroshige
2015/04/09 17:43:21
nit: indent with 4 spaces?
shiva.jm
2015/04/10 09:27:10
Done.
|
| + "fetch", "font", "form", "frame", "hyperlink", "iframe", "image", "imageset", "import", |
| + "internal", "location", "manifest", "metarefresh", "object", "ping", "plugin", |
| + "prefetch", "script", "serviceworker", "sharedworker", |
| + "subresource", "style", "track", "video", "worker", "xmlhttprequest", "xslt" |
| +}; |
| enum RequestMode { "same-origin", "no-cors", "cors" }; |
| enum RequestCredentials { "omit", "same-origin", "include" }; |
| @@ -21,7 +28,7 @@ enum RequestCredentials { "omit", "same-origin", "include" }; |
| readonly attribute ByteString method; |
| readonly attribute USVString url; |
| readonly attribute Headers headers; |
| - |
| + readonly attribute RequestContext context; |
| readonly attribute DOMString referrer; |
| readonly attribute RequestMode mode; |
| readonly attribute RequestCredentials credentials; |
| @@ -31,9 +38,6 @@ enum RequestCredentials { "omit", "same-origin", "include" }; |
| // FIXME: Move this attribute into Body when the extended-attribute |
| // is removed. |
| [RuntimeEnabled=ExperimentalStream] readonly attribute ReadableByteStream body; |
| - |
| - // FIXME: Implement the following: |
| - // readonly attribute RequestContext context; |
| }; |
| Request implements Body; |