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

Unified Diff: ipc/ipc_channel_factory.h

Issue 2159293002: Plumb explicit IPC task runner through to IPC::Channel creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add dcheck 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 | « ipc/ipc_channel_common.cc ('k') | ipc/ipc_channel_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_factory.h
diff --git a/ipc/ipc_channel_factory.h b/ipc/ipc_channel_factory.h
index 3b6ae87bdf01df377364414ef0781025be877db1..8fb18b3a2ed6416c8a29ba92f5d888eb7ff44899 100644
--- a/ipc/ipc_channel_factory.h
+++ b/ipc/ipc_channel_factory.h
@@ -9,6 +9,8 @@
#include <string>
#include <vector>
+#include "base/memory/ref_counted.h"
+#include "base/single_thread_task_runner.h"
#include "ipc/ipc_channel.h"
namespace IPC {
@@ -20,12 +22,15 @@ class IPC_EXPORT ChannelFactory {
public:
// Creates a factory for "native" channel built through
// IPC::Channel::Create().
- static std::unique_ptr<ChannelFactory> Create(const ChannelHandle& handle,
- Channel::Mode mode);
+ static std::unique_ptr<ChannelFactory> Create(
+ const ChannelHandle& handle,
+ Channel::Mode mode,
+ const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner);
virtual ~ChannelFactory() { }
virtual std::string GetName() const = 0;
virtual std::unique_ptr<Channel> BuildChannel(Listener* listener) = 0;
+ virtual scoped_refptr<base::SingleThreadTaskRunner> GetIPCTaskRunner() = 0;
};
} // namespace IPC
« no previous file with comments | « ipc/ipc_channel_common.cc ('k') | ipc/ipc_channel_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698