Revert of Implement "Look Up In Dictionary" context menu item asynchronously. (patchs...
[chromium-blink-merge.git] / win8 / delegate_execute / delegate_execute_util.h
blobeee033a4fa8da2778966cf31179d1c3aec0ab8a6
1 // Copyright (c) 2012 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 WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_UTIL_H_
6 #define WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_UTIL_H_
8 #include "base/command_line.h"
9 #include "base/strings/string16.h"
11 namespace base {
12 class FilePath;
15 namespace delegate_execute {
17 // Returns a CommandLine with an empty program parsed from |params|.
18 base::CommandLine CommandLineFromParameters(const wchar_t* params);
20 // Returns a CommandLine to launch |chrome_exe| with all switches and arguments
21 // from |params| plus an optional |argument|.
22 base::CommandLine MakeChromeCommandLine(const base::FilePath& chrome_exe,
23 const base::CommandLine& params,
24 const base::string16& argument);
26 // Returns a properly quoted command-line string less the program (argv[0])
27 // containing |switch|.
28 base::string16 ParametersFromSwitch(const char* a_switch);
30 } // namespace delegate_execute
32 #endif // WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_UTIL_H_