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

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: use the enum instead of int 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 30 matching lines...) Expand all
41 } 41 }
42 #endif 42 #endif
43 #if defined(OS_POSIX) 43 #if defined(OS_POSIX)
44 void set_number_of_cores(int number_of_cores) { 44 void set_number_of_cores(int number_of_cores) {
45 number_of_cores_ = number_of_cores; 45 number_of_cores_ = number_of_cores;
46 } 46 }
47 #endif 47 #endif
48 48
49 void* crash_info_shmem_memory() const { return crash_info_shmem_->memory(); } 49 void* crash_info_shmem_memory() const { return crash_info_shmem_->memory(); }
50 50
51 NaClTrustedListener* trusted_listener() const {
52 return trusted_listener_.get();
53 }
54
51 typedef base::Callback<void(IPC::PlatformFileForTransit, base::FilePath)> 55 typedef base::Callback<void(IPC::PlatformFileForTransit, base::FilePath)>
52 ResolveFileTokenCallback; 56 ResolveFileTokenCallback;
53 void ResolveFileToken(uint64_t token_lo, 57 void ResolveFileToken(uint64_t token_lo,
54 uint64_t token_hi, 58 uint64_t token_hi,
55 ResolveFileTokenCallback cb); 59 ResolveFileTokenCallback cb);
56 void OnFileTokenResolved(uint64_t token_lo, 60 void OnFileTokenResolved(uint64_t token_lo,
57 uint64_t token_hi, 61 uint64_t token_hi,
58 IPC::PlatformFileForTransit ipc_fd, 62 IPC::PlatformFileForTransit ipc_fd,
59 base::FilePath file_path); 63 base::FilePath file_path);
60 64
(...skipping 29 matching lines...) Expand all
90 94
91 ResolveFileTokenCallback resolved_cb_; 95 ResolveFileTokenCallback resolved_cb_;
92 96
93 // Used to identify what thread we're on. 97 // Used to identify what thread we're on.
94 base::MessageLoop* main_loop_; 98 base::MessageLoop* main_loop_;
95 99
96 DISALLOW_COPY_AND_ASSIGN(NaClListener); 100 DISALLOW_COPY_AND_ASSIGN(NaClListener);
97 }; 101 };
98 102
99 #endif // CHROME_NACL_NACL_LISTENER_H_ 103 #endif // CHROME_NACL_NACL_LISTENER_H_
OLDNEW
« no previous file with comments | « components/nacl/common/nacl_renderer_messages.h ('k') | components/nacl/loader/nacl_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698