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

Side by Side Diff: modules/serviceworkers/Headers.idl

Issue 959933002: Move IDLs to 39 roll (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 5 years, 10 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 | « modules/serviceworkers/FetchEvent.idl ('k') | modules/serviceworkers/InstallEvent.idl » ('j') | 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 // http://fetch.spec.whatwg.org/#headers-class 5 // http://fetch.spec.whatwg.org/#headers-class
6 typedef Dictionary OpenEndedDictionary;
6 [ 7 [
7 Constructor, 8 Constructor,
8 Constructor(Headers input), 9 Constructor(Headers input),
9 Constructor(Dictionary input), 10 Constructor(OpenEndedDictionary input),
10 RuntimeEnabled=ServiceWorker, 11 RuntimeEnabled=ServiceWorker,
11 Exposed=ServiceWorker, 12 Exposed=ServiceWorker,
12 RaisesException=Constructor, 13 RaisesException=Constructor,
13 WillBeGarbageCollected, 14 GarbageCollected,
14 ] interface Headers { 15 ] interface Headers {
15 [RaisesException] void append(ByteString name, ByteString value); 16 [RaisesException] void append(ByteString name, ByteString value);
16 [ImplementedAs=remove, RaisesException] void delete(ByteString key); 17 [ImplementedAs=remove, RaisesException] void delete(ByteString key);
17 [RaisesException] ByteString? get(ByteString key); 18 [RaisesException] ByteString? get(ByteString key);
18 [RaisesException] sequence<ByteString> getAll(ByteString name); 19 [RaisesException] sequence<ByteString> getAll(ByteString name);
19 [RaisesException] boolean has(ByteString key); 20 [RaisesException] boolean has(ByteString key);
20 [RaisesException] void set(ByteString key, ByteString value); 21 [RaisesException] void set(ByteString key, ByteString value);
21 22
22 // The following are not defined in the spec. 23 // The following are not defined in the spec.
23 // FIXME: We should implement Headers.prototype[Symbol.iterator] instead of 24 // FIXME: We should implement Headers.prototype[Symbol.iterator] instead of
24 // forEach and size. 25 // forEach and size.
25 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=26102 26 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=26102
26 readonly attribute unsigned long size; 27 readonly attribute unsigned long size;
27 void forEach(HeadersForEachCallback callback, optional any thisArg); 28 void forEach(HeadersForEachCallback callback, optional any thisArg);
28 }; 29 };
OLDNEW
« no previous file with comments | « modules/serviceworkers/FetchEvent.idl ('k') | modules/serviceworkers/InstallEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698