| 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_;
|
|
|
|
|