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

Unified Diff: content/public/browser/render_process_host.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
Index: content/public/browser/render_process_host.h
diff --git a/content/public/browser/render_process_host.h b/content/public/browser/render_process_host.h
index 67fc03f27d938f4bbd0bac27ec35de5edd206aa0..198e7e53f4b450bf5a1c3d918e04f3f87d930845 100644
--- a/content/public/browser/render_process_host.h
+++ b/content/public/browser/render_process_host.h
@@ -178,6 +178,14 @@ class CONTENT_EXPORT RenderProcessHost : public IPC::Sender,
// Returns the renderer channel.
virtual IPC::ChannelProxy* GetChannel() = 0;
+ // Returns an IPC::Sender which tries to send messages immediately from the
+ // calling thread. The returned Sender is owned by the RenderProcessHost.
+ virtual IPC::Sender* GetImmediateSender() = 0;
+
+ // Returns an IPC::Sender which always sends messages from the IO thread's
+ // task queue. The returned Sender is owned by the RenderProcessHost.
+ virtual IPC::Sender* GetIOThreadSender() = 0;
+
// Adds a message filter to the IPC channel.
virtual void AddFilter(BrowserMessageFilter* filter) = 0;
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698