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

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

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

Powered by Google App Engine
This is Rietveld 408576698