Chromium Code Reviews| 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_ |