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

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

Issue 340943002: ServiceWorker: Update IDLs to use ScalarValueString (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add URLs and one real test case Created 6 years, 6 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 // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#re sponse-objects 5 // http://fetch.spec.whatwg.org/#response-class
6 // FIXME: Split this idl/impl into AbstractResponse and Response. 6 // FIXME: Split this idl/impl into AbstractResponse and Response.
7 [ 7 [
8 // FIXME: Add ctors for String, Stream, and ArrayBuffer/ArrayBufferView resp onse bodies. 8 // FIXME: Add ctors for String, Stream, and ArrayBuffer/ArrayBufferView resp onse bodies.
9 Constructor(Blob body, optional Dictionary responseInitDict), 9 Constructor(Blob body, optional Dictionary responseInitDict),
10 RuntimeEnabled=ServiceWorker, 10 RuntimeEnabled=ServiceWorker,
11 Exposed=ServiceWorker 11 Exposed=ServiceWorker
12 ] interface Response { 12 ] interface Response {
13 attribute unsigned short status; 13 attribute unsigned short status;
14 attribute ByteString statusText; 14 attribute ByteString statusText;
15 readonly attribute HeaderMap headers; 15 readonly attribute HeaderMap headers;
16 16
17 // FIXME: Implement the following: 17 // FIXME: Implement the following:
18 // attribute DOMString url; 18 // attribute DOMString url;
19 // Promise<Blob> toBlob(); 19 // Promise<Blob> toBlob();
20 }; 20 };
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/Request.idl ('k') | Source/modules/serviceworkers/ServiceWorker.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698