| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_COMMON_DB_MESSAGE_FILTER_H_ | |
| 6 #define CHROME_COMMON_DB_MESSAGE_FILTER_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "ipc/ipc_channel_proxy.h" | |
| 10 | |
| 11 // Receives database messages from the browser process and processes them on the | |
| 12 // IO thread. | |
| 13 class DBMessageFilter : public IPC::ChannelProxy::MessageFilter { | |
| 14 public: | |
| 15 DBMessageFilter(); | |
| 16 | |
| 17 private: | |
| 18 virtual bool OnMessageReceived(const IPC::Message& message); | |
| 19 | |
| 20 void OnDatabaseUpdateSize(const string16& origin_identifier, | |
| 21 const string16& database_name, | |
| 22 int64 database_size, | |
| 23 int64 space_available); | |
| 24 void OnDatabaseCloseImmediately(const string16& origin_identifier, | |
| 25 const string16& database_name); | |
| 26 }; | |
| 27 | |
| 28 #endif // CHROME_COMMON_DB_MESSAGE_FILTER_H_ | |
| OLD | NEW |