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

Unified Diff: Source/core/dom/DOMURLUtils.h

Issue 143313002: Implement URLSearchParams. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update expected test outputs Created 6 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
Index: Source/core/dom/DOMURLUtils.h
diff --git a/Source/core/dom/DOMURLUtils.h b/Source/core/dom/DOMURLUtils.h
index 1987ecd72054e349d44a522bd9b4a50143f0e906..966ab1d97fff6a7800094b89637ef9686635a701 100644
--- a/Source/core/dom/DOMURLUtils.h
+++ b/Source/core/dom/DOMURLUtils.h
@@ -27,8 +27,10 @@
#ifndef DOMURLUtils_h
#define DOMURLUtils_h
+#include "core/dom/DOMURLSearchParams.h"
#include "core/dom/DOMURLUtilsReadOnly.h"
#include "wtf/Forward.h"
+#include "wtf/RefPtr.h"
#include "wtf/text/WTFString.h"
namespace WebCore {
@@ -39,7 +41,7 @@ class DOMURLUtils : public DOMURLUtilsReadOnly {
public:
virtual void setURL(const KURL&) = 0;
virtual void setInput(const String&) = 0;
- virtual ~DOMURLUtils() { };
+ virtual ~DOMURLUtils();
static void setHref(DOMURLUtils*, const String&);
@@ -52,6 +54,15 @@ public:
static void setPathname(DOMURLUtils*, const String&);
static void setSearch(DOMURLUtils*, const String&);
static void setHash(DOMURLUtils*, const String&);
+
+ static PassRefPtr<DOMURLSearchParams> searchParams(DOMURLUtils*, bool&);
+ static void setSearchParams(DOMURLUtils*, const String&);
+ static void setSearchParams(DOMURLUtils*, PassRefPtr<DOMURLSearchParams>);
+
+ static void update(DOMURLUtils*);
+
+protected:
+ RefPtr<DOMURLSearchParams> m_searchParams;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698