OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef CHROME_FRAME_UPDATE_LAUNCHER_H_ |
| 6 #define CHROME_FRAME_UPDATE_LAUNCHER_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 typedef unsigned long DWORD; // NOLINT |
| 11 |
| 12 namespace update_launcher { |
| 13 |
| 14 // If the command line asks us to run a command via the ProcessLauncher, returns |
| 15 // the command ID. Otherwise, returns an empty string. |
| 16 std::wstring GetUpdateCommandFromArguments(const wchar_t* command_line); |
| 17 |
| 18 // Launches the specified command via the ProcessLauncher, waits for the process |
| 19 // to exit, and returns the exit code for chrome_launcher (normally the launched |
| 20 // command's exit code, or 0xFF in case of failure to launch). |
| 21 DWORD LaunchUpdateCommand(const std::wstring& command); |
| 22 |
| 23 } // namespace process_launcher |
| 24 |
| 25 #endif // CHROME_FRAME_UPDATE_LAUNCHER_H_ |
OLD | NEW |