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

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

Issue 356923002: Pepper: Move Pnacl init time out of trusted plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 nacl::scoped_ptr<FileDownloader> streaming_downloader_; 188 nacl::scoped_ptr<FileDownloader> streaming_downloader_;
189 189
190 // Used to report information when errors (PPAPI or otherwise) are reported. 190 // Used to report information when errors (PPAPI or otherwise) are reported.
191 ErrorInfo error_info_; 191 ErrorInfo error_info_;
192 192
193 // True if an error was already reported, and translate_notify_callback_ 193 // True if an error was already reported, and translate_notify_callback_
194 // was already run/consumed. 194 // was already run/consumed.
195 bool error_already_reported_; 195 bool error_already_reported_;
196 196
197 // State for timing and size information for UMA stats. 197 // State for timing and size information for UMA stats.
198 int64_t pnacl_init_time_;
199 int64_t pexe_size_; // Count as we stream -- will converge to pexe size. 198 int64_t pexe_size_; // Count as we stream -- will converge to pexe size.
200 int64_t pexe_bytes_compiled_; // Count as we compile. 199 int64_t pexe_bytes_compiled_; // Count as we compile.
201 int64_t expected_pexe_size_; // Expected download total (-1 if unknown). 200 int64_t expected_pexe_size_; // Expected download total (-1 if unknown).
202 201
203 // The helper thread used to do translations via SRPC. 202 // The helper thread used to do translations via SRPC.
204 // It accesses fields of PnaclCoordinator so it must have a 203 // It accesses fields of PnaclCoordinator so it must have a
205 // shorter lifetime. 204 // shorter lifetime.
206 nacl::scoped_ptr<PnaclTranslateThread> translate_thread_; 205 nacl::scoped_ptr<PnaclTranslateThread> translate_thread_;
207 }; 206 };
208 207
209 //---------------------------------------------------------------------- 208 //----------------------------------------------------------------------
210 209
211 } // namespace plugin; 210 } // namespace plugin;
212 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_COORDINATOR_H_ 211 #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