OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MOJO_RUNNER_DESKTOP_MAIN_HELPER_H | 5 #ifndef MOJO_SHELL_STANDALONE_DESKTOP_MAIN_HELPER_H |
6 #define MOJO_RUNNER_DESKTOP_MAIN_HELPER_H | 6 #define MOJO_SHELL_STANDALONE_DESKTOP_MAIN_HELPER_H |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
10 | 10 |
11 namespace mojo { | 11 namespace mojo { |
12 namespace runner { | 12 namespace shell { |
13 | 13 |
14 // Helper method to start Mojo Runner code. | 14 // Helper method to start Mojo standalone shell code. |
15 // If |mojo_url| is not empty, the given mojo application is started. Otherwise, | 15 // If |mojo_url| is not empty, the given mojo application is started. Otherwise, |
16 // an application must have been specified on the command line and it is run. | 16 // an application must have been specified on the command line and it is run. |
17 // |callback| is only called in the later case. | 17 // |callback| is only called in the later case. |
18 int RunnerMain(int argc, char** argv, | 18 int StandaloneShellMain(int argc, |
19 const GURL& mojo_url, | 19 char** argv, |
20 const base::Closure& callback); | 20 const GURL& mojo_url, |
| 21 const base::Closure& callback); |
21 | 22 |
22 } // namespace runner | 23 } // namespace shell |
23 } // namespace mojo | 24 } // namespace mojo |
24 | 25 |
25 #endif // MOJO_RUNNER_DESKTOP_MAIN_HELPER_H | 26 #endif // MOJO_SHELL_STANDALONE_DESKTOP_MAIN_HELPER_H |
OLD | NEW |