diff options
| author | Steve Block <steveblock@google.com> | 2009-11-23 17:59:53 +0000 |
|---|---|---|
| committer | Steve Block <steveblock@google.com> | 2009-11-23 18:16:08 +0000 |
| commit | df05df3ae09dc4e9424495d6b42f898f2912f7a8 (patch) | |
| tree | b8a1015d47f8af108c0211767bf81f3ee6712438 | |
| parent | e7539b139ae6851cf6ed92a7741d38875e4c0909 (diff) | |
| download | external_webkit-df05df3ae09dc4e9424495d6b42f898f2912f7a8.zip external_webkit-df05df3ae09dc4e9424495d6b42f898f2912f7a8.tar.gz external_webkit-df05df3ae09dc4e9424495d6b42f898f2912f7a8.tar.bz2 | |
Moves initializeMaximumHTTPConnectionCountPerHost to a new ResourceRequestAndroid.cpp file.
This is in line with other WebKit ports, ready for upstreaming to webkit.org.
Change-Id: If7c73ee1c65ee69bba54b7acbc462ff3444e781e
| -rw-r--r-- | WebCore/Android.mk | 3 | ||||
| -rw-r--r-- | WebCore/platform/network/android/ResourceHandleAndroid.cpp | 8 | ||||
| -rw-r--r-- | WebCore/platform/network/android/ResourceRequestAndroid.cpp | 39 |
3 files changed, 41 insertions, 9 deletions
diff --git a/WebCore/Android.mk b/WebCore/Android.mk index 3bf593c..6d3c4b0 100644 --- a/WebCore/Android.mk +++ b/WebCore/Android.mk @@ -527,8 +527,9 @@ LOCAL_SRC_FILES := $(LOCAL_SRC_FILES) \ platform/network/SocketStreamHandleBase.cpp \ \ platform/network/android/Cookie.cpp \ - platform/network/android/ResourceHandleAndroid.cpp \ platform/network/android/NetworkStateNotifierAndroid.cpp \ + platform/network/android/ResourceHandleAndroid.cpp \ + platform/network/android/ResourceRequestAndroid.cpp \ \ platform/posix/FileSystemPOSIX.cpp \ \ diff --git a/WebCore/platform/network/android/ResourceHandleAndroid.cpp b/WebCore/platform/network/android/ResourceHandleAndroid.cpp index 27df7bf..15b369a 100644 --- a/WebCore/platform/network/android/ResourceHandleAndroid.cpp +++ b/WebCore/platform/network/android/ResourceHandleAndroid.cpp @@ -150,12 +150,4 @@ 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 diff --git a/WebCore/platform/network/android/ResourceRequestAndroid.cpp b/WebCore/platform/network/android/ResourceRequestAndroid.cpp new file mode 100644 index 0000000..7f4bccb --- /dev/null +++ b/WebCore/platform/network/android/ResourceRequestAndroid.cpp @@ -0,0 +1,39 @@ +/* + * Copyright 2009, The Android Open Source Project + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * 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. + */ + +#include "config.h" +#include "ResourceRequest.h" + +namespace WebCore { + +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 |
