OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_IPC_SYNC_SENDER_H__ | 5 #ifndef CHROME_COMMON_IPC_SYNC_SENDER_H__ |
6 #define CHROME_COMMON_IPC_SYNC_SENDER_H__ | 6 #define CHROME_COMMON_IPC_SYNC_SENDER_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <deque> | 9 #include <deque> |
| 10 |
10 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
11 #include "base/lock.h" | 12 #include "base/lock.h" |
12 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
13 #include "base/scoped_handle.h" | |
14 #include "base/waitable_event.h" | |
15 #include "base/waitable_event_watcher.h" | 14 #include "base/waitable_event_watcher.h" |
16 #include "chrome/common/ipc_channel_proxy.h" | 15 #include "chrome/common/ipc_channel_proxy.h" |
17 | 16 |
| 17 namespace base { |
| 18 class WaitableEvent; |
| 19 }; |
| 20 |
18 namespace IPC { | 21 namespace IPC { |
19 | 22 |
20 class SyncMessage; | 23 class SyncMessage; |
21 class MessageReplyDeserializer; | 24 class MessageReplyDeserializer; |
22 | 25 |
23 // This is similar to IPC::ChannelProxy, with the added feature of supporting | 26 // This is similar to IPC::ChannelProxy, with the added feature of supporting |
24 // sending synchronous messages. | 27 // sending synchronous messages. |
25 // Note that care must be taken that the lifetime of the ipc_thread argument | 28 // Note that care must be taken that the lifetime of the ipc_thread argument |
26 // is more than this object. If the message loop goes away while this object | 29 // is more than this object. If the message loop goes away while this object |
27 // is running and it's used to send a message, then it will use the invalid | 30 // is running and it's used to send a message, then it will use the invalid |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 // Used to signal events between the IPC and listener threads. | 153 // Used to signal events between the IPC and listener threads. |
151 base::WaitableEventWatcher send_done_watcher_; | 154 base::WaitableEventWatcher send_done_watcher_; |
152 base::WaitableEventWatcher dispatch_watcher_; | 155 base::WaitableEventWatcher dispatch_watcher_; |
153 | 156 |
154 DISALLOW_EVIL_CONSTRUCTORS(SyncChannel); | 157 DISALLOW_EVIL_CONSTRUCTORS(SyncChannel); |
155 }; | 158 }; |
156 | 159 |
157 } // namespace IPC | 160 } // namespace IPC |
158 | 161 |
159 #endif // CHROME_COMMON_IPC_SYNC_SENDER_H__ | 162 #endif // CHROME_COMMON_IPC_SYNC_SENDER_H__ |
OLD | NEW |