OLD | NEW |
1 // Copyright (c) 2006-2008 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_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" |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 139 |
140 // Runs a nested message loop until a reply arrives, times out, or the process | 140 // Runs a nested message loop until a reply arrives, times out, or the process |
141 // shuts down. | 141 // shuts down. |
142 static void WaitForReplyWithNestedMessageLoop(SyncContext* context); | 142 static void WaitForReplyWithNestedMessageLoop(SyncContext* context); |
143 | 143 |
144 bool sync_messages_with_no_timeout_allowed_; | 144 bool sync_messages_with_no_timeout_allowed_; |
145 | 145 |
146 // Used to signal events between the IPC and listener threads. | 146 // Used to signal events between the IPC and listener threads. |
147 base::WaitableEventWatcher dispatch_watcher_; | 147 base::WaitableEventWatcher dispatch_watcher_; |
148 | 148 |
149 DISALLOW_EVIL_CONSTRUCTORS(SyncChannel); | 149 DISALLOW_COPY_AND_ASSIGN(SyncChannel); |
150 }; | 150 }; |
151 | 151 |
152 } // namespace IPC | 152 } // namespace IPC |
153 | 153 |
154 #endif // IPC_IPC_SYNC_SENDER_H__ | 154 #endif // IPC_IPC_SYNC_SENDER_H__ |
OLD | NEW |