blob: 86dc03f3acbe080fbd893c74543616609be2c544 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_FRAME_CHROME_LAUNCHER_H_
#define CHROME_FRAME_CHROME_LAUNCHER_H_
#include <string>
#include "base/file_path.h"
class CommandLine;
namespace chrome_launcher {
// The base name of the chrome_launcher.exe file.
extern const wchar_t kLauncherExeBaseName[];
// Creates a command line suitable for launching Chrome. You can add any
// flags needed before launching.
//
// The command-line may use the Chrome executable directly, or use an in-between
// process if needed for security/elevation purposes. You must delete the
// returned command line.
CommandLine* CreateLaunchCommandLine();
// Fills in a new command line from the flags on this process's command line
// that we are allowing Low Integrity to invoke.
//
// Logs a warning for any flags that were passed that are not allowed to be
// invoked by Low Integrity.
void SanitizeCommandLine(const CommandLine& original, CommandLine* sanitized);
// Given a command-line without an initial program part, launch our associated
// chrome.exe with a sanitized version of that command line. Returns true iff
// successful.
bool SanitizeAndLaunchChrome(const wchar_t* command_line);
// Returns the full path to the Chrome executable.
FilePath GetChromeExecutablePath();
// The type of the CfLaunchChrome entrypoint exported from this DLL.
typedef int (__stdcall *CfLaunchChromeProc)();
} // namespace chrome_launcher
#endif // CHROME_FRAME_CHROME_LAUNCHER_H_
|