diff options
author | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-22 19:45:29 +0000 |
---|---|---|
committer | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-22 19:46:44 +0000 |
commit | 9cfb9ff5222bb57d385bba5a600c038f08130cbe (patch) | |
tree | cdab4ecae7f24d18dd6d60aa34f68170a164011b /components/nacl/common/nacl_renderer_messages.h | |
parent | 795075576d75fa10bfd3d4100b8224ff7962e7e2 (diff) | |
download | chromium_src-9cfb9ff5222bb57d385bba5a600c038f08130cbe.zip chromium_src-9cfb9ff5222bb57d385bba5a600c038f08130cbe.tar.gz chromium_src-9cfb9ff5222bb57d385bba5a600c038f08130cbe.tar.bz2 |
Pepper: Report NaCl exit status over Chromium IPC.
This change uses a NaCl embedder interface for getting the exit status inside
the loader process instead of receiving that information over SRPC.
The IPC message introduced here must be synchronous so that we're guaranteed to
report the exit status before the loader process exits.
BUG=397161
TEST=NaClBrowserTest.ExitStatus*
R=dmichael@chromium.org, jschuh@chromium.org, mseaborn@chromium.org
Review URL: https://codereview.chromium.org/484783002
Cr-Commit-Position: refs/heads/master@{#291480}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291480 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/nacl/common/nacl_renderer_messages.h')
-rw-r--r-- | components/nacl/common/nacl_renderer_messages.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/components/nacl/common/nacl_renderer_messages.h b/components/nacl/common/nacl_renderer_messages.h new file mode 100644 index 0000000..e07a082 --- /dev/null +++ b/components/nacl/common/nacl_renderer_messages.h @@ -0,0 +1,15 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Defines messages between the renderer and the NaCl process. + +// Multiply-included message file, no traditional include guard. +#include "ipc/ipc_message_macros.h" + +#define IPC_MESSAGE_START NaClHostMsgStart + +// This message must be synchronous to ensure that the exit status is sent from +// NaCl to the renderer before the NaCl process exits very soon after. +IPC_SYNC_MESSAGE_CONTROL1_0(NaClRendererMsg_ReportExitStatus, + int /* exit_status */) |