Add character encoding to Font Settings Extension API.
[chromium-blink-merge.git] / chrome_frame / chrome_launcher_utils.h
blob699e75edf62d801c02d77e8a68e7ce3028bc4b7f
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
3 // found in the LICENSE file.
5 #ifndef CHROME_FRAME_CHROME_LAUNCHER_UTILS_H_
6 #define CHROME_FRAME_CHROME_LAUNCHER_UTILS_H_
8 #include <string>
10 class CommandLine;
11 class FilePath;
12 template <class C> class scoped_ptr;
14 namespace chrome_launcher {
16 // The base name of the chrome_launcher.exe file.
17 extern const wchar_t kLauncherExeBaseName[];
19 // Creates a command line suitable for launching Chrome. You can add any
20 // flags needed before launching.
22 // The command-line may use the Chrome executable directly, or use an in-between
23 // process if needed for security/elevation purposes.
25 // On success, returns true and populates command_line, which must be non-NULL,
26 // with the launch command line.
27 bool CreateLaunchCommandLine(scoped_ptr<CommandLine>* command_line);
29 // Creates a command line suitable for launching the specified command through
30 // Google Update.
32 // On success, returns true and populates command_line, which must be non-NULL,
33 // with the update command line.
34 bool CreateUpdateCommandLine(const std::wstring& update_command,
35 scoped_ptr<CommandLine>* command_line);
37 // Returns the full path to the Chrome executable.
38 FilePath GetChromeExecutablePath();
40 } // namespace chrome_launcher
42 #endif // CHROME_FRAME_CHROME_LAUNCHER_UTILS_H_