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 #pragma once |
| 8 |
| 9 #include <string> |
| 10 |
| 11 typedef unsigned long DWORD; // NOLINT |
| 12 |
| 13 namespace update_launcher { |
| 14 |
| 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); |
| 18 |
| 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); |
| 23 |
| 24 } // namespace process_launcher |
| 25 |
| 26 #endif // CHROME_FRAME_UPDATE_LAUNCHER_H_ |
OLD | NEW |