| OLD | NEW |
| (Empty) | |
| 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. |
| 4 |
| 5 #ifndef WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_UTIL_H_ |
| 6 #define WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_UTIL_H_ |
| 7 |
| 8 #include "base/command_line.h" |
| 9 #include "base/string16.h" |
| 10 |
| 11 class FilePath; |
| 12 |
| 13 namespace delegate_execute { |
| 14 |
| 15 // Returns a CommandLine with an empty program parsed from |params|. |
| 16 CommandLine CommandLineFromParameters(const wchar_t* params); |
| 17 |
| 18 // Returns a CommandLine to launch |chrome_exe| with all switches and arguments |
| 19 // from |params| plus an optional |argument|. |
| 20 CommandLine MakeChromeCommandLine(const FilePath& chrome_exe, |
| 21 const CommandLine& params, |
| 22 const string16& argument); |
| 23 |
| 24 // Returns a properly quoted command-line string less the program (argv[0]) |
| 25 // containing |switch|. |
| 26 string16 ParametersFromSwitch(const char* a_switch); |
| 27 |
| 28 } // namespace delegate_execute |
| 29 |
| 30 #endif // WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_UTIL_H_ |
| OLD | NEW |