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

Unified Diff: ipc/ipc_channel.h

Issue 2147493006: Adds Channel-associated interface support on ChannelProxy's thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 | « no previous file | ipc/ipc_channel_mojo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel.h
diff --git a/ipc/ipc_channel.h b/ipc/ipc_channel.h
index 1fc9c6c531bbd3d43440be292f169a7b38bc54d6..33f4d193917c374404ce5a277bcdd52b73875130 100644
--- a/ipc/ipc_channel.h
+++ b/ipc/ipc_channel.h
@@ -13,7 +13,9 @@
#include "base/compiler_specific.h"
#include "base/files/scoped_file.h"
+#include "base/memory/ref_counted.h"
#include "base/process/process.h"
+#include "base/single_thread_task_runner.h"
#include "build/build_config.h"
#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_endpoint.h"
@@ -120,6 +122,11 @@ class IPC_EXPORT Channel : public Endpoint {
const std::string& name,
mojo::ScopedInterfaceEndpointHandle handle) = 0;
+ // Sets the TaskRunner on which to support proxied dispatch for associated
+ // interfaces.
+ virtual void SetProxyTaskRunner(
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner) = 0;
+
// Template helper to add an interface factory to this channel.
template <typename Interface>
using AssociatedInterfaceFactory =
« no previous file with comments | « no previous file | ipc/ipc_channel_mojo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698