Clean up NETWORK_SESSION code after r191848
[WebKit-https.git] / Source / WebKit2 / NetworkProcess / NetworkSession.h
index 69a1189070b8ece52c11a0e64318012b26d37dcb..742a616a3f51b678c0addf055a2b3601d903bc8b 100644 (file)
@@ -67,8 +67,8 @@ class NetworkSessionTaskClient {
 public:
     virtual void willPerformHTTPRedirection(const WebCore::ResourceResponse&, const WebCore::ResourceRequest&, std::function<void(const WebCore::ResourceRequest&)>) = 0;
     virtual void didReceiveChallenge(const WebCore::AuthenticationChallenge&, std::function<void(AuthenticationChallengeDisposition, const WebCore::Credential&)>) = 0;
-    virtual void didReceiveResponse(WebCore::ResourceResponse&, std::function<void(ResponseDisposition)>) = 0;
-    virtual void didReceiveData(RefPtr<WebCore::SharedBuffer>) = 0;
+    virtual void didReceiveResponse(const WebCore::ResourceResponse&, std::function<void(ResponseDisposition)>) = 0;
+    virtual void didReceiveData(RefPtr<WebCore::SharedBuffer>&&) = 0;
     virtual void didCompleteWithError(const WebCore::ResourceError&) = 0;
 
     virtual ~NetworkSessionTaskClient() { }
@@ -103,7 +103,7 @@ public:
         Ephemeral
     };
 
-    RefPtr<NetworkingDataTask> createDataTaskWithRequest(const WebCore::ResourceRequest&, NetworkSessionTaskClient&);
+    Ref<NetworkingDataTask> createDataTaskWithRequest(const WebCore::ResourceRequest&, NetworkSessionTaskClient&);
 
     static Ref<NetworkSession> singleton(); // FIXME: This shouldn't actually be a singleton.
     NetworkingDataTask* dataTaskForIdentifier(uint64_t);