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

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

Issue 418423002: Pepper: Stop using SRPC for irt_open_resource(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 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
« no previous file with comments | « components/nacl/loader/nacl_ipc_adapter.cc ('k') | components/nacl/loader/nacl_listener.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/loader/nacl_listener.h
diff --git a/components/nacl/loader/nacl_listener.h b/components/nacl/loader/nacl_listener.h
index 0e335a42338b5afcf446a74d4ea6889b049837c0..e24fea54db7a2e83f13ca97b1eaed59e3f97a9ee 100644
--- a/components/nacl/loader/nacl_listener.h
+++ b/components/nacl/loader/nacl_listener.h
@@ -48,6 +48,16 @@ class NaClListener : public IPC::Listener {
void* crash_info_shmem_memory() const { return crash_info_shmem_->memory(); }
+ typedef base::Callback<void(IPC::PlatformFileForTransit, base::FilePath)>
+ ResolveFileTokenCallback;
+ void ResolveFileToken(uint64_t token_lo,
+ uint64_t token_hi,
+ ResolveFileTokenCallback cb);
+ void OnFileTokenResolved(uint64_t token_lo,
+ uint64_t token_hi,
+ IPC::PlatformFileForTransit ipc_fd,
+ base::FilePath file_path);
+
private:
virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
@@ -78,6 +88,8 @@ class NaClListener : public IPC::Listener {
scoped_refptr<NaClTrustedListener> trusted_listener_;
+ ResolveFileTokenCallback resolved_cb_;
+
// Used to identify what thread we're on.
base::MessageLoop* main_loop_;
« no previous file with comments | « components/nacl/loader/nacl_ipc_adapter.cc ('k') | components/nacl/loader/nacl_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698