| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // http://fetch.spec.whatwg.org/#request-class | 5 // http://fetch.spec.whatwg.org/#request-class |
| 6 | 6 |
| 7 typedef (Request or USVString) RequestInfo; | 7 typedef (Request or USVString) RequestInfo; |
| 8 | 8 |
| 9 enum RequestContext { | 9 enum RequestContext { |
| 10 "", "audio", "beacon", "cspreport", "download", "embed", "eventsource", "fav
icon", | 10 "", "audio", "beacon", "cspreport", "download", "embed", "eventsource", "fav
icon", |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 Constructor(RequestInfo input, optional Dictionary requestInitDict), | 33 Constructor(RequestInfo input, optional Dictionary requestInitDict), |
| 34 ConstructorCallWith=ScriptState, | 34 ConstructorCallWith=ScriptState, |
| 35 Exposed=(Window,Worker), | 35 Exposed=(Window,Worker), |
| 36 RaisesException=Constructor, | 36 RaisesException=Constructor, |
| 37 DependentLifetime, | 37 DependentLifetime, |
| 38 ] interface Request { | 38 ] interface Request { |
| 39 readonly attribute ByteString method; | 39 readonly attribute ByteString method; |
| 40 readonly attribute USVString url; | 40 readonly attribute USVString url; |
| 41 [ImplementedAs=getHeaders] readonly attribute Headers headers; | 41 [ImplementedAs=getHeaders] readonly attribute Headers headers; |
| 42 readonly attribute DOMString referrer; | 42 readonly attribute DOMString referrer; |
| 43 readonly attribute ReferrerPolicy referrerPolicy; | 43 [ImplementedAs=getReferrerPolicy] readonly attribute ReferrerPolicy referrer
Policy; |
| 44 readonly attribute RequestMode mode; | 44 readonly attribute RequestMode mode; |
| 45 readonly attribute RequestCredentials credentials; | 45 readonly attribute RequestCredentials credentials; |
| 46 readonly attribute RequestRedirect redirect; | 46 readonly attribute RequestRedirect redirect; |
| 47 readonly attribute DOMString integrity; | 47 readonly attribute DOMString integrity; |
| 48 | 48 |
| 49 [RaisesException, CallWith=ScriptState] Request clone(); | 49 [RaisesException, CallWith=ScriptState] Request clone(); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 Request implements Body; | 52 Request implements Body; |
| OLD | NEW |