summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorPatrick Scott <phanna@android.com>2009-07-30 08:25:20 -0400
committerPatrick Scott <phanna@android.com>2009-07-30 08:33:52 -0400
commitdb0259ad03028dc65597b01ac19813a85dd78278 (patch)
tree9d0367692381054da64d23305511e561af7a6445 /WebCore
parentda03bd066d796453c369a98de10fe2cd09bc4280 (diff)
downloadexternal_webkit-db0259ad03028dc65597b01ac19813a85dd78278.zip
external_webkit-db0259ad03028dc65597b01ac19813a85dd78278.tar.gz
external_webkit-db0259ad03028dc65597b01ac19813a85dd78278.tar.bz2
Implement our own parallel connection count initialization.
Use 20 since we have 4 connection threads that can pipeline up to 5 requests per thread.
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/platform/network/ResourceRequestBase.cpp2
-rw-r--r--WebCore/platform/network/android/ResourceHandleAndroid.cpp8
2 files changed, 9 insertions, 1 deletions
diff --git a/WebCore/platform/network/ResourceRequestBase.cpp b/WebCore/platform/network/ResourceRequestBase.cpp
index bfa3dc6..f9ecb6b 100644
--- a/WebCore/platform/network/ResourceRequestBase.cpp
+++ b/WebCore/platform/network/ResourceRequestBase.cpp
@@ -355,7 +355,7 @@ void ResourceRequestBase::updateResourceRequest() const
m_resourceRequestUpdated = true;
}
-#if !PLATFORM(MAC) && !USE(CFNETWORK)
+#if !PLATFORM(MAC) && !USE(CFNETWORK) && !PLATFORM(ANDROID)
unsigned initializeMaximumHTTPConnectionCountPerHost()
{
// This is used by the loader to control the number of issued parallel load requests.
diff --git a/WebCore/platform/network/android/ResourceHandleAndroid.cpp b/WebCore/platform/network/android/ResourceHandleAndroid.cpp
index 3d9b576..d67bc2b 100644
--- a/WebCore/platform/network/android/ResourceHandleAndroid.cpp
+++ b/WebCore/platform/network/android/ResourceHandleAndroid.cpp
@@ -148,4 +148,12 @@ void ResourceHandle::loadResourceSynchronously(const ResourceRequest& request,
client->webFrame()->startLoadingResource(&h, request, true);
}
+unsigned initializeMaximumHTTPConnectionCountPerHost()
+{
+ // This is used by the loader to control the number of parallel load
+ // requests. Our java framework has 4 threads that can each pipeline up to
+ // 5 requests. Use 20 as a maximum number.
+ return 20;
+}
+
} // namespace WebCore