summaryrefslogtreecommitdiffstats
path: root/dom/url/URLSearchParams.h
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2019-03-13 21:20:12 +0200
committerJustOff <Off.Just.Off@gmail.com>2019-03-13 21:20:12 +0200
commit04c16841227708a6037acb14ba506f0981481e37 (patch)
treed5476f69595a047801191506c46aa9bb81e8ae65 /dom/url/URLSearchParams.h
parentca23830127a2123100e52e644302e23143d8369a (diff)
downloadUXP-04c16841227708a6037acb14ba506f0981481e37.tar
UXP-04c16841227708a6037acb14ba506f0981481e37.tar.gz
UXP-04c16841227708a6037acb14ba506f0981481e37.tar.lz
UXP-04c16841227708a6037acb14ba506f0981481e37.tar.xz
UXP-04c16841227708a6037acb14ba506f0981481e37.zip
Construct URLSearchParams from sequence or from string
Diffstat (limited to 'dom/url/URLSearchParams.h')
-rw-r--r--dom/url/URLSearchParams.h19
1 files changed, 3 insertions, 16 deletions
diff --git a/dom/url/URLSearchParams.h b/dom/url/URLSearchParams.h
index 4b0aaa991..5eef1b1a9 100644
--- a/dom/url/URLSearchParams.h
+++ b/dom/url/URLSearchParams.h
@@ -20,6 +20,7 @@ namespace mozilla {
namespace dom {
class URLSearchParams;
+class USVStringSequenceSequenceOrUSVString;
class URLSearchParamsObserver : public nsISupports
{
@@ -43,14 +44,6 @@ public:
DeleteAll();
}
- explicit URLParams(const URLParams& aOther)
- : mParams(aOther.mParams)
- {}
-
- URLParams(const URLParams&& aOther)
- : mParams(Move(aOther.mParams))
- {}
-
class ForEachIterator
{
public:
@@ -144,9 +137,6 @@ public:
explicit URLSearchParams(nsISupports* aParent,
URLSearchParamsObserver* aObserver=nullptr);
- URLSearchParams(nsISupports* aParent,
- const URLSearchParams& aOther);
-
// WebIDL methods
nsISupports* GetParentObject() const
{
@@ -157,11 +147,8 @@ public:
WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
static already_AddRefed<URLSearchParams>
- Constructor(const GlobalObject& aGlobal, const nsAString& aInit,
- ErrorResult& aRv);
-
- static already_AddRefed<URLSearchParams>
- Constructor(const GlobalObject& aGlobal, URLSearchParams& aInit,
+ Constructor(const GlobalObject& aGlobal,
+ const USVStringSequenceSequenceOrUSVString& aInit,
ErrorResult& aRv);
void ParseInput(const nsACString& aInput);