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

Unified Diff: components/nacl/loader/nacl_ipc_adapter.h

Issue 2301103003: Use ChannelMojo for NaCl PPAPI channels. (Closed)
Patch Set: Created 4 years, 3 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: components/nacl/loader/nacl_ipc_adapter.h
diff --git a/components/nacl/loader/nacl_ipc_adapter.h b/components/nacl/loader/nacl_ipc_adapter.h
index 28e328feda3eea915b6fa1d0721b9e943fccb9f9..b6d07a31c21717f094ed618bd2fce3b0b22f363e 100644
--- a/components/nacl/loader/nacl_ipc_adapter.h
+++ b/components/nacl/loader/nacl_ipc_adapter.h
@@ -31,6 +31,10 @@ struct NaClDesc;
struct NaClImcTypedMsgHdr;
struct PP_Size;
+namespace base {
+class SingleThreadTaskRunner;
+}
+
namespace IPC {
class Channel;
struct ChannelHandle;
@@ -105,11 +109,10 @@ class NaClIPCAdapter : public base::RefCountedThreadSafe<NaClIPCAdapter>,
// |open_resource_cb| may immediately call a OpenResourceReplyCallback
// function to send a pre-opened resource descriptor to the untrusted side.
// OpenResourceCallback returns true when OpenResourceReplyCallback is called.
- NaClIPCAdapter(
- const IPC::ChannelHandle& handle,
- base::TaskRunner* runner,
- ResolveFileTokenCallback resolve_file_token_cb,
- OpenResourceCallback open_resource_cb);
+ NaClIPCAdapter(const IPC::ChannelHandle& handle,
+ const scoped_refptr<base::SingleThreadTaskRunner>& runner,
Mark Seaborn 2016/10/12 00:57:24 Can you comment on the reason for this in the comm
Sam McNally 2016/10/12 03:15:32 ChannelMojo expects to receive the task runner tha
Mark Seaborn 2016/10/13 21:27:51 Ah, that's a nice improvement. I remember that Ch
+ ResolveFileTokenCallback resolve_file_token_cb,
+ OpenResourceCallback open_resource_cb);
// Initializes with a given channel that's already created for testing
// purposes. This function will take ownership of the given channel.

Powered by Google App Engine
This is Rietveld 408576698