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

Unified Diff: modules/fetch/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, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/fetch/Body.idl ('k') | modules/fetch/Request.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/fetch/Headers.idl
diff --git a/modules/serviceworkers/Headers.idl b/modules/fetch/Headers.idl
similarity index 67%
rename from modules/serviceworkers/Headers.idl
rename to modules/fetch/Headers.idl
index 1b29e74ee529aaf4ee548605866ca0c1612cb3db..e17dba911da41dcb256a07abb702952a8df7f9c4 100644
--- a/modules/serviceworkers/Headers.idl
+++ b/modules/fetch/Headers.idl
@@ -8,10 +8,11 @@ typedef Dictionary OpenEndedDictionary;
Constructor,
Constructor(Headers input),
Constructor(OpenEndedDictionary input),
- RuntimeEnabled=ServiceWorker,
- Exposed=ServiceWorker,
+ Constructor(sequence<sequence<ByteString>> input),
+ Exposed=(Window,Worker),
RaisesException=Constructor,
GarbageCollected,
+ TypeChecking=Interface,
] interface Headers {
[RaisesException] void append(ByteString name, ByteString value);
[ImplementedAs=remove, RaisesException] void delete(ByteString key);
@@ -19,11 +20,5 @@ typedef Dictionary OpenEndedDictionary;
[RaisesException] sequence<ByteString> getAll(ByteString name);
[RaisesException] boolean has(ByteString key);
[RaisesException] void set(ByteString key, ByteString value);
-
- // The following are not defined in the spec.
- // FIXME: We should implement Headers.prototype[Symbol.iterator] instead of
- // forEach and size.
- // https://www.w3.org/Bugs/Public/show_bug.cgi?id=26102
- readonly attribute unsigned long size;
- void forEach(HeadersForEachCallback callback, optional any thisArg);
+ iterable<ByteString, ByteString>;
};
« no previous file with comments | « modules/fetch/Body.idl ('k') | modules/fetch/Request.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698