1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_FRAME_UPDATE_LAUNCHER_H_
6 #define CHROME_FRAME_UPDATE_LAUNCHER_H_
11 typedef unsigned long DWORD
; // NOLINT
13 namespace update_launcher
{
15 // If the command line asks us to run a command via the ProcessLauncher, returns
16 // the command ID. Otherwise, returns an empty string.
17 std::wstring
GetUpdateCommandFromArguments(const wchar_t* command_line
);
19 // Launches the specified command via the ProcessLauncher, waits for the process
20 // to exit, and returns the exit code for chrome_launcher (normally the launched
21 // command's exit code, or 0xFF in case of failure to launch).
22 DWORD
LaunchUpdateCommand(const std::wstring
& command
);
24 } // namespace process_launcher
26 #endif // CHROME_FRAME_UPDATE_LAUNCHER_H_