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

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

Issue 304233017: ServiceWorker: Add layout tests for fetch event response (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: patch for landing 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
« no previous file with comments | « Source/modules/serviceworkers/Response.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#re sponse-objects
6 // FIXME: Split this idl/impl into AbstractResponse and Response. 6 // FIXME: Split this idl/impl into AbstractResponse and Response.
7 [ 7 [
8 // FIXME: Remove this legacy function after the required Chromium-side patch lands.
9 Constructor(optional Dictionary responseInitDict),
10 // 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.
11 Constructor(Blob body, optional Dictionary responseInitDict), 9 Constructor(Blob body, optional Dictionary responseInitDict),
12 RuntimeEnabled=ServiceWorker, 10 RuntimeEnabled=ServiceWorker,
13 Exposed=ServiceWorker 11 Exposed=ServiceWorker
14 ] interface Response { 12 ] interface Response {
15 readonly attribute unsigned short status; 13 readonly attribute unsigned short status;
16 14
17 // FIXME: Spec uses ByteString for this. We must perform the DOMString -> By teString conversion manually (crbug.com/347426). 15 // FIXME: Spec uses ByteString for this. We must perform the DOMString -> By teString conversion manually (crbug.com/347426).
18 readonly attribute DOMString statusText; 16 readonly attribute DOMString statusText;
19 17
20 readonly attribute HeaderMap headers; 18 readonly attribute HeaderMap headers;
21 19
22 // FIXME: Implement the following: 20 // FIXME: Implement the following:
23 // attribute DOMString url; 21 // attribute DOMString url;
24 // Promise<Blob> toBlob(); 22 // Promise<Blob> toBlob();
25 }; 23 };
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/Response.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698