Commit ab1d634a authored by Stuart Langley's avatar Stuart Langley Committed by Commit Bot

Removed unused DatabaseMsg IPC messages.

The messages DatabaseMsg_UpdateSpaceAvailable & DatabaseMsg_ResetSpaceAvailable
are not being used and can be removed.

This is preliminary work for Mojofying the rest of this interface.

Bug: 757277
Change-Id: I2842a71b48ba5a8f07ed8ce6eb6d1792749ce13a
Reviewed-on: https://chromium-review.googlesource.com/622457
Commit-Queue: Stuart Langley <slangley@chromium.org>
Reviewed-by: default avatarMichael Nordman <michaeln@chromium.org>
Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#496560}
parent 6c63de17
......@@ -24,10 +24,6 @@ bool DBMessageFilter::OnMessageReceived(const IPC::Message& message) {
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)
......@@ -43,17 +39,6 @@ void DBMessageFilter::OnDatabaseUpdateSize(const url::Origin& origin,
origin, WebString::FromUTF16(database_name), database_size);
}
void DBMessageFilter::OnDatabaseUpdateSpaceAvailable(const url::Origin& origin,
int64_t space_available) {
DCHECK(!origin.unique());
blink::WebDatabase::UpdateSpaceAvailable(origin, space_available);
}
void DBMessageFilter::OnDatabaseResetSpaceAvailable(const url::Origin& origin) {
DCHECK(!origin.unique());
blink::WebDatabase::ResetSpaceAvailable(origin);
}
void DBMessageFilter::OnDatabaseCloseImmediately(
const url::Origin& origin,
const base::string16& database_name) {
......
......@@ -32,9 +32,6 @@ class DBMessageFilter : public IPC::MessageFilter {
void OnDatabaseUpdateSize(const url::Origin& origin,
const base::string16& database_name,
int64_t database_size);
void OnDatabaseUpdateSpaceAvailable(const url::Origin& origin,
int64_t space_available);
void OnDatabaseResetSpaceAvailable(const url::Origin& origin);
void OnDatabaseCloseImmediately(const url::Origin& origin,
const base::string16& database_name);
};
......
......@@ -21,15 +21,6 @@ IPC_MESSAGE_CONTROL3(DatabaseMsg_UpdateSize,
base::string16 /* the database name */,
int64_t /* the new database size */)
// Notifies the child process of the new space available
IPC_MESSAGE_CONTROL2(DatabaseMsg_UpdateSpaceAvailable,
url::Origin /* the origin */,
int64_t /* space available to origin */)
// Notifies the child process to reset it's cached value for the origin.
IPC_MESSAGE_CONTROL1(DatabaseMsg_ResetSpaceAvailable,
url::Origin /* the origin */)
// Asks the child process to close a database immediately
IPC_MESSAGE_CONTROL2(DatabaseMsg_CloseImmediately,
url::Origin /* the origin */,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment