2006-10-30 Zach Rusin <zack@kde.org>
authorandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 30 Oct 2006 19:38:28 +0000 (19:38 +0000)
committerandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 30 Oct 2006 19:38:28 +0000 (19:38 +0000)
        Reviewed and landed by Anders.

        * platform/network/qt/ResourceHandleQt.cpp:
        (WebCore::ResourceHandle::receivedResponse):
        * platform/qt/FrameQtClient.cpp:
        (WebCore::FrameQtClientDefault::FrameQtClientDefault):
        * platform/qt/LoaderFunctionsQt.cpp:
        (WebCore::ServeSynchronousRequest):
        More build fixes.

2006-10-30  Simon Hausmann  <hausmann@kde.org>

        Reviewed and landed by Anders.

        - fix Qt build
        * platform/qt/FrameQtClient.cpp: ResourceLoaderClient ->
        ResourceHandleClient

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17440 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/network/qt/ResourceHandleQt.cpp
WebCore/platform/qt/FrameQtClient.cpp
WebCore/platform/qt/LoaderFunctionsQt.cpp

index 03669cc..1109718 100644 (file)
@@ -1,3 +1,23 @@
+2006-10-30  Zach Rusin  <zack@kde.org>
+
+        Reviewed and landed by Anders.
+
+        * platform/network/qt/ResourceHandleQt.cpp:
+        (WebCore::ResourceHandle::receivedResponse):
+        * platform/qt/FrameQtClient.cpp:
+        (WebCore::FrameQtClientDefault::FrameQtClientDefault):
+        * platform/qt/LoaderFunctionsQt.cpp:
+        (WebCore::ServeSynchronousRequest):
+        More build fixes.
+
+2006-10-30  Simon Hausmann  <hausmann@kde.org>
+
+        Reviewed and landed by Anders.
+        
+        - fix Qt build
+        * platform/qt/FrameQtClient.cpp: ResourceLoaderClient ->
+        ResourceHandleClient
+
 2006-10-30  Darin Adler  <darin@apple.com>
 
         Reviewed by John Sullivan.
index e0b85be..7d04087 100644 (file)
@@ -22,7 +22,7 @@
  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
 #include "config.h"
@@ -68,30 +68,10 @@ void ResourceHandle::cancel()
     ResourceHandleManager::self()->cancel(this);
 }
 
-void ResourceHandle::assembleResponseHeaders() const
-{
-    if (!d->assembledResponseHeaders) {
-        ASSERT(d->m_response);
-
-        d->responseHeaders = d->m_response->data;
-        d->assembledResponseHeaders = true;
-    }
-}
-
-void ResourceHandle::retrieveResponseEncoding() const
-{
-    if (!d->m_retrievedResponseEncoding) {
-        d->m_responseEncoding = extractCharsetFromHeaders(d->responseHeaders);
-        d->m_retrievedResponseEncoding = true;
-    }
-}
-
 void ResourceHandle::receivedResponse(PlatformResponse response)
 {
     Q_ASSERT(method() == "POST");
 
-    d->assembledResponseHeaders = false;
-    d->m_retrievedResponseEncoding = false;
     d->m_response = response;
 
     if (d->m_client)
index 9b3c0de..b0b0ada 100644 (file)
@@ -44,7 +44,7 @@ namespace WebCore {
 
 FrameQtClientDefault::FrameQtClientDefault()
     : FrameQtClient()
-    , ResourceLoaderClient()
+    , ResourceHandleClient()
     , m_frame(0)
     , m_assignedMimetype(false)
 {
index e8d625f..a6f5ad8 100644 (file)
@@ -22,7 +22,7 @@
  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
 #include "config.h"
 #include "Cache.h"
 #include "loader.h"
 #include "FrameQt.h"
+#include "Request.h"
+#include "ResourceHandle.h"
+#include "ResourceRequest.h"
 #include "DocLoader.h"
 #include "CachedResource.h"
 #include "DeprecatedString.h"
 
 namespace WebCore {
 
-Vector<char> ServeSynchronousRequest(Loader*, DocLoader *docLoader, const ResourceRequest&, KURL& url, DeprecatedString&)
+Vector<char> ServeSynchronousRequest(Loader*, DocLoader *docLoader, const ResourceRequest& request, ResourceResponse&)
 {
     // FIXME: Handle last paremeter: "responseHeaders"
     FrameQt* frame = QtFrame(docLoader->frame());
@@ -51,7 +54,7 @@ Vector<char> ServeSynchronousRequest(Loader*, DocLoader *docLoader, const Resour
 
     // FIXME: We shouldn't use temporary files for sync jobs!
     QString tempFile;
-    if (!KIO::NetAccess::download(KUrl(url.url()), tempFile, 0))
+    if (!KIO::NetAccess::download(KUrl(request.url().url()), tempFile, 0))
         return Vector<char>();
 
     QFile file(tempFile);
@@ -64,7 +67,7 @@ Vector<char> ServeSynchronousRequest(Loader*, DocLoader *docLoader, const Resour
 
     QByteArray content = file.readAll();
     KIO::NetAccess::removeTempFile(tempFile);
-    
+
     Vector<char> resultBuffer;
     resultBuffer.append(content.data(), content.size());