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

Side by Side Diff: ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h

Issue 55463002: Remove PNaCl's RequestFirstInstall, use resource throttle instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reorder functions Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_COORDINATOR_H_ 5 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_COORDINATOR_H_
6 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_COORDINATOR_H_ 6 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_COORDINATOR_H_
7 7
8 #include <set> 8 #include <set>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 const nacl::string& pexe_url, 138 const nacl::string& pexe_url,
139 const PnaclOptions& pnacl_options, 139 const PnaclOptions& pnacl_options,
140 const pp::CompletionCallback& translate_notify_callback); 140 const pp::CompletionCallback& translate_notify_callback);
141 141
142 // Invoke to issue a GET request for bitcode. 142 // Invoke to issue a GET request for bitcode.
143 void OpenBitcodeStream(); 143 void OpenBitcodeStream();
144 // Invoked when we've started an URL fetch for the pexe to check for 144 // Invoked when we've started an URL fetch for the pexe to check for
145 // caching metadata. 145 // caching metadata.
146 void BitcodeStreamDidOpen(int32_t pp_error); 146 void BitcodeStreamDidOpen(int32_t pp_error);
147 147
148 // Callback for when we know PNaCl is installed.
149 void DidCheckPnaclInstalled(int32_t pp_error);
150
151 // Callback for when the resource info JSON file has been read. 148 // Callback for when the resource info JSON file has been read.
152 void ResourceInfoWasRead(int32_t pp_error); 149 void ResourceInfoWasRead(int32_t pp_error);
153 150
154 // Callback for when llc and ld have been downloaded. 151 // Callback for when llc and ld have been downloaded.
155 void ResourcesDidLoad(int32_t pp_error); 152 void ResourcesDidLoad(int32_t pp_error);
156 // Invoked when we've gotten a temp FD for the nexe, either with the nexe 153 // Invoked when we've gotten a temp FD for the nexe, either with the nexe
157 // data, or a writeable fd to save to. 154 // data, or a writeable fd to save to.
158 void NexeFdDidOpen(int32_t pp_error); 155 void NexeFdDidOpen(int32_t pp_error);
159 // Invoked when a pexe data chunk arrives (when using streaming translation) 156 // Invoked when a pexe data chunk arrives (when using streaming translation)
160 void BitcodeStreamGotData(int32_t pp_error, FileStreamData data); 157 void BitcodeStreamGotData(int32_t pp_error, FileStreamData data);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 // The helper thread used to do translations via SRPC. 231 // The helper thread used to do translations via SRPC.
235 // Keep this last in declaration order to ensure the other variables 232 // Keep this last in declaration order to ensure the other variables
236 // haven't been destroyed yet when its destructor runs. 233 // haven't been destroyed yet when its destructor runs.
237 nacl::scoped_ptr<PnaclTranslateThread> translate_thread_; 234 nacl::scoped_ptr<PnaclTranslateThread> translate_thread_;
238 }; 235 };
239 236
240 //---------------------------------------------------------------------- 237 //----------------------------------------------------------------------
241 238
242 } // namespace plugin; 239 } // namespace plugin;
243 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_COORDINATOR_H_ 240 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_COORDINATOR_H_
OLDNEW
« no previous file with comments | « ppapi/c/private/ppb_nacl_private.h ('k') | ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698