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 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 | 10 |
11 class CommandLine; | 11 class CommandLine; |
| 12 |
| 13 namespace base { |
12 class FilePath; | 14 class FilePath; |
| 15 } |
13 | 16 |
14 namespace chrome_launcher { | 17 namespace chrome_launcher { |
15 | 18 |
16 // The base name of the chrome_launcher.exe file. | 19 // The base name of the chrome_launcher.exe file. |
17 extern const wchar_t kLauncherExeBaseName[]; | 20 extern const wchar_t kLauncherExeBaseName[]; |
18 | 21 |
19 // Creates a command line suitable for launching Chrome. You can add any | 22 // Creates a command line suitable for launching Chrome. You can add any |
20 // flags needed before launching. | 23 // flags needed before launching. |
21 // | 24 // |
22 // The command-line may use the Chrome executable directly, or use an in-between | 25 // The command-line may use the Chrome executable directly, or use an in-between |
23 // process if needed for security/elevation purposes. | 26 // process if needed for security/elevation purposes. |
24 // | 27 // |
25 // On success, returns true and populates command_line, which must be non-NULL, | 28 // On success, returns true and populates command_line, which must be non-NULL, |
26 // with the launch command line. | 29 // with the launch command line. |
27 bool CreateLaunchCommandLine(scoped_ptr<CommandLine>* command_line); | 30 bool CreateLaunchCommandLine(scoped_ptr<CommandLine>* command_line); |
28 | 31 |
29 // Creates a command line suitable for launching the specified command through | 32 // Creates a command line suitable for launching the specified command through |
30 // Google Update. | 33 // Google Update. |
31 // | 34 // |
32 // On success, returns true and populates command_line, which must be non-NULL, | 35 // On success, returns true and populates command_line, which must be non-NULL, |
33 // with the update command line. | 36 // with the update command line. |
34 bool CreateUpdateCommandLine(const std::wstring& update_command, | 37 bool CreateUpdateCommandLine(const std::wstring& update_command, |
35 scoped_ptr<CommandLine>* command_line); | 38 scoped_ptr<CommandLine>* command_line); |
36 | 39 |
37 // Returns the full path to the Chrome executable. | 40 // Returns the full path to the Chrome executable. |
38 FilePath GetChromeExecutablePath(); | 41 base::FilePath GetChromeExecutablePath(); |
39 | 42 |
40 } // namespace chrome_launcher | 43 } // namespace chrome_launcher |
41 | 44 |
42 #endif // CHROME_FRAME_CHROME_LAUNCHER_UTILS_H_ | 45 #endif // CHROME_FRAME_CHROME_LAUNCHER_UTILS_H_ |
OLD | NEW |