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

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

Issue 512323002: NaCl: Detect plugin crashes via EOF on Chromium IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 3 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
« no previous file with comments | « chrome/test/nacl/nacl_browsertest.cc ('k') | components/nacl/renderer/trusted_plugin_channel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 if (load_manager) 742 if (load_manager)
743 load_manager->ReportLoadError(error, error_message); 743 load_manager->ReportLoadError(error, error_message);
744 } 744 }
745 745
746 void ReportLoadAbort(PP_Instance instance) { 746 void ReportLoadAbort(PP_Instance instance) {
747 NexeLoadManager* load_manager = NexeLoadManager::Get(instance); 747 NexeLoadManager* load_manager = NexeLoadManager::Get(instance);
748 if (load_manager) 748 if (load_manager)
749 load_manager->ReportLoadAbort(); 749 load_manager->ReportLoadAbort();
750 } 750 }
751 751
752 void NexeDidCrash(PP_Instance instance) {
753 NexeLoadManager* load_manager = NexeLoadManager::Get(instance);
754 if (load_manager)
755 load_manager->NexeDidCrash();
756 }
757
758 void InstanceCreated(PP_Instance instance) { 752 void InstanceCreated(PP_Instance instance) {
759 NexeLoadManager::Create(instance); 753 NexeLoadManager::Create(instance);
760 } 754 }
761 755
762 void InstanceDestroyed(PP_Instance instance) { 756 void InstanceDestroyed(PP_Instance instance) {
763 DeleteJsonManifest(instance); 757 DeleteJsonManifest(instance);
764 NexeLoadManager::Delete(instance); 758 NexeLoadManager::Delete(instance);
765 } 759 }
766 760
767 PP_Bool NaClDebugEnabledForURL(const char* alleged_nmf_url) { 761 PP_Bool NaClDebugEnabledForURL(const char* alleged_nmf_url) {
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
1659 &BrokerDuplicateHandle, 1653 &BrokerDuplicateHandle,
1660 &GetReadExecPnaclFd, 1654 &GetReadExecPnaclFd,
1661 &CreateTemporaryFile, 1655 &CreateTemporaryFile,
1662 &GetNumberOfProcessors, 1656 &GetNumberOfProcessors,
1663 &PPIsNonSFIModeEnabled, 1657 &PPIsNonSFIModeEnabled,
1664 &ReportTranslationFinished, 1658 &ReportTranslationFinished,
1665 &DispatchEvent, 1659 &DispatchEvent,
1666 &ReportLoadSuccess, 1660 &ReportLoadSuccess,
1667 &ReportLoadError, 1661 &ReportLoadError,
1668 &ReportLoadAbort, 1662 &ReportLoadAbort,
1669 &NexeDidCrash,
1670 &InstanceCreated, 1663 &InstanceCreated,
1671 &InstanceDestroyed, 1664 &InstanceDestroyed,
1672 &NaClDebugEnabledForURL, 1665 &NaClDebugEnabledForURL,
1673 &GetSandboxArch, 1666 &GetSandboxArch,
1674 &LogToConsole, 1667 &LogToConsole,
1675 &GetNaClReadyState, 1668 &GetNaClReadyState,
1676 &Vlog, 1669 &Vlog,
1677 &InitializePlugin, 1670 &InitializePlugin,
1678 &GetNexeSize, 1671 &GetNexeSize,
1679 &RequestNaClManifest, 1672 &RequestNaClManifest,
(...skipping 11 matching lines...) Expand all
1691 &StreamPexe 1684 &StreamPexe
1692 }; 1685 };
1693 1686
1694 } // namespace 1687 } // namespace
1695 1688
1696 const PPB_NaCl_Private* GetNaClPrivateInterface() { 1689 const PPB_NaCl_Private* GetNaClPrivateInterface() {
1697 return &nacl_interface; 1690 return &nacl_interface;
1698 } 1691 }
1699 1692
1700 } // namespace nacl 1693 } // namespace nacl
OLDNEW
« no previous file with comments | « chrome/test/nacl/nacl_browsertest.cc ('k') | components/nacl/renderer/trusted_plugin_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698