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

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

Issue 19863003: PNaCl on-demand installs: Make a separate async IPC to check if PNaCl is installed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: take out progress IPC for now Created 7 years, 4 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 | 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 private: 141 private:
142 NACL_DISALLOW_COPY_AND_ASSIGN(PnaclCoordinator); 142 NACL_DISALLOW_COPY_AND_ASSIGN(PnaclCoordinator);
143 143
144 // BitcodeToNative is the factory method for PnaclCoordinators. 144 // BitcodeToNative is the factory method for PnaclCoordinators.
145 // Therefore the constructor is private. 145 // Therefore the constructor is private.
146 PnaclCoordinator(Plugin* plugin, 146 PnaclCoordinator(Plugin* plugin,
147 const nacl::string& pexe_url, 147 const nacl::string& pexe_url,
148 const PnaclOptions& pnacl_options, 148 const PnaclOptions& pnacl_options,
149 const pp::CompletionCallback& translate_notify_callback); 149 const pp::CompletionCallback& translate_notify_callback);
150 150
151 // Callback for when we know PNaCl is installed.
152 void DidCheckPnaclInstalled(int32_t pp_error);
153
151 // Callback for when the resource info JSON file has been read. 154 // Callback for when the resource info JSON file has been read.
152 void ResourceInfoWasRead(int32_t pp_error); 155 void ResourceInfoWasRead(int32_t pp_error);
153 156
154 // Callback for when llc and ld have been downloaded. 157 // Callback for when llc and ld have been downloaded.
155 void ResourcesDidLoad(int32_t pp_error); 158 void ResourcesDidLoad(int32_t pp_error);
156 159
157 // Callbacks for temporary file related stages. 160 // Callbacks for temporary file related stages.
158 // They are invoked from ResourcesDidLoad and proceed in declaration order. 161 // They are invoked from ResourcesDidLoad and proceed in declaration order.
159 // Invoked when the temporary file system is successfully opened in PPAPI. 162 // Invoked when the temporary file system is successfully opened in PPAPI.
160 void FileSystemDidOpen(int32_t pp_error); 163 void FileSystemDidOpen(int32_t pp_error);
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 // The helper thread used to do translations via SRPC. 278 // The helper thread used to do translations via SRPC.
276 // Keep this last in declaration order to ensure the other variables 279 // Keep this last in declaration order to ensure the other variables
277 // haven't been destroyed yet when its destructor runs. 280 // haven't been destroyed yet when its destructor runs.
278 nacl::scoped_ptr<PnaclTranslateThread> translate_thread_; 281 nacl::scoped_ptr<PnaclTranslateThread> translate_thread_;
279 }; 282 };
280 283
281 //---------------------------------------------------------------------- 284 //----------------------------------------------------------------------
282 285
283 } // namespace plugin; 286 } // namespace plugin;
284 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_COORDINATOR_H_ 287 #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