blob: eee033a4fa8da2778966cf31179d1c3aec0ab8a6 (
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
|
// Copyright (c) 2012 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 WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_UTIL_H_
#define WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_UTIL_H_
#include "base/command_line.h"
#include "base/strings/string16.h"
namespace base {
class FilePath;
}
namespace delegate_execute {
// Returns a CommandLine with an empty program parsed from |params|.
base::CommandLine CommandLineFromParameters(const wchar_t* params);
// Returns a CommandLine to launch |chrome_exe| with all switches and arguments
// from |params| plus an optional |argument|.
base::CommandLine MakeChromeCommandLine(const base::FilePath& chrome_exe,
const base::CommandLine& params,
const base::string16& argument);
// Returns a properly quoted command-line string less the program (argv[0])
// containing |switch|.
base::string16 ParametersFromSwitch(const char* a_switch);
} // namespace delegate_execute
#endif // WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_UTIL_H_
|