blob: 699e75edf62d801c02d77e8a68e7ce3028bc4b7f [file] [log] [blame]
[email protected]864b1362010-08-19 03:49:381// Copyright (c) 2010 The Chromium Authors. All rights reserved.
[email protected]79b663c2010-05-28 17:27:172// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]864b1362010-08-19 03:49:385#ifndef CHROME_FRAME_CHROME_LAUNCHER_UTILS_H_
6#define CHROME_FRAME_CHROME_LAUNCHER_UTILS_H_
[email protected]79b663c2010-05-28 17:27:177
8#include <string>
9
[email protected]79b663c2010-05-28 17:27:1710class CommandLine;
[email protected]864b1362010-08-19 03:49:3811class FilePath;
[email protected]993728412011-09-26 19:46:2612template <class C> class scoped_ptr;
[email protected]79b663c2010-05-28 17:27:1713
14namespace chrome_launcher {
15
16// The base name of the chrome_launcher.exe file.
17extern const wchar_t kLauncherExeBaseName[];
18
19// Creates a command line suitable for launching Chrome. You can add any
20// flags needed before launching.
21//
22// The command-line may use the Chrome executable directly, or use an in-between
[email protected]993728412011-09-26 19:46:2623// process if needed for security/elevation purposes.
24//
25// On success, returns true and populates command_line, which must be non-NULL,
26// with the launch command line.
27bool CreateLaunchCommandLine(scoped_ptr<CommandLine>* command_line);
[email protected]79b663c2010-05-28 17:27:1728
[email protected]efd97482011-01-24 19:14:1129// Creates a command line suitable for launching the specified command through
30// Google Update.
31//
[email protected]993728412011-09-26 19:46:2632// On success, returns true and populates command_line, which must be non-NULL,
33// with the update command line.
34bool CreateUpdateCommandLine(const std::wstring& update_command,
35 scoped_ptr<CommandLine>* command_line);
[email protected]efd97482011-01-24 19:14:1136
[email protected]79b663c2010-05-28 17:27:1737// Returns the full path to the Chrome executable.
38FilePath GetChromeExecutablePath();
39
40} // namespace chrome_launcher
41
[email protected]864b1362010-08-19 03:49:3842#endif // CHROME_FRAME_CHROME_LAUNCHER_UTILS_H_