summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/WebCoreSupport/ResourceLoaderAndroid.cpp
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2012-02-23 04:29:34 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-02-23 04:29:34 -0800
commitb7db22cf52aade90ac9d1fb8eb2f2bf37b711b13 (patch)
treefdd09976b171f736c3d17abc84e4840a5d3f2eba /Source/WebKit/android/WebCoreSupport/ResourceLoaderAndroid.cpp
parentdfdb101465a930f38ec4294b0b8063c1f0f1bdbc (diff)
parent4bcd50196a7fe4c0c909ce6a7cfac6a808336611 (diff)
downloadexternal_webkit-b7db22cf52aade90ac9d1fb8eb2f2bf37b711b13.zip
external_webkit-b7db22cf52aade90ac9d1fb8eb2f2bf37b711b13.tar.gz
external_webkit-b7db22cf52aade90ac9d1fb8eb2f2bf37b711b13.tar.bz2
Merge "Drop support for Android HTTP stack"
Diffstat (limited to 'Source/WebKit/android/WebCoreSupport/ResourceLoaderAndroid.cpp')
-rw-r--r--Source/WebKit/android/WebCoreSupport/ResourceLoaderAndroid.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/Source/WebKit/android/WebCoreSupport/ResourceLoaderAndroid.cpp b/Source/WebKit/android/WebCoreSupport/ResourceLoaderAndroid.cpp
index 7f54810..92c39b8 100644
--- a/Source/WebKit/android/WebCoreSupport/ResourceLoaderAndroid.cpp
+++ b/Source/WebKit/android/WebCoreSupport/ResourceLoaderAndroid.cpp
@@ -29,7 +29,6 @@
#include "Frame.h"
#include "FrameLoaderClientAndroid.h"
#include "WebCoreFrameBridge.h"
-#include "WebCoreResourceLoader.h"
#include "WebUrlLoader.h"
#include "WebViewCore.h"
@@ -42,18 +41,13 @@ PassRefPtr<ResourceLoaderAndroid> ResourceLoaderAndroid::start(
{
// Called on main thread
FrameLoaderClientAndroid* clientAndroid = static_cast<FrameLoaderClientAndroid*>(client);
-#if USE(CHROME_NETWORK_STACK)
WebViewCore* webViewCore = WebViewCore::getWebViewCore(clientAndroid->getFrame()->view());
bool isMainFrame = !(clientAndroid->getFrame()->tree() && clientAndroid->getFrame()->tree()->parent());
return WebUrlLoader::start(client, handle, request, isMainResource, isMainFrame, isSync, webViewCore->webRequestContext());
-#else
- return clientAndroid->webFrame()->startLoadingResource(handle, request, isMainResource, isSync);
-#endif
}
bool ResourceLoaderAndroid::willLoadFromCache(const WebCore::KURL& url, int64_t identifier)
{
-#if USE(CHROME_NETWORK_STACK)
// This method is used to determine if a POST request can be repeated from
// cache, but you cannot really know until you actually try to read from the
// cache. Even if we checked now, something else could come along and wipe
@@ -63,9 +57,6 @@ bool ResourceLoaderAndroid::willLoadFromCache(const WebCore::KURL& url, int64_t
// reload. Then in FrameLoaderClientImpl::dispatchWillSendRequest, we
// fix-up the cache policy of the request to force a load from the cache.
return true;
-#else
- return WebCoreResourceLoader::willLoadFromCache(url, identifier);
-#endif
}
}