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

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

Issue 143313002: Implement URLSearchParams. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 4 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 | « Source/core/dom/DOMURLUtils.cpp ('k') | Source/core/dom/URLUtils.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/URLSearchParams.idl
diff --git a/Source/core/dom/URLSearchParams.idl b/Source/core/dom/URLSearchParams.idl
new file mode 100644
index 0000000000000000000000000000000000000000..6f7a9a9e94873fcfcaeaa661977affda5a80090f
--- /dev/null
+++ b/Source/core/dom/URLSearchParams.idl
@@ -0,0 +1,25 @@
+// Copyright 2014 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
+
+[
+ // FIXME: use an optional union type instead,
+ // Constructor(optional (ScalarValueString or URLSearchParams) init = "");
+ // http://crbug.com/240176
+ Constructor(),
+ Constructor(URLSearchParams initial),
+ Constructor(ScalarValueString queryString),
+ GarbageCollected,
+ ImplementedAs=DOMURLSearchParams,
+] interface URLSearchParams {
+ [NotEnumerable] ScalarValueString toString();
+
+ void append(ScalarValueString name, ScalarValueString value);
+ [ImplementedAs=deleteAllWithName] void delete(ScalarValueString name);
+ [TreatReturnedNullStringAs=Null] ScalarValueString get(ScalarValueString name);
+ sequence<ScalarValueString> getAll(ScalarValueString name);
+ boolean has(ScalarValueString name);
+ void set(ScalarValueString name, ScalarValueString value);
+};
« no previous file with comments | « Source/core/dom/DOMURLUtils.cpp ('k') | Source/core/dom/URLUtils.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698