| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 226 |
| 227 // Runs a nested message loop until a reply arrives, times out, or the process | 227 // Runs a nested message loop until a reply arrives, times out, or the process |
| 228 // shuts down. | 228 // shuts down. |
| 229 static void WaitForReplyWithNestedMessageLoop(SyncContext* context); | 229 static void WaitForReplyWithNestedMessageLoop(SyncContext* context); |
| 230 | 230 |
| 231 // Starts the dispatch watcher. | 231 // Starts the dispatch watcher. |
| 232 void StartWatching(); | 232 void StartWatching(); |
| 233 | 233 |
| 234 // ChannelProxy overrides: | 234 // ChannelProxy overrides: |
| 235 void OnChannelInit() override; | 235 void OnChannelInit() override; |
| 236 bool SendNow(std::unique_ptr<Message> message) override; | |
| 237 bool SendOnIPCThread(std::unique_ptr<Message> message) override; | |
| 238 | 236 |
| 239 // Used to signal events between the IPC and listener threads. | 237 // Used to signal events between the IPC and listener threads. |
| 240 mojo::Watcher dispatch_watcher_; | 238 mojo::Watcher dispatch_watcher_; |
| 241 | 239 |
| 242 // Tracks SyncMessageFilters created before complete channel initialization. | 240 // Tracks SyncMessageFilters created before complete channel initialization. |
| 243 std::vector<scoped_refptr<SyncMessageFilter>> pre_init_sync_message_filters_; | 241 std::vector<scoped_refptr<SyncMessageFilter>> pre_init_sync_message_filters_; |
| 244 | 242 |
| 245 DISALLOW_COPY_AND_ASSIGN(SyncChannel); | 243 DISALLOW_COPY_AND_ASSIGN(SyncChannel); |
| 246 }; | 244 }; |
| 247 | 245 |
| 248 } // namespace IPC | 246 } // namespace IPC |
| 249 | 247 |
| 250 #endif // IPC_IPC_SYNC_CHANNEL_H_ | 248 #endif // IPC_IPC_SYNC_CHANNEL_H_ |
| OLD | NEW |