diff options
author | mcgrathr@chromium.org <mcgrathr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-15 19:06:52 +0000 |
---|---|---|
committer | mcgrathr@chromium.org <mcgrathr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-15 19:06:52 +0000 |
commit | 773ebb9bc2a68879fc6c7f38e18573687151abdc (patch) | |
tree | bba65743f6fd1dbe64a78d3e8c11bd1627f3e890 /chrome/common | |
parent | 19682a954be12bc426c41136845bf57cbb6c3c5d (diff) | |
download | chromium_src-773ebb9bc2a68879fc6c7f38e18573687151abdc.zip chromium_src-773ebb9bc2a68879fc6c7f38e18573687151abdc.tar.gz chromium_src-773ebb9bc2a68879fc6c7f38e18573687151abdc.tar.bz2 |
Open NaCl IRT file only once at startup
This changes the NaCl startup dance so that the IRT file is opened
just once at browser startup. That file descriptor is kept around and
passed repeatedly to each NaCl process launched. This ensures that
when autoupdate replaces the file on disk with a new version, we
continue to use the original file that corresponds to the old browser
version that's still running.
We also eliminate the cases for not having an IRT file, which is now a
hard error (i.e. prevents NaCl launches). It's been a hard
requirement for NaCl that the IRT be available since Chromium 14.
BUG= http://code.google.com/p/nativeclient/issues/detail?id=1772
TEST= hand-tested in Chromium build on Linux, Mac, and Windows
R=brettw@chromium.org
Review URL: http://codereview.chromium.org/8397001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110136 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/nacl_messages.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/common/nacl_messages.h b/chrome/common/nacl_messages.h index 5f4aaa6..9297580 100644 --- a/chrome/common/nacl_messages.h +++ b/chrome/common/nacl_messages.h @@ -20,9 +20,8 @@ // NaClProcess messages // These are messages sent from the browser to the NaCl process. // Tells the NaCl process to start. -IPC_MESSAGE_CONTROL2(NaClProcessMsg_Start, - std::vector<nacl::FileDescriptor> /* sockets */, - bool /* have_irt_file */) +IPC_MESSAGE_CONTROL1(NaClProcessMsg_Start, + std::vector<nacl::FileDescriptor> /* sockets */) // Tells the NaCl broker to launch a NaCl loader process. IPC_MESSAGE_CONTROL1(NaClProcessMsg_LaunchLoaderThroughBroker, @@ -36,4 +35,3 @@ IPC_MESSAGE_CONTROL2(NaClProcessMsg_LoaderLaunched, // Notify the broker that all loader processes have been terminated and it // should shutdown. IPC_MESSAGE_CONTROL0(NaClProcessMsg_StopBroker) - |