Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 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 SHELL_COMMAND_LINE_UTIL_H_ | |
| 6 #define SHELL_COMMAND_LINE_UTIL_H_ | |
| 7 | |
| 8 #include "shell/context.h" | |
| 9 | |
| 10 namespace mojo { | |
| 11 namespace shell { | |
| 12 | |
| 13 // Apply arguments for an application from a line with the following format: | |
|
sky
2014/12/17 16:44:05
WDYT of splitting out the extraction functions so
qsr
2014/12/18 14:21:36
I didn't do exactly this, but I refactored this to
| |
| 14 // '--args-for=application_url arg1 arg2 arg3' | |
| 15 // This does nothing if the line has not the right format. | |
| 16 void ApplyApplicationArgs(Context* context, const std::string args); | |
|
sky
2014/12/17 16:44:05
const std::string&
qsr
2014/12/18 14:21:36
Done.
| |
| 17 | |
| 18 // Run all application defined on the command line, using the given context. | |
| 19 void RunCommandLineApps(Context* context); | |
| 20 | |
| 21 } // namespace shell | |
| 22 } // namespace mojo | |
| 23 | |
| 24 #endif // SHELL_COMMAND_LINE_UTIL_H_ | |
| OLD | NEW |