Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Side by Side Diff: content/child/db_message_filter.h

Issue 245443005: Move IPC::MessageFilter and router to a separate file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix gn build Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/child/child_thread.cc ('k') | content/child/indexed_db/indexed_db_message_filter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_CHILD_DB_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_CHILD_DB_MESSAGE_FILTER_H_
6 #define CONTENT_CHILD_DB_MESSAGE_FILTER_H_ 6 #define CONTENT_CHILD_DB_MESSAGE_FILTER_H_
7 7
8 #include "ipc/ipc_channel_proxy.h" 8 #include "base/strings/string16.h"
9 #include "ipc/message_filter.h"
9 10
10 namespace content { 11 namespace content {
11 12
12 // Receives database messages from the browser process and processes them on the 13 // Receives database messages from the browser process and processes them on the
13 // IO thread. 14 // IO thread.
14 class DBMessageFilter : public IPC::ChannelProxy::MessageFilter { 15 class DBMessageFilter : public IPC::MessageFilter {
15 public: 16 public:
16 DBMessageFilter(); 17 DBMessageFilter();
17 18
18 // IPC::ChannelProxy::MessageFilter 19 // IPC::MessageFilter
19 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 20 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
20 21
21 protected: 22 protected:
22 virtual ~DBMessageFilter() {} 23 virtual ~DBMessageFilter() {}
23 24
24 private: 25 private:
25 void OnDatabaseUpdateSize(const std::string& origin_identifier, 26 void OnDatabaseUpdateSize(const std::string& origin_identifier,
26 const base::string16& database_name, 27 const base::string16& database_name,
27 int64 database_size); 28 int64 database_size);
28 void OnDatabaseUpdateSpaceAvailable(const std::string& origin_identifier, 29 void OnDatabaseUpdateSpaceAvailable(const std::string& origin_identifier,
29 int64 space_available); 30 int64 space_available);
30 void OnDatabaseResetSpaceAvailable(const std::string& origin_identifier); 31 void OnDatabaseResetSpaceAvailable(const std::string& origin_identifier);
31 void OnDatabaseCloseImmediately(const std::string& origin_identifier, 32 void OnDatabaseCloseImmediately(const std::string& origin_identifier,
32 const base::string16& database_name); 33 const base::string16& database_name);
33 }; 34 };
34 35
35 } // namespace content 36 } // namespace content
36 37
37 #endif // CONTENT_CHILD_DB_MESSAGE_FILTER_H_ 38 #endif // CONTENT_CHILD_DB_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/child/child_thread.cc ('k') | content/child/indexed_db/indexed_db_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698