Removing uses of X11 native key events.
[chromium-blink-merge.git] / content / child / db_message_filter.h
blob7297a04817d782ed74d7abe67ee1c0aed21d32e1
1 // Copyright 2013 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.
5 #ifndef CONTENT_CHILD_DB_MESSAGE_FILTER_H_
6 #define CONTENT_CHILD_DB_MESSAGE_FILTER_H_
8 #include "base/strings/string16.h"
9 #include "ipc/message_filter.h"
11 namespace content {
13 // Receives database messages from the browser process and processes them on the
14 // IO thread.
15 class DBMessageFilter : public IPC::MessageFilter {
16 public:
17 DBMessageFilter();
19 // IPC::MessageFilter
20 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
22 protected:
23 virtual ~DBMessageFilter() {}
25 private:
26 void OnDatabaseUpdateSize(const std::string& origin_identifier,
27 const base::string16& database_name,
28 int64 database_size);
29 void OnDatabaseUpdateSpaceAvailable(const std::string& origin_identifier,
30 int64 space_available);
31 void OnDatabaseResetSpaceAvailable(const std::string& origin_identifier);
32 void OnDatabaseCloseImmediately(const std::string& origin_identifier,
33 const base::string16& database_name);
36 } // namespace content
38 #endif // CONTENT_CHILD_DB_MESSAGE_FILTER_H_