| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_COMMON_DB_MESSAGE_FILTER_H_ | 5 #ifndef CHROME_COMMON_DB_MESSAGE_FILTER_H_ |
| 6 #define CHROME_COMMON_DB_MESSAGE_FILTER_H_ | 6 #define CHROME_COMMON_DB_MESSAGE_FILTER_H_ |
| 7 | 7 |
| 8 #include "base/id_map.h" | |
| 9 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
| 10 #include "base/waitable_event.h" | 9 #include "base/waitable_event.h" |
| 10 #include "chrome/common/id_map.h" |
| 11 #include "ipc/ipc_channel_proxy.h" | 11 #include "ipc/ipc_channel_proxy.h" |
| 12 | 12 |
| 13 class Lock; | 13 class Lock; |
| 14 class MessageLoop; | 14 class MessageLoop; |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class AtomicSequenceNumber; | 17 class AtomicSequenceNumber; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace IPC { | 20 namespace IPC { |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 scoped_ptr<IDMap<DBMessageState> > messages_awaiting_replies_; | 128 scoped_ptr<IDMap<DBMessageState> > messages_awaiting_replies_; |
| 129 | 129 |
| 130 // A thread-safe unique number generator | 130 // A thread-safe unique number generator |
| 131 scoped_ptr<base::AtomicSequenceNumber> unique_id_generator_; | 131 scoped_ptr<base::AtomicSequenceNumber> unique_id_generator_; |
| 132 | 132 |
| 133 // The singleton | 133 // The singleton |
| 134 static DBMessageFilter* instance_; | 134 static DBMessageFilter* instance_; |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 #endif // CHROME_COMMON_DB_MESSAGE_FILTER_H_ | 137 #endif // CHROME_COMMON_DB_MESSAGE_FILTER_H_ |
| OLD | NEW |