summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_webview_delegate.cc
diff options
context:
space:
mode:
authorsatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-12 11:14:39 +0000
committersatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-12 11:14:39 +0000
commit68c50e5a858c0ec0c06abebaef0fca939f76861d (patch)
treeccefd2c06ff694b78ff42d4ef2d9e2940ebc4fa7 /webkit/tools/test_shell/test_webview_delegate.cc
parent380e8ec681277f2297e2b72b85b2bde8ddb9eabf (diff)
downloadchromium_src-68c50e5a858c0ec0c06abebaef0fca939f76861d.zip
chromium_src-68c50e5a858c0ec0c06abebaef0fca939f76861d.tar.gz
chromium_src-68c50e5a858c0ec0c06abebaef0fca939f76861d.tar.bz2
Pass quota parameter to WebStorageNamespace::createSessionStorageNamespace().
Put a per-origin quota on session storage since it is using memory in the browser process, and should not be allowed to grow arbitrarily large. Landing on behalf of hans@chromium.org from http://codereview.chromium.org/1998003/show BUG=42740 TEST=none Review URL: http://codereview.chromium.org/1995014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47020 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/test_webview_delegate.cc')
-rw-r--r--webkit/tools/test_shell/test_webview_delegate.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/webkit/tools/test_shell/test_webview_delegate.cc b/webkit/tools/test_shell/test_webview_delegate.cc
index 169412e..6e5c8ce 100644
--- a/webkit/tools/test_shell/test_webview_delegate.cc
+++ b/webkit/tools/test_shell/test_webview_delegate.cc
@@ -333,8 +333,11 @@ WebWidget* TestWebViewDelegate::createPopupMenu(WebPopupType popup_type) {
return shell_->CreatePopupWidget();
}
-WebStorageNamespace* TestWebViewDelegate::createSessionStorageNamespace() {
- return WebKit::WebStorageNamespace::createSessionStorageNamespace();
+WebStorageNamespace* TestWebViewDelegate::createSessionStorageNamespace(
+ unsigned quota) {
+ // Enforce quota, ignoring the parameter from WebCore as in Chrome.
+ return WebKit::WebStorageNamespace::createSessionStorageNamespace(
+ WebStorageNamespace::m_sessionStorageQuota);
}
void TestWebViewDelegate::didAddMessageToConsole(