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 // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#re sponse-objects | 5 // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#re quest-objects |
falken
2014/05/30 02:31:20
Since this patch adds/changes IDL files it's good
horo
2014/05/30 04:04:04
Done.
| |
6 // FIXME: Split this idl/impl into AbstractResponse and Response. | 6 |
7 [ | 7 [ |
8 Constructor(optional Dictionary responseInitDict), | 8 Constructor(optional Dictionary requestInitDict), |
9 RuntimeEnabled=ServiceWorker, | 9 RuntimeEnabled=ServiceWorker, |
10 Exposed=ServiceWorker | 10 Exposed=ServiceWorker |
11 ] interface Response { | 11 ] interface Request { |
12 readonly attribute unsigned short status; | 12 attribute DOMString url; |
13 | |
14 // FIXME: Spec uses ByteString for this. We must perform the DOMString -> By teString conversion manually (crbug.com/347426). | 13 // FIXME: Spec uses ByteString for this. We must perform the DOMString -> By teString conversion manually (crbug.com/347426). |
15 readonly attribute DOMString statusText; | 14 attribute DOMString method; |
16 | 15 readonly attribute DOMString origin; |
17 readonly attribute HeaderMap headers; | 16 readonly attribute HeaderMap headers; |
18 | 17 |
19 // FIXME: Implement the following: | 18 // FIXME: Implement the following: |
20 // attribute DOMString url; | 19 // attribute unsigned long timeout; |
21 // Promise<Blob> toBlob(); | 20 // readonly attribute Mode mode; |
21 // attribute boolean synchronous; | |
22 // readonly attribute unsigned long redirectCount; | |
23 // attribute boolean forcePreflight; | |
24 // attribute boolean forceSameOrigin; | |
25 // attribute boolean omitCredentials; | |
26 // readonly attribute DOMString referrer; | |
27 // attribute any body; | |
22 }; | 28 }; |
OLD | NEW |