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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/Body.idl

Issue 1805843002: [v8 gc] Introduce a base class for all objects that can have pending activity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 4 years, 9 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
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 // http://fetch.spec.whatwg.org/#body 5 // http://fetch.spec.whatwg.org/#body
6 typedef object JSON; 6 typedef object JSON;
7 [ 7 [
8 ActiveScriptWrappable,
9 DependentLifetime,
8 Exposed=ServiceWorker, 10 Exposed=ServiceWorker,
11 GarbageCollected,
9 NoInterfaceObject, 12 NoInterfaceObject,
10 DependentLifetime,
11 GarbageCollected,
12 ] interface Body { 13 ] interface Body {
13 readonly attribute boolean bodyUsed; 14 readonly attribute boolean bodyUsed;
14 [CallWith=ScriptState] Promise<ArrayBuffer> arrayBuffer(); 15 [CallWith=ScriptState] Promise<ArrayBuffer> arrayBuffer();
15 [CallWith=ScriptState] Promise<Blob> blob(); 16 [CallWith=ScriptState] Promise<Blob> blob();
16 [CallWith=ScriptState] Promise<JSON> json(); 17 [CallWith=ScriptState] Promise<JSON> json();
17 [CallWith=ScriptState] Promise<USVString> text(); 18 [CallWith=ScriptState] Promise<USVString> text();
18 19
19 // body attribute is defined in sub-interfaces, because the IDL processor 20 // body attribute is defined in sub-interfaces, because the IDL processor
20 // cannot deal with attribute inheritance with runtime enabled flag. 21 // cannot deal with attribute inheritance with runtime enabled flag.
21 // [RuntimeEnabled=ExperimentalStream] readonly attribute ReadableByteStream body; 22 // [RuntimeEnabled=ExperimentalStream] readonly attribute ReadableByteStream body;
22 23
23 // Still to be implemented. 24 // Still to be implemented.
24 // [CallWith=ScriptState] Promise<FormData> formData(); 25 // [CallWith=ScriptState] Promise<FormData> formData();
25 }; 26 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698