OLD | NEW |
1 // Copyright (c) 2009 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 IPC_IPC_SYNC_SENDER_H_ | 5 #ifndef IPC_IPC_SYNC_SENDER_H__ |
6 #define IPC_IPC_SYNC_SENDER_H_ | 6 #define IPC_IPC_SYNC_SENDER_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <deque> | 9 #include <deque> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/lock.h" | 12 #include "base/lock.h" |
13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
14 #include "base/waitable_event_watcher.h" | 14 #include "base/waitable_event_watcher.h" |
15 #include "ipc/ipc_channel_proxy.h" | 15 #include "ipc/ipc_channel_proxy.h" |
16 | 16 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 // Runs a nested message loop until a reply arrives, times out, or the process | 147 // Runs a nested message loop until a reply arrives, times out, or the process |
148 // shuts down. | 148 // shuts down. |
149 void WaitForReplyWithNestedMessageLoop(); | 149 void WaitForReplyWithNestedMessageLoop(); |
150 | 150 |
151 bool sync_messages_with_no_timeout_allowed_; | 151 bool sync_messages_with_no_timeout_allowed_; |
152 | 152 |
153 // Used to signal events between the IPC and listener threads. | 153 // Used to signal events between the IPC and listener threads. |
154 base::WaitableEventWatcher send_done_watcher_; | 154 base::WaitableEventWatcher send_done_watcher_; |
155 base::WaitableEventWatcher dispatch_watcher_; | 155 base::WaitableEventWatcher dispatch_watcher_; |
156 | 156 |
157 DISALLOW_COPY_AND_ASSIGN(SyncChannel); | 157 DISALLOW_EVIL_CONSTRUCTORS(SyncChannel); |
158 }; | 158 }; |
159 | 159 |
160 } // namespace IPC | 160 } // namespace IPC |
161 | 161 |
162 #endif // IPC_IPC_SYNC_SENDER_H_ | 162 #endif // IPC_IPC_SYNC_SENDER_H__ |
OLD | NEW |