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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 MOJO_PUBLIC_APPLICATION_APPLICATION_RUNNER_H_
6 #define MOJO_PUBLIC_APPLICATION_APPLICATION_RUNNER_H_
7
8 #include "mojo/public/cpp/system/core.h"
9
10 namespace mojo {
11
12 class ApplicationDelegate;
13
14 class ApplicationRunner {
15 public:
16 ApplicationRunner();
17 ~ApplicationRunner();
18
19 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
20 MojoResult Run(MojoHandle shell_handle);
21
22 private:
23 // Optional delegate.
24 ApplicationDelegate* delegate_;
25 };
26
27 } // namespace mojo
28
29 #endif // MOJO_PUBLIC_APPLICATION_APPLICATION_RUNNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698