Index: Source/core/dom/DOMURLSearchParams.h |
diff --git a/Source/modules/performance/SharedWorkerPerformance.h b/Source/core/dom/DOMURLSearchParams.h |
similarity index 56% |
copy from Source/modules/performance/SharedWorkerPerformance.h |
copy to Source/core/dom/DOMURLSearchParams.h |
index 9189bd931804900db163505d2668ab02c49b171f..307664493286d4225c74d69e26ece02efe91bb57 100644 |
--- a/Source/modules/performance/SharedWorkerPerformance.h |
+++ b/Source/core/dom/DOMURLSearchParams.h |
@@ -27,31 +27,52 @@ |
* OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef SharedWorkerPerformance_h |
-#define SharedWorkerPerformance_h |
+#ifndef DOMURLSearchParams_h |
+#define DOMURLSearchParams_h |
-#include "platform/Supplementable.h" |
+#include "bindings/v8/ScriptWrappable.h" |
+#include "wtf/Forward.h" |
+#include "wtf/RefCounted.h" |
+#include "wtf/text/WTFString.h" |
+#include <utility> |
namespace WebCore { |
-class ExecutionContext; |
-class SharedWorker; |
+class DOMURLUtils; |
-class SharedWorkerPerformance FINAL : public Supplement<SharedWorker> { |
+class DOMURLSearchParams : public ScriptWrappable, public RefCounted<DOMURLSearchParams> { |
public: |
- virtual ~SharedWorkerPerformance(); |
- static SharedWorkerPerformance* from(SharedWorker*); |
+ static PassRefPtr<DOMURLSearchParams> create(const String& = String()); |
+ static PassRefPtr<DOMURLSearchParams> create(DOMURLSearchParams*); |
- static double workerStart(ExecutionContext*, SharedWorker*); |
- double getWorkerStart(ExecutionContext*, SharedWorker*) const; |
+ String toString() const; |
+ |
+ void appendNameValue(const String& name, const String& value); |
+ void deleteAllWithName(const String&); |
+ String getFirstValue(const String&) const; |
+ |
+ Vector<String> getAllValues(const String&) const; |
+ bool hasName(const String&) const; |
+ void setNameValue(const String& name, const String& value); |
+ |
+ void setInput(const String&); |
+ |
+ void setURLObject(DOMURLUtils* urlObject) { m_urlObject = urlObject; } |
+ DOMURLUtils* getURLObject() const { return m_urlObject; } |
private: |
- explicit SharedWorkerPerformance(); |
- static const char* supplementName(); |
+ DOMURLSearchParams(); |
+ |
+ void runUpdateSteps(); |
+ |
+ Vector<std::pair<String, String> > m_params; |
- double m_timeOrigin; |
+ // See FIXME in DOMURLUtils::setSearchParams() regarding the |
+ // handling of this reference to the URL object. |
+ DOMURLUtils* m_urlObject; |
+ bool m_isUpdating; |
}; |
} // namespace WebCore |
-#endif // SharedWorkerPerformance_h |
+#endif // DOMURLSearchParams_h |