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

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

Issue 540533002: Roll IDL to Dartium37 (r181268) (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 6 years, 3 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
(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 // FIXME: Fetch spec has renamed this to just 'Headers'
7 // FIXME: This should be defined as MapClass(DOMString, DOMString)
8 // once binding code supports it (http://crbug.com/347435).
9 [
10 Constructor,
11 RuntimeEnabled=ServiceWorker,
12 Exposed=ServiceWorker
13 ] interface HeaderMap {
14 readonly attribute unsigned long size;
15
16 // FIXME: Define keys, values, entries.
17 // FIXME: Some of the method definitions (like set) don't strictly
18 // follow the MapClass's ones (http://heycam.github.io/webidl/#MapClass),
19 // as this is supposed to be a transient implementation until we have real
20 // MapClass.
21
22 void clear();
23 [ImplementedAs=remove] boolean delete(DOMString key);
24 DOMString get(DOMString key);
25 boolean has(DOMString key);
26 void set(DOMString key, DOMString value);
27 void forEach(HeaderMapForEachCallback callback, optional any thisArg);
28 };
OLDNEW
« no previous file with comments | « modules/serviceworkers/FetchEvent.idl ('k') | modules/serviceworkers/HeaderMapForEachCallback.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698