Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1026)

Unified Diff: content/common/db_message_filter.cc

Issue 7037018: DB quota (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/db_message_filter.h ('k') | content/renderer/renderer_webkitclient_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/db_message_filter.cc
===================================================================
--- content/common/db_message_filter.cc (revision 86348)
+++ content/common/db_message_filter.cc (working copy)
@@ -15,6 +15,10 @@
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(DBMessageFilter, message)
IPC_MESSAGE_HANDLER(DatabaseMsg_UpdateSize, OnDatabaseUpdateSize)
+ IPC_MESSAGE_HANDLER(DatabaseMsg_UpdateSpaceAvailable,
+ OnDatabaseUpdateSpaceAvailable)
+ IPC_MESSAGE_HANDLER(DatabaseMsg_ResetSpaceAvailable,
+ OnDatabaseResetSpaceAvailable)
IPC_MESSAGE_HANDLER(DatabaseMsg_CloseImmediately,
OnDatabaseCloseImmediately)
IPC_MESSAGE_UNHANDLED(handled = false)
@@ -24,12 +28,23 @@
void DBMessageFilter::OnDatabaseUpdateSize(const string16& origin_identifier,
const string16& database_name,
- int64 database_size,
- int64 space_available) {
+ int64 database_size) {
WebKit::WebDatabase::updateDatabaseSize(
- origin_identifier, database_name, database_size, space_available);
+ origin_identifier, database_name, database_size);
}
+void DBMessageFilter::OnDatabaseUpdateSpaceAvailable(
+ const string16& origin_identifier,
+ int64 space_available) {
+ WebKit::WebDatabase::updateSpaceAvailable(
+ origin_identifier, space_available);
+}
+
+void DBMessageFilter::OnDatabaseResetSpaceAvailable(
+ const string16& origin_identifier) {
+ WebKit::WebDatabase::resetSpaceAvailable(origin_identifier);
+}
+
void DBMessageFilter::OnDatabaseCloseImmediately(
const string16& origin_identifier,
const string16& database_name) {
« no previous file with comments | « content/common/db_message_filter.h ('k') | content/renderer/renderer_webkitclient_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698