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

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

Issue 10696166: Remove #pragma once from content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/common/database_util.h ('k') | content/common/debug_flags.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 (c) 2012 The Chromium Authors. All rights reserved. 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 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_COMMON_DB_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_COMMON_DB_MESSAGE_FILTER_H_
6 #define CONTENT_COMMON_DB_MESSAGE_FILTER_H_ 6 #define CONTENT_COMMON_DB_MESSAGE_FILTER_H_
7 #pragma once
8 7
9 #include "ipc/ipc_channel_proxy.h" 8 #include "ipc/ipc_channel_proxy.h"
10 9
11 // Receives database messages from the browser process and processes them on the 10 // Receives database messages from the browser process and processes them on the
12 // IO thread. 11 // IO thread.
13 class DBMessageFilter : public IPC::ChannelProxy::MessageFilter { 12 class DBMessageFilter : public IPC::ChannelProxy::MessageFilter {
14 public: 13 public:
15 DBMessageFilter(); 14 DBMessageFilter();
16 15
17 // IPC::ChannelProxy::MessageFilter 16 // IPC::ChannelProxy::MessageFilter
18 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 17 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
19 18
20 protected: 19 protected:
21 virtual ~DBMessageFilter() {} 20 virtual ~DBMessageFilter() {}
22 21
23 private: 22 private:
24 void OnDatabaseUpdateSize(const string16& origin_identifier, 23 void OnDatabaseUpdateSize(const string16& origin_identifier,
25 const string16& database_name, 24 const string16& database_name,
26 int64 database_size); 25 int64 database_size);
27 void OnDatabaseUpdateSpaceAvailable(const string16& origin_identifier, 26 void OnDatabaseUpdateSpaceAvailable(const string16& origin_identifier,
28 int64 space_available); 27 int64 space_available);
29 void OnDatabaseResetSpaceAvailable(const string16& origin_identifier); 28 void OnDatabaseResetSpaceAvailable(const string16& origin_identifier);
30 void OnDatabaseCloseImmediately(const string16& origin_identifier, 29 void OnDatabaseCloseImmediately(const string16& origin_identifier,
31 const string16& database_name); 30 const string16& database_name);
32 }; 31 };
33 32
34 #endif // CONTENT_COMMON_DB_MESSAGE_FILTER_H_ 33 #endif // CONTENT_COMMON_DB_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/common/database_util.h ('k') | content/common/debug_flags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698