summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/InspectorServer/HTTPRequest.h
diff options
context:
space:
mode:
authorKonstantin Tokarev <annulen@yandex.ru>2016-08-25 19:20:41 +0300
committerKonstantin Tokarev <annulen@yandex.ru>2017-02-02 12:30:55 +0000
commit6882a04fb36642862b11efe514251d32070c3d65 (patch)
treeb7959826000b061fd5ccc7512035c7478742f7b0 /Source/WebKit2/UIProcess/InspectorServer/HTTPRequest.h
parentab6df191029eeeb0b0f16f127d553265659f739e (diff)
downloadqtwebkit-6882a04fb36642862b11efe514251d32070c3d65.tar.gz
Imported QtWebKit TP3 (git b57bc6801f1876c3220d5a4bfea33d620d477443)
Change-Id: I3b1d8a2808782c9f34d50240000e20cb38d3680f Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
Diffstat (limited to 'Source/WebKit2/UIProcess/InspectorServer/HTTPRequest.h')
-rw-r--r--Source/WebKit2/UIProcess/InspectorServer/HTTPRequest.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/WebKit2/UIProcess/InspectorServer/HTTPRequest.h b/Source/WebKit2/UIProcess/InspectorServer/HTTPRequest.h
index 719e24114..ffb317ec8 100644
--- a/Source/WebKit2/UIProcess/InspectorServer/HTTPRequest.h
+++ b/Source/WebKit2/UIProcess/InspectorServer/HTTPRequest.h
@@ -34,7 +34,7 @@
#include <WebCore/HTTPHeaderMap.h>
#include <WebCore/HTTPParsers.h>
-#include <WebCore/KURL.h>
+#include <WebCore/URL.h>
#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
#include <wtf/text/WTFString.h>
@@ -43,16 +43,16 @@ namespace WebKit {
class HTTPRequest : public RefCounted<HTTPRequest> {
public:
- static PassRefPtr<HTTPRequest> create() { return adoptRef(new HTTPRequest()); }
- static PassRefPtr<HTTPRequest> create(const String& requestMethod, const WebCore::KURL& url, WebCore::HTTPVersion version) { return adoptRef(new HTTPRequest(requestMethod, url, version)); }
+ static Ref<HTTPRequest> create() { return adoptRef(*new HTTPRequest()); }
+ static Ref<HTTPRequest> create(const String& requestMethod, const WebCore::URL& url, WebCore::HTTPVersion version) { return adoptRef(*new HTTPRequest(requestMethod, url, version)); }
static PassRefPtr<HTTPRequest> parseHTTPRequestFromBuffer(const char* data, size_t length, String& failureReason);
virtual ~HTTPRequest();
String requestMethod() const { return m_requestMethod; }
void setRequestMethod(const String& method) { m_requestMethod = method; }
- WebCore::KURL url() const { return m_url; }
- void setURL(const WebCore::KURL& url) { m_url = url; }
+ WebCore::URL url() const { return m_url; }
+ void setURL(const WebCore::URL& url) { m_url = url; }
const Vector<unsigned char>& body() const { return m_body; }
@@ -62,14 +62,14 @@ public:
protected:
HTTPRequest();
- HTTPRequest(const String& requestMethod, const WebCore::KURL&, WebCore::HTTPVersion);
+ HTTPRequest(const String& requestMethod, const WebCore::URL&, WebCore::HTTPVersion);
// Parsing helpers.
size_t parseRequestLine(const char* data, size_t length, String& failureReason);
size_t parseHeaders(const char* data, size_t length, String& failureReason);
size_t parseRequestBody(const char* data, size_t length);
- WebCore::KURL m_url;
+ WebCore::URL m_url;
WebCore::HTTPVersion m_httpVersion;
String m_requestMethod;
WebCore::HTTPHeaderMap m_headerFields;