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

Side by Side Diff: components/nacl/renderer/ppb_nacl_private_impl.cc

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: review 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 #include "components/nacl/renderer/ppb_nacl_private_impl.h" 5 #include "components/nacl/renderer/ppb_nacl_private_impl.h"
6 6
7 #include <numeric> 7 #include <numeric>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 } 494 }
495 495
496 *(static_cast<NaClHandle*>(imc_handle)) = ToNativeHandle(result_socket); 496 *(static_cast<NaClHandle*>(imc_handle)) = ToNativeHandle(result_socket);
497 497
498 // Store the crash information shared memory handle. 498 // Store the crash information shared memory handle.
499 load_manager->set_crash_info_shmem_handle( 499 load_manager->set_crash_info_shmem_handle(
500 launch_result.crash_info_shmem_handle); 500 launch_result.crash_info_shmem_handle);
501 501
502 // Create the trusted plugin channel. 502 // Create the trusted plugin channel.
503 if (IsValidChannelHandle(launch_result.trusted_ipc_channel_handle)) { 503 if (IsValidChannelHandle(launch_result.trusted_ipc_channel_handle)) {
504 bool report_exit_status = PP_ToBool(main_service_runtime); 504 bool is_helper_nexe = !PP_ToBool(main_service_runtime);
505 scoped_ptr<TrustedPluginChannel> trusted_plugin_channel( 505 scoped_ptr<TrustedPluginChannel> trusted_plugin_channel(
506 new TrustedPluginChannel( 506 new TrustedPluginChannel(
507 load_manager, 507 load_manager,
508 launch_result.trusted_ipc_channel_handle, 508 launch_result.trusted_ipc_channel_handle,
509 content::RenderThread::Get()->GetShutdownEvent(), 509 content::RenderThread::Get()->GetShutdownEvent(),
510 report_exit_status)); 510 is_helper_nexe));
511 load_manager->set_trusted_plugin_channel(trusted_plugin_channel.Pass()); 511 load_manager->set_trusted_plugin_channel(trusted_plugin_channel.Pass());
512 } else { 512 } else {
513 PostPPCompletionCallback(callback, PP_ERROR_FAILED); 513 PostPPCompletionCallback(callback, PP_ERROR_FAILED);
514 return; 514 return;
515 } 515 }
516 516
517 // Create the manifest service handle as well. 517 // Create the manifest service handle as well.
518 if (IsValidChannelHandle(launch_result.manifest_service_ipc_channel_handle)) { 518 if (IsValidChannelHandle(launch_result.manifest_service_ipc_channel_handle)) {
519 scoped_ptr<ManifestServiceChannel> manifest_service_channel( 519 scoped_ptr<ManifestServiceChannel> manifest_service_channel(
520 new ManifestServiceChannel( 520 new ManifestServiceChannel(
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1727 &StreamPexe 1727 &StreamPexe
1728 }; 1728 };
1729 1729
1730 } // namespace 1730 } // namespace
1731 1731
1732 const PPB_NaCl_Private* GetNaClPrivateInterface() { 1732 const PPB_NaCl_Private* GetNaClPrivateInterface() {
1733 return &nacl_interface; 1733 return &nacl_interface;
1734 } 1734 }
1735 1735
1736 } // namespace nacl 1736 } // namespace nacl
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698