diff options
| author | Kristian Monsen <kristianm@google.com> | 2010-08-04 08:39:03 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-08-04 08:39:03 -0700 |
| commit | d90694237e0403668232924a79fabfb3d1214e6c (patch) | |
| tree | 2e9e7d84abc77b3bf5eac3c62f0278640fe51038 /WebKit/android | |
| parent | c94a537cedc7e6e3600ef48507207122579e7cb4 (diff) | |
| parent | 45a646fce6be884b5be7ab636087462f5cdbff0e (diff) | |
| download | external_webkit-d90694237e0403668232924a79fabfb3d1214e6c.zip external_webkit-d90694237e0403668232924a79fabfb3d1214e6c.tar.gz external_webkit-d90694237e0403668232924a79fabfb3d1214e6c.tar.bz2 | |
Merge "Compile fix after chromium merge"
Diffstat (limited to 'WebKit/android')
| -rw-r--r-- | WebKit/android/WebCoreSupport/WebRequestContext.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/WebKit/android/WebCoreSupport/WebRequestContext.cpp b/WebKit/android/WebCoreSupport/WebRequestContext.cpp index 2adbbf9..a65b77b 100644 --- a/WebKit/android/WebCoreSupport/WebRequestContext.cpp +++ b/WebKit/android/WebCoreSupport/WebRequestContext.cpp @@ -28,8 +28,9 @@ #include "WebRequestContext.h" #include "JNIUtility.h" -#include "app/sqlite_persistent_cookie_store.h" #include "jni.h" +#include "base/message_loop_proxy.h" +#include "chrome/browser/net/sqlite_persistent_cookie_store.h" #include "net/base/cookie_monster.h" #include "net/base/ssl_config_service.h" #include "net/http/http_cache.h" @@ -88,10 +89,13 @@ WebRequestContext* WebRequestContext::GetAndroidContext() androidContext = new WebRequestContext(); androidContext->host_resolver_ = net::CreateSystemHostResolver(0); - androidContext->http_transaction_factory_ = new net::HttpCache(0, androidContext->host_resolver(), 0, net::SSLConfigService::CreateSystemSSLConfigService(), cachePath, 0); + scoped_refptr<base::MessageLoopProxy> cacheMessageLoopProxy = base::MessageLoopProxy::CreateForCurrentThread(); + // Todo: check if the context takes ownership of the cache + net::HttpCache::DefaultBackend* defaultBackend = new net::HttpCache::DefaultBackend(net::DISK_CACHE, cachePath, 20 * 1024 * 1024, cacheMessageLoopProxy); + androidContext->http_transaction_factory_ = new net::HttpCache(androidContext->host_resolver(), 0, net::SSLConfigService::CreateSystemSSLConfigService(), 0, 0, 0, defaultBackend); scoped_refptr<SQLitePersistentCookieStore> cookieDb = new SQLitePersistentCookieStore(cookiePath); - androidContext->cookie_store_ = new net::CookieMonster(cookieDb.get()); + androidContext->cookie_store_ = new net::CookieMonster(cookieDb.get(), 0); } return androidContext; |
