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

Unified Diff: mojo/public/cpp/application/application_runner.h

Issue 441853002: mojo: first take on removing mojo_main_{chromium,standalone}. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 months 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
Index: mojo/public/cpp/application/application_runner.h
diff --git a/mojo/public/cpp/application/application_runner.h b/mojo/public/cpp/application/application_runner.h
new file mode 100644
index 0000000000000000000000000000000000000000..db26681a07d81caa7fab58a1674e6cb1daa06aa5
--- /dev/null
+++ b/mojo/public/cpp/application/application_runner.h
@@ -0,0 +1,29 @@
+// Copyright 2014 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_PUBLIC_APPLICATION_APPLICATION_RUNNER_H_
+#define MOJO_PUBLIC_APPLICATION_APPLICATION_RUNNER_H_
+
+#include "mojo/public/cpp/system/core.h"
+
+namespace mojo {
+
+class ApplicationDelegate;
+
+class ApplicationRunner {
+ public:
+ ApplicationRunner();
+ ~ApplicationRunner();
+
+ void take_delegate(ApplicationDelegate* delegate);
DaveMoore 2014/08/07 01:54:33 take_delegate()? Why not set_delegate()? And why i
tim (not reviewing) 2014/08/07 17:13:21 I wanted to convey ownership without being able to
DaveMoore 2014/08/07 18:12:36 What I don't like about it is that ARC inherits fr
tim (not reviewing) 2014/08/07 18:46:49 Oh, but it doesn't inherit :) I explicitly avoided
darin (slow to review) 2014/08/07 20:08:48 take_delegate() bothers me too :) Why do you need
tim (not reviewing) 2014/08/07 22:05:32 Will rename. I guess I was thinking the Applicatio
+ MojoResult Run(MojoHandle shell_handle);
+
+ private:
+ // Optional delegate.
+ ApplicationDelegate* delegate_;
+};
+
+} // namespace mojo
+
+#endif // MOJO_PUBLIC_APPLICATION_APPLICATION_RUNNER_H_

Powered by Google App Engine
This is Rietveld 408576698