cros: Don't check consume kiosk flag for enterprise managed device.
[chromium-blink-merge.git] / content / common / db_message_filter.h
blobac157ff1e0e9f440e6c1d9f765318c9153b1ed77
1 // Copyright (c) 2012 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_COMMON_DB_MESSAGE_FILTER_H_
6 #define CONTENT_COMMON_DB_MESSAGE_FILTER_H_
8 #include "ipc/ipc_channel_proxy.h"
10 namespace content {
12 // Receives database messages from the browser process and processes them on the
13 // IO thread.
14 class DBMessageFilter : public IPC::ChannelProxy::MessageFilter {
15 public:
16 DBMessageFilter();
18 // IPC::ChannelProxy::MessageFilter
19 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
21 protected:
22 virtual ~DBMessageFilter() {}
24 private:
25 void OnDatabaseUpdateSize(const std::string& origin_identifier,
26 const string16& database_name,
27 int64 database_size);
28 void OnDatabaseUpdateSpaceAvailable(const std::string& origin_identifier,
29 int64 space_available);
30 void OnDatabaseResetSpaceAvailable(const std::string& origin_identifier);
31 void OnDatabaseCloseImmediately(const std::string& origin_identifier,
32 const string16& database_name);
35 } // namespace content
37 #endif // CONTENT_COMMON_DB_MESSAGE_FILTER_H_