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

Side by Side Diff: components/nacl/loader/nacl_listener.h

Issue 1090233003: Set up a NaCl load status callback to start replacing "start_module". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_NACL_NACL_LISTENER_H_ 5 #ifndef CHROME_NACL_NACL_LISTENER_H_
6 #define CHROME_NACL_NACL_LISTENER_H_ 6 #define CHROME_NACL_NACL_LISTENER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 typedef base::Callback<void(IPC::PlatformFileForTransit, base::FilePath)> 51 typedef base::Callback<void(IPC::PlatformFileForTransit, base::FilePath)>
52 ResolveFileTokenCallback; 52 ResolveFileTokenCallback;
53 void ResolveFileToken(uint64_t token_lo, 53 void ResolveFileToken(uint64_t token_lo,
54 uint64_t token_hi, 54 uint64_t token_hi,
55 ResolveFileTokenCallback cb); 55 ResolveFileTokenCallback cb);
56 void OnFileTokenResolved(uint64_t token_lo, 56 void OnFileTokenResolved(uint64_t token_lo,
57 uint64_t token_hi, 57 uint64_t token_hi,
58 IPC::PlatformFileForTransit ipc_fd, 58 IPC::PlatformFileForTransit ipc_fd,
59 base::FilePath file_path); 59 base::FilePath file_path);
60 60
61 NaClTrustedListener* trusted_listener() { return trusted_listener_.get(); }
Mark Seaborn 2015/04/17 23:30:58 Nit: you could put this next to crash_info_shmem_m
jvoung (off chromium) 2015/04/18 01:00:46 Done.
62
61 private: 63 private:
62 bool OnMessageReceived(const IPC::Message& msg) override; 64 bool OnMessageReceived(const IPC::Message& msg) override;
63 65
64 void OnStart(const nacl::NaClStartParams& params); 66 void OnStart(const nacl::NaClStartParams& params);
65 67
66 // A channel back to the browser. 68 // A channel back to the browser.
67 scoped_ptr<IPC::SyncChannel> channel_; 69 scoped_ptr<IPC::SyncChannel> channel_;
68 70
69 // A filter that allows other threads to use the channel. 71 // A filter that allows other threads to use the channel.
70 scoped_refptr<IPC::SyncMessageFilter> filter_; 72 scoped_refptr<IPC::SyncMessageFilter> filter_;
(...skipping 19 matching lines...) Expand all
90 92
91 ResolveFileTokenCallback resolved_cb_; 93 ResolveFileTokenCallback resolved_cb_;
92 94
93 // Used to identify what thread we're on. 95 // Used to identify what thread we're on.
94 base::MessageLoop* main_loop_; 96 base::MessageLoop* main_loop_;
95 97
96 DISALLOW_COPY_AND_ASSIGN(NaClListener); 98 DISALLOW_COPY_AND_ASSIGN(NaClListener);
97 }; 99 };
98 100
99 #endif // CHROME_NACL_NACL_LISTENER_H_ 101 #endif // CHROME_NACL_NACL_LISTENER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698