Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: mojo/runner/desktop/main_helper.h

Issue 1440053002: Remove duplication between Mandoline and mojo_runner main functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/runner/desktop/main.cc ('k') | mojo/runner/desktop/main_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MOJO_RUNNER_DESKTOP_MAIN_HELPER_H
6 #define MOJO_RUNNER_DESKTOP_MAIN_HELPER_H
7
8 #include "base/callback.h"
9 #include "url/gurl.h"
10
11 namespace mojo {
12 namespace runner {
13
14 // Helper method to start Mojo Runner code.
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.
17 // |callback| is only called in the later case.
18 int RunnerMain(int argc, char** argv,
19 const GURL& mojo_url,
20 const base::Closure& callback);
21
22 } // namespace runner
23 } // namespace mojo
24
25 #endif // MOJO_RUNNER_DESKTOP_MAIN_HELPER_H
OLDNEW
« no previous file with comments | « mojo/runner/desktop/main.cc ('k') | mojo/runner/desktop/main_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698