OLD | NEW |
1 // -*- c++ -*- | 1 // -*- c++ -*- |
2 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 | 5 |
6 // The portable representation of an instance and root scriptable object. | 6 // The portable representation of an instance and root scriptable object. |
7 // The PPAPI version of the plugin instantiates a subclass of this class. | 7 // The PPAPI version of the plugin instantiates a subclass of this class. |
8 | 8 |
9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ | 9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ |
10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ | 10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 ServiceRuntime* main_service_runtime() const { | 343 ServiceRuntime* main_service_runtime() const { |
344 return main_subprocess_.service_runtime(); | 344 return main_subprocess_.service_runtime(); |
345 } | 345 } |
346 | 346 |
347 // Help load a nacl module, from the file specified in wrapper. | 347 // Help load a nacl module, from the file specified in wrapper. |
348 // This will fully initialize the |subprocess| if the load was successful. | 348 // This will fully initialize the |subprocess| if the load was successful. |
349 bool LoadNaClModuleCommon(nacl::DescWrapper* wrapper, | 349 bool LoadNaClModuleCommon(nacl::DescWrapper* wrapper, |
350 NaClSubprocess* subprocess, | 350 NaClSubprocess* subprocess, |
351 const Manifest* manifest, | 351 const Manifest* manifest, |
352 bool should_report_uma, | 352 bool should_report_uma, |
| 353 bool uses_irt, |
353 bool uses_ppapi, | 354 bool uses_ppapi, |
354 ErrorInfo* error_info, | 355 ErrorInfo* error_info, |
355 pp::CompletionCallback init_done_cb, | 356 pp::CompletionCallback init_done_cb, |
356 pp::CompletionCallback crash_cb); | 357 pp::CompletionCallback crash_cb); |
357 | 358 |
358 // Callback used when getting the URL for the .nexe file. If the URL loading | 359 // Callback used when getting the URL for the .nexe file. If the URL loading |
359 // is successful, the file descriptor is opened and can be passed to sel_ldr | 360 // is successful, the file descriptor is opened and can be passed to sel_ldr |
360 // with the sandbox on. | 361 // with the sandbox on. |
361 void NexeFileDidOpen(int32_t pp_error); | 362 void NexeFileDidOpen(int32_t pp_error); |
362 void NexeFileDidOpenContinuation(int32_t pp_error); | 363 void NexeFileDidOpenContinuation(int32_t pp_error); |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 const FileDownloader* FindFileDownloader(PP_Resource url_loader) const; | 528 const FileDownloader* FindFileDownloader(PP_Resource url_loader) const; |
528 | 529 |
529 int64_t time_of_last_progress_event_; | 530 int64_t time_of_last_progress_event_; |
530 | 531 |
531 const PPB_NaCl_Private* nacl_interface_; | 532 const PPB_NaCl_Private* nacl_interface_; |
532 }; | 533 }; |
533 | 534 |
534 } // namespace plugin | 535 } // namespace plugin |
535 | 536 |
536 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ | 537 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ |
OLD | NEW |