Unreviewed, rolling out r140420.
[WebKit-https.git] / Source / WebCore / platform / network / ResourceHandleClient.h
index 90e631e..3d55d86 100644 (file)
 #include <CFNetwork/CFURLResponsePriv.h>
 #endif
 
-#if USE(SOUP)
-#include <glib.h>
-#endif
-
 #if PLATFORM(WIN) && USE(CFNETWORK)
 #include <ConditionalMacros.h>
 #endif
@@ -67,19 +63,7 @@ namespace WebCore {
     
     class ResourceHandleClient {
     public:
-#if USE(SOUP)
-        ResourceHandleClient(): m_buffer(0) { }
-
-        virtual ~ResourceHandleClient()
-        {
-            if (m_buffer) {
-                g_free(m_buffer);
-                m_buffer = 0;
-            }
-        }
-#else
         virtual ~ResourceHandleClient() { }
-#endif
 
         // request may be modified
         virtual void willSendRequest(ResourceHandle*, ResourceRequest&, const ResourceResponse& /*redirectResponse*/) { }
@@ -98,18 +82,6 @@ namespace WebCore {
         virtual void didReceiveDataArray(ResourceHandle*, CFArrayRef) { }
 #endif
 
-#if USE(SOUP)
-        virtual char* getBuffer(int requestedLength, int* actualLength)
-        {
-            *actualLength = requestedLength;
-
-            if (!m_buffer)
-                m_buffer = static_cast<char*>(g_malloc(requestedLength));
-
-            return m_buffer;
-        }
-#endif
-
         virtual bool shouldUseCredentialStorage(ResourceHandle*) { return false; }
         virtual void didReceiveAuthenticationChallenge(ResourceHandle*, const AuthenticationChallenge&) { }
         virtual void didCancelAuthenticationChallenge(ResourceHandle*, const AuthenticationChallenge&) { }
@@ -135,11 +107,6 @@ namespace WebCore {
 #if ENABLE(BLOB)
         virtual AsyncFileStream* createAsyncFileStream(FileStreamClient*) { return 0; }
 #endif
-
-#if USE(SOUP)
-private:
-        char* m_buffer;
-#endif
     };
 
 }