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

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

Issue 340943002: ServiceWorker: Update IDLs to use ScalarValueString (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add URLs and one real test case 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
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#he ader-map-interface 5 // http://fetch.spec.whatwg.org/#headers-class
6 // FIXME: Fetch spec has renamed this to just 'Headers'
6 // FIXME: This should be defined as MapClass(DOMString, DOMString) 7 // FIXME: This should be defined as MapClass(DOMString, DOMString)
7 // once binding code supports it (http://crbug.com/347435). 8 // once binding code supports it (http://crbug.com/347435).
8 [ 9 [
9 Constructor, 10 Constructor,
10 RuntimeEnabled=ServiceWorker, 11 RuntimeEnabled=ServiceWorker,
11 Exposed=ServiceWorker 12 Exposed=ServiceWorker
12 ] interface HeaderMap { 13 ] interface HeaderMap {
13 readonly attribute unsigned long size; 14 readonly attribute unsigned long size;
14 15
15 // FIXME: Define keys, values, entries. 16 // FIXME: Define keys, values, entries.
16 // FIXME: Some of the method definitions (like set) don't strictly 17 // FIXME: Some of the method definitions (like set) don't strictly
17 // follow the MapClass's ones (http://heycam.github.io/webidl/#MapClass), 18 // follow the MapClass's ones (http://heycam.github.io/webidl/#MapClass),
18 // as this is supposed to be a transient implementation until we have real 19 // as this is supposed to be a transient implementation until we have real
19 // MapClass. 20 // MapClass.
20 21
21 void clear(); 22 void clear();
22 [ImplementedAs=remove] boolean delete(DOMString key); 23 [ImplementedAs=remove] boolean delete(DOMString key);
23 DOMString get(DOMString key); 24 DOMString get(DOMString key);
24 boolean has(DOMString key); 25 boolean has(DOMString key);
25 void set(DOMString key, DOMString value); 26 void set(DOMString key, DOMString value);
26 void forEach(HeaderMapForEachCallback callback, optional any thisArg); 27 void forEach(HeaderMapForEachCallback callback, optional any thisArg);
27 }; 28 };
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/FetchEvent.idl ('k') | Source/modules/serviceworkers/InstallEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698