#ifndef CONTENT_CHILD_DB_MESSAGE_FILTER_H_
#define CONTENT_CHILD_DB_MESSAGE_FILTER_H_
#include "ipc/ipc_channel_proxy.h"
namespace content {
class DBMessageFilter : public IPC::ChannelProxy::MessageFilter {
public:
DBMessageFilter();
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
protected:
virtual ~DBMessageFilter() {}
private:
void OnDatabaseUpdateSize(const std::string& origin_identifier,
const base::string16& database_name,
int64 database_size);
void OnDatabaseUpdateSpaceAvailable(const std::string& origin_identifier,
int64 space_available);
void OnDatabaseResetSpaceAvailable(const std::string& origin_identifier);
void OnDatabaseCloseImmediately(const std::string& origin_identifier,
const base::string16& database_name);
};
}
#endif