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

Unified Diff: components/nacl/renderer/trusted_plugin_channel.h

Issue 484783002: Pepper: Report NaCl exit status over Chromium IPC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: components/nacl/renderer/trusted_plugin_channel.h
diff --git a/components/nacl/renderer/trusted_plugin_channel.h b/components/nacl/renderer/trusted_plugin_channel.h
index cba26d65475b107dccc5a30b77fceede50582ab0..fd261aa70c5d61aceaf1c72765c7e27bc7fdd433 100644
--- a/components/nacl/renderer/trusted_plugin_channel.h
+++ b/components/nacl/renderer/trusted_plugin_channel.h
@@ -21,11 +21,14 @@ class SyncChannel;
} // namespace IPC
namespace nacl {
+class NexeLoadManager;
class TrustedPluginChannel : public IPC::Listener {
public:
- TrustedPluginChannel(const IPC::ChannelHandle& handle,
- base::WaitableEvent* shutdown_event);
+ TrustedPluginChannel(NexeLoadManager* nexe_load_manager,
+ const IPC::ChannelHandle& handle,
+ base::WaitableEvent* shutdown_event,
+ bool report_exit_status);
virtual ~TrustedPluginChannel();
bool Send(IPC::Message* message);
@@ -33,8 +36,14 @@ class TrustedPluginChannel : public IPC::Listener {
// Listener implementation.
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+ void OnReportExitStatus(int exit_status);
+
private:
+ // Non-owning pointer. This is safe because the TrustedPluginChannel is owned
+ // by the NexeLoadManager pointed to here.
+ NexeLoadManager* nexe_load_manager_;
scoped_ptr<IPC::SyncChannel> channel_;
+ bool report_exit_status_;
DISALLOW_COPY_AND_ASSIGN(TrustedPluginChannel);
};
« no previous file with comments | « components/nacl/renderer/ppb_nacl_private_impl.cc ('k') | components/nacl/renderer/trusted_plugin_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698