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

Side by Side Diff: Source/modules/serviceworkers/Response.idl

Issue 287363004: ServiceWorker: support Response.{status,statusText,headers} [blink] (2/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 [ 5 [
6 Constructor(optional Dictionary responseInitDict), 6 Constructor(optional Dictionary responseInitDict),
7 RuntimeEnabled=ServiceWorker, 7 RuntimeEnabled=ServiceWorker,
8 Exposed=ServiceWorker 8 Exposed=ServiceWorker
9 ] interface Response { 9 ] interface Response {
10 attribute unsigned short statusCode; 10 attribute unsigned short status;
11 11
12 // FIXME: Spec uses ByteString for these. We must perform the DOMString -> B yteString conversion manually (crbug.com/347426). 12 // FIXME: Spec uses ByteString for this. We must perform the DOMString -> By teString conversion manually (crbug.com/347426).
13 attribute DOMString statusText; 13 attribute DOMString statusText;
14 attribute DOMString method;
15 14
16 // FIXME: Implement HeaderMap which uses the MapClass WebIDL attribute (crbu g.com/347435). 15 // Implements https://github.com/slightlyoff/ServiceWorker/issues/268
17 // FIXME: Can't return Dictionaries yet (crbug.com/364025). 16 attribute HeaderMap headers;
18 // getter Dictionary headers(); 17 getter DOMString getHeader(DOMString value);
jsbell 2014/05/23 20:59:49 Looks like the getter/setter are gone in the lates
kinuko 2014/05/26 05:45:13 Yes, so I updated the code.
19 setter void headers(Dictionary items); 18 setter void setHeader(DOMString name, DOMString value);
20 19
21 // FIXME: Implement the following: 20 // FIXME: Implement the following:
22 // attribute DOMString url; 21 // attribute DOMString url;
23 // Promise<Blob> toBlob(); 22 // Promise<Blob> toBlob();
24 }; 23 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698