OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHANNEL_H_ | 5 #ifndef IPC_IPC_SYNC_CHANNEL_H_ |
6 #define IPC_IPC_SYNC_CHANNEL_H_ | 6 #define IPC_IPC_SYNC_CHANNEL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 | 222 |
223 // Runs a nested message loop until a reply arrives, times out, or the process | 223 // Runs a nested message loop until a reply arrives, times out, or the process |
224 // shuts down. | 224 // shuts down. |
225 static void WaitForReplyWithNestedMessageLoop(SyncContext* context); | 225 static void WaitForReplyWithNestedMessageLoop(SyncContext* context); |
226 | 226 |
227 // Starts the dispatch watcher. | 227 // Starts the dispatch watcher. |
228 void StartWatching(); | 228 void StartWatching(); |
229 | 229 |
230 // ChannelProxy overrides: | 230 // ChannelProxy overrides: |
231 void OnChannelInit() override; | 231 void OnChannelInit() override; |
| 232 bool SendNow(std::unique_ptr<Message> message) override; |
| 233 bool SendOnIPCThread(std::unique_ptr<Message> message) override; |
232 | 234 |
233 // Used to signal events between the IPC and listener threads. | 235 // Used to signal events between the IPC and listener threads. |
234 base::WaitableEventWatcher dispatch_watcher_; | 236 base::WaitableEventWatcher dispatch_watcher_; |
235 base::WaitableEventWatcher::EventCallback dispatch_watcher_callback_; | 237 base::WaitableEventWatcher::EventCallback dispatch_watcher_callback_; |
236 | 238 |
237 // Tracks SyncMessageFilters created before complete channel initialization. | 239 // Tracks SyncMessageFilters created before complete channel initialization. |
238 std::vector<scoped_refptr<SyncMessageFilter>> pre_init_sync_message_filters_; | 240 std::vector<scoped_refptr<SyncMessageFilter>> pre_init_sync_message_filters_; |
239 | 241 |
240 DISALLOW_COPY_AND_ASSIGN(SyncChannel); | 242 DISALLOW_COPY_AND_ASSIGN(SyncChannel); |
241 }; | 243 }; |
242 | 244 |
243 } // namespace IPC | 245 } // namespace IPC |
244 | 246 |
245 #endif // IPC_IPC_SYNC_CHANNEL_H_ | 247 #endif // IPC_IPC_SYNC_CHANNEL_H_ |
OLD | NEW |