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

Side by Side Diff: ipc/ipc_sync_channel.h

Issue 1991323002: Send input event IPCs directly from the UI thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
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