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

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: 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
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 909 matching lines...) Expand 10 before | Expand all | Expand 10 after
1677 &BrokerDuplicateHandle, 1671 &BrokerDuplicateHandle,
1678 &GetReadExecPnaclFd, 1672 &GetReadExecPnaclFd,
1679 &CreateTemporaryFile, 1673 &CreateTemporaryFile,
1680 &GetNumberOfProcessors, 1674 &GetNumberOfProcessors,
1681 &PPIsNonSFIModeEnabled, 1675 &PPIsNonSFIModeEnabled,
1682 &ReportTranslationFinished, 1676 &ReportTranslationFinished,
1683 &DispatchEvent, 1677 &DispatchEvent,
1684 &ReportLoadSuccess, 1678 &ReportLoadSuccess,
1685 &ReportLoadError, 1679 &ReportLoadError,
1686 &ReportLoadAbort, 1680 &ReportLoadAbort,
1687 &NexeDidCrash,
1688 &InstanceCreated, 1681 &InstanceCreated,
1689 &InstanceDestroyed, 1682 &InstanceDestroyed,
1690 &NaClDebugEnabledForURL, 1683 &NaClDebugEnabledForURL,
1691 &GetSandboxArch, 1684 &GetSandboxArch,
1692 &LogToConsole, 1685 &LogToConsole,
1693 &GetNaClReadyState, 1686 &GetNaClReadyState,
1694 &Vlog, 1687 &Vlog,
1695 &InitializePlugin, 1688 &InitializePlugin,
1696 &GetNexeSize, 1689 &GetNexeSize,
1697 &RequestNaClManifest, 1690 &RequestNaClManifest,
(...skipping 12 matching lines...) Expand all
1710 &StreamPexe 1703 &StreamPexe
1711 }; 1704 };
1712 1705
1713 } // namespace 1706 } // namespace
1714 1707
1715 const PPB_NaCl_Private* GetNaClPrivateInterface() { 1708 const PPB_NaCl_Private* GetNaClPrivateInterface() {
1716 return &nacl_interface; 1709 return &nacl_interface;
1717 } 1710 }
1718 1711
1719 } // namespace nacl 1712 } // namespace nacl
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698