OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_FRAME_CHROME_LAUNCHER_UTILS_H_ | 5 #ifndef CHROME_FRAME_CHROME_LAUNCHER_UTILS_H_ |
6 #define CHROME_FRAME_CHROME_LAUNCHER_UTILS_H_ | 6 #define CHROME_FRAME_CHROME_LAUNCHER_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 class CommandLine; | 10 class CommandLine; |
11 class FilePath; | 11 class FilePath; |
12 | 12 |
13 namespace chrome_launcher { | 13 namespace chrome_launcher { |
14 | 14 |
15 // The base name of the chrome_launcher.exe file. | 15 // The base name of the chrome_launcher.exe file. |
16 extern const wchar_t kLauncherExeBaseName[]; | 16 extern const wchar_t kLauncherExeBaseName[]; |
17 | 17 |
18 // Creates a command line suitable for launching Chrome. You can add any | 18 // Creates a command line suitable for launching Chrome. You can add any |
19 // flags needed before launching. | 19 // flags needed before launching. |
20 // | 20 // |
21 // The command-line may use the Chrome executable directly, or use an in-between | 21 // The command-line may use the Chrome executable directly, or use an in-between |
22 // process if needed for security/elevation purposes. You must delete the | 22 // process if needed for security/elevation purposes. You must delete the |
23 // returned command line. | 23 // returned command line. |
24 CommandLine* CreateLaunchCommandLine(); | 24 CommandLine* CreateLaunchCommandLine(); |
25 | 25 |
| 26 // Creates a command line suitable for launching the specified command through |
| 27 // Google Update. |
| 28 // |
| 29 // You must delete the returned command line. |
| 30 CommandLine* CreateUpdateCommandLine(const std::wstring& update_command); |
| 31 |
26 // Returns the full path to the Chrome executable. | 32 // Returns the full path to the Chrome executable. |
27 FilePath GetChromeExecutablePath(); | 33 FilePath GetChromeExecutablePath(); |
28 | 34 |
29 } // namespace chrome_launcher | 35 } // namespace chrome_launcher |
30 | 36 |
31 #endif // CHROME_FRAME_CHROME_LAUNCHER_UTILS_H_ | 37 #endif // CHROME_FRAME_CHROME_LAUNCHER_UTILS_H_ |
OLD | NEW |