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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/desktop/main_helper.h
diff --git a/mojo/runner/desktop/main_helper.h b/mojo/runner/desktop/main_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..09c135dacc55fcc8ad924da40a9d7dd9263573cd
--- /dev/null
+++ b/mojo/runner/desktop/main_helper.h
@@ -0,0 +1,25 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MOJO_RUNNER_DESKTOP_MAIN_HELPER_H
+#define MOJO_RUNNER_DESKTOP_MAIN_HELPER_H
+
+#include "base/callback.h"
+#include "url/gurl.h"
+
+namespace mojo {
+namespace runner {
+
+// Helper method to start Mojo Runner code.
+// If |mojo_url| is not empty, the given mojo application is started. Otherwise,
+// an application must have been specified on the command line and it is run.
+// |callback| is only called in the later case.
+int RunnerMain(int argc, char** argv,
+ const GURL& mojo_url,
+ const base::Closure& callback);
+
+} // namespace runner
+} // namespace mojo
+
+#endif // MOJO_RUNNER_DESKTOP_MAIN_HELPER_H
« 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