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

Unified Diff: content/common/database_messages.h

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/browser/renderer_host/database_message_filter.cc ('k') | content/common/database_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/database_messages.h
===================================================================
--- content/common/database_messages.h (revision 86348)
+++ content/common/database_messages.h (working copy)
@@ -13,12 +13,20 @@
// Database messages sent from the browser to the renderer.
// Notifies the child process of the new database size
-IPC_MESSAGE_CONTROL4(DatabaseMsg_UpdateSize,
+IPC_MESSAGE_CONTROL3(DatabaseMsg_UpdateSize,
string16 /* the origin */,
string16 /* the database name */,
- int64 /* the new database size */,
+ int64 /* the new database size */)
+
+// Notifies the child process of the new space available
+IPC_MESSAGE_CONTROL2(DatabaseMsg_UpdateSpaceAvailable,
+ string16 /* the origin */,
int64 /* space available to origin */)
+// Notifies the child process to reset it's cached value for the origin.
+IPC_MESSAGE_CONTROL1(DatabaseMsg_ResetSpaceAvailable,
+ string16 /* the origin */)
+
// Asks the child process to close a database immediately
IPC_MESSAGE_CONTROL2(DatabaseMsg_CloseImmediately,
string16 /* the origin */,
@@ -48,6 +56,11 @@
string16 /* vfs file name */,
int64 /* the size of the given DB file */)
+// Asks the browser process for the amount of space available to an origin
+IPC_SYNC_MESSAGE_CONTROL1_1(DatabaseHostMsg_GetSpaceAvailable,
+ string16 /* origin identifier */,
+ int64 /* remaining space available */)
+
// Notifies the browser process that a new database has been opened
IPC_MESSAGE_CONTROL4(DatabaseHostMsg_Opened,
string16 /* origin identifier */,
« no previous file with comments | « content/browser/renderer_host/database_message_filter.cc ('k') | content/common/database_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698