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

Unified Diff: third_party/WebKit/Source/core/dom/URLSearchParams.idl

Issue 1442643008: Implement 'URLSearchParams' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
Index: third_party/WebKit/Source/core/dom/URLSearchParams.idl
diff --git a/third_party/WebKit/Source/core/dom/URLSearchParams.idl b/third_party/WebKit/Source/core/dom/URLSearchParams.idl
new file mode 100644
index 0000000000000000000000000000000000000000..b219f2548cd6dda48862c88aefab7ab85654327a
--- /dev/null
+++ b/third_party/WebKit/Source/core/dom/URLSearchParams.idl
@@ -0,0 +1,21 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// http://url.spec.whatwg.org/#interface-urlsearchparams
sof 2015/11/15 09:04:11 http => https Including this spec reference in th
Mike West 2015/11/16 08:57:57 *facepalm* Yes. I should have done both.
+
+[
+ Constructor(),
+ Constructor(URLSearchParams initial),
+ Constructor(USVString queryString),
+ GarbageCollected,
sof 2015/11/15 09:04:11 Should we expose URLSearchParams to workers here a
Mike West 2015/11/16 08:57:57 We should. Added a test.
sof 2015/11/16 10:11:53 Nice, that's sufficient coverage.
+] interface URLSearchParams {
+ void append(USVString name, USVString value);
+ [ImplementedAs=deleteAllWithName] void delete(USVString name);
+ [TreatReturnedNullStringAs=Null] USVString get(USVString name);
+ sequence<USVString> getAll(USVString name);
+ boolean has(USVString name);
+ void set(USVString name, USVString value);
+
+ stringifier;
+};

Powered by Google App Engine
This is Rietveld 408576698