summaryrefslogtreecommitdiffstats
path: root/webkit/glue/chrome_client_impl.cc
diff options
context:
space:
mode:
authordumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-27 23:06:34 +0000
committerdumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-27 23:06:34 +0000
commit017022b726b9e1b7ceb022c3b046b0cadb0302f9 (patch)
tree7fb115ea6421413029ae4f35ca7b6d09fc66fc95 /webkit/glue/chrome_client_impl.cc
parent0f9813550e8055faab81e77a9e134b3cff3aa3b3 (diff)
downloadchromium_src-017022b726b9e1b7ceb022c3b046b0cadb0302f9.zip
chromium_src-017022b726b9e1b7ceb022c3b046b0cadb0302f9.tar.gz
chromium_src-017022b726b9e1b7ceb022c3b046b0cadb0302f9.tar.bz2
Adding HTML5 DB support to Chromium: Chromium changes
BUG=none TEST=none Review URL: http://codereview.chromium.org/74001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21736 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/chrome_client_impl.cc')
-rw-r--r--webkit/glue/chrome_client_impl.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/webkit/glue/chrome_client_impl.cc b/webkit/glue/chrome_client_impl.cc
index fa965ef..1390dfa 100644
--- a/webkit/glue/chrome_client_impl.cc
+++ b/webkit/glue/chrome_client_impl.cc
@@ -14,6 +14,7 @@ MSVC_PUSH_WARNING_LEVEL(0);
#include "Cursor.h"
#include "Document.h"
#include "DocumentLoader.h"
+#include "DatabaseTracker.h"
#include "FloatRect.h"
#include "FileChooser.h"
#include "FrameLoadRequest.h"
@@ -541,7 +542,10 @@ void ChromeClientImpl::print(WebCore::Frame* frame) {
void ChromeClientImpl::exceededDatabaseQuota(WebCore::Frame* frame,
const WebCore::String& databaseName) {
- // TODO(tc): If we enable the storage API, we need to implement this function.
+ // set a reasonable quota for now -- 5Mb should be enough for anybody
+ // TODO(dglazkov): this should be configurable
+ WebCore::SecurityOrigin* origin = frame->document()->securityOrigin();
+ WebCore::DatabaseTracker::tracker().setQuota(origin, 1024 * 1024 * 5);
}
void ChromeClientImpl::runOpenPanel(WebCore::Frame* frame,