OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 IPC_IPC_SYNC_MESSAGE_FILTER_H_ | 5 #ifndef IPC_IPC_SYNC_MESSAGE_FILTER_H_ |
6 #define IPC_IPC_SYNC_MESSAGE_FILTER_H_ | 6 #define IPC_IPC_SYNC_MESSAGE_FILTER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/lock.h" | 10 #include "base/lock.h" |
11 #include "base/ref_counted.h" | 11 #include "base/ref_counted.h" |
12 #include "base/waitable_event.h" | |
13 #include "ipc/ipc_channel_proxy.h" | 12 #include "ipc/ipc_channel_proxy.h" |
14 #include "ipc/ipc_sync_message.h" | 13 #include "ipc/ipc_sync_message.h" |
15 #include <set> | 14 #include <set> |
16 | 15 |
| 16 namespace base { |
| 17 class WaitableEvent; |
| 18 } |
| 19 |
17 class MessageLoop; | 20 class MessageLoop; |
18 | 21 |
19 namespace IPC { | 22 namespace IPC { |
20 | 23 |
21 class MessageReplyDeserializer; | 24 class MessageReplyDeserializer; |
22 | 25 |
23 // This MessageFilter allows sending synchronous IPC messages from a thread | 26 // This MessageFilter allows sending synchronous IPC messages from a thread |
24 // other than the listener thread associated with the SyncChannel. It does not | 27 // other than the listener thread associated with the SyncChannel. It does not |
25 // support fancy features that SyncChannel does, such as handling recursion or | 28 // support fancy features that SyncChannel does, such as handling recursion or |
26 // receiving messages while waiting for a response. Note that this object can | 29 // receiving messages while waiting for a response. Note that this object can |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 Lock lock_; | 61 Lock lock_; |
59 | 62 |
60 base::WaitableEvent* shutdown_event_; | 63 base::WaitableEvent* shutdown_event_; |
61 | 64 |
62 DISALLOW_COPY_AND_ASSIGN(SyncMessageFilter); | 65 DISALLOW_COPY_AND_ASSIGN(SyncMessageFilter); |
63 }; | 66 }; |
64 | 67 |
65 } // namespace IPC | 68 } // namespace IPC |
66 | 69 |
67 #endif // IPC_IPC_SYNC_MESSAGE_FILTER_H_ | 70 #endif // IPC_IPC_SYNC_MESSAGE_FILTER_H_ |
OLD | NEW |