summaryrefslogtreecommitdiffstats
path: root/WebKit/android/WebCoreSupport/WebCache.cpp
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-11-29 17:18:33 +0000
committerSteve Block <steveblock@google.com>2010-12-01 21:11:00 +0000
commitb84030fc8163cde1f8f055973ef63d3e1670bf52 (patch)
treec729707e5ba5ed11e581bc49c79e533ad6e96050 /WebKit/android/WebCoreSupport/WebCache.cpp
parentc7072d34375726918ff186dd3197d9677c2f98e3 (diff)
downloadexternal_webkit-b84030fc8163cde1f8f055973ef63d3e1670bf52.zip
external_webkit-b84030fc8163cde1f8f055973ef63d3e1670bf52.tar.gz
external_webkit-b84030fc8163cde1f8f055973ef63d3e1670bf52.tar.bz2
Use one WebRequestContext per WebView
This change switches from using a pair of WebRequestContexts (one for private browsing, one for regular browsing) to using one WebRequestContext per WebView. This is required to allow us to set the userAgent on each WebView. The WebRequestContext is now owned by the WebView. Bug: 3113804 Change-Id: Iba2b1490e7ce4ff65c08a04a310963fa2c7e4f83
Diffstat (limited to 'WebKit/android/WebCoreSupport/WebCache.cpp')
-rw-r--r--WebKit/android/WebCoreSupport/WebCache.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/WebKit/android/WebCoreSupport/WebCache.cpp b/WebKit/android/WebCoreSupport/WebCache.cpp
index d062bdc..16ec70f 100644
--- a/WebKit/android/WebCoreSupport/WebCache.cpp
+++ b/WebKit/android/WebCoreSupport/WebCache.cpp
@@ -57,6 +57,8 @@ static const std::string& rootDirectory()
static std::string storageDirectory(bool isPrivateBrowsing)
{
+ // TODO: Where is the right place to put the db for private browsing? Should
+ // it be kept in memory?
static const char* const kDirectory = "/webviewCacheChromium";
static const char* const kDirectoryPrivate = "/webviewCacheChromiumPrivate";