OLD | NEW |
---|---|
(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 CHROME_BROWSER_MOJO_RUNNER_STATE_H_ | |
6 #define CHROME_BROWSER_MOJO_RUNNER_STATE_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "base/memory/scoped_ptr.h" | |
10 | |
11 namespace mojo { | |
12 class ApplicationImpl; | |
13 namespace runner { | |
14 class RunnerConnection; | |
15 } | |
16 } | |
17 | |
18 class ChromeApplicationDelegate; | |
19 | |
20 // Creating an instance of this class blocks the calling thread until a | |
sky
2015/11/05 19:21:28
nit: have constructor just setup state and Init()
| |
21 // connection to the spawning mojo_runner is established, an Application | |
22 // request from it is bound, and the Initialize() method on that | |
23 // application is called. | |
24 // TODO(beng): figure out if/how this should be exposed to other layers | |
25 // of code in Chrome. | |
26 class MojoRunnerState { | |
27 public: | |
28 MojoRunnerState(); | |
29 ~MojoRunnerState(); | |
30 | |
31 private: | |
32 scoped_ptr<mojo::runner::RunnerConnection> runner_connection_; | |
33 scoped_ptr<mojo::ApplicationImpl> application_impl_; | |
34 scoped_ptr<ChromeApplicationDelegate> application_delegate_; | |
sky
2015/11/05 19:21:28
You need to forward declare ChromeApplicationDeleg
| |
35 | |
36 DISALLOW_COPY_AND_ASSIGN(MojoRunnerState); | |
37 }; | |
38 | |
39 #endif // CHROME_BROWSER_MOJO_RUNNER_STATE_H_ | |
OLD | NEW |