Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(438)

Side by Side Diff: ipc/ipc_sync_channel.h

Issue 2068343003: Revert "Send input event IPCs directly from the UI thread" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ipc/ipc_channel_proxy.cc ('k') | ipc/ipc_sync_channel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ipc/ipc_channel_proxy.cc ('k') | ipc/ipc_sync_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698