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

Unified Diff: ipc/ipc_sync_message_filter.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ipc/ipc_sync_channel.cc ('k') | ipc/ipc_sync_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_sync_message_filter.h
diff --git a/ipc/ipc_sync_message_filter.h b/ipc/ipc_sync_message_filter.h
index 27584359ece7918f11bc62556201f2813ad70b15..d2ffe87922c8881687d4b120b1821bed08cd2c66 100644
--- a/ipc/ipc_sync_message_filter.h
+++ b/ipc/ipc_sync_message_filter.h
@@ -5,6 +5,7 @@
#ifndef IPC_IPC_SYNC_MESSAGE_FILTER_H_
#define IPC_IPC_SYNC_MESSAGE_FILTER_H_
+#include <memory>
#include <set>
#include "base/macros.h"
@@ -39,6 +40,10 @@ class IPC_EXPORT SyncMessageFilter : public MessageFilter, public Sender {
void OnChannelClosing() override;
bool OnMessageReceived(const Message& message) override;
+ // Like Send but may send immediately (instead of posting to the IPC thread)
+ // if the underlying Channel implements a thread-safe Send.
+ bool SendNow(std::unique_ptr<Message> message);
+
protected:
SyncMessageFilter(base::WaitableEvent* shutdown_event,
bool is_channel_send_thread_safe);
« no previous file with comments | « ipc/ipc_sync_channel.cc ('k') | ipc/ipc_sync_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698