OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_MUS_SYSUI_APPLICATION_H_ | 5 #ifndef ASH_MUS_SYSUI_APPLICATION_H_ |
6 #define ASH_MUS_SYSUI_APPLICATION_H_ | 6 #define ASH_MUS_SYSUI_APPLICATION_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "mojo/services/tracing/public/cpp/tracing_impl.h" | 10 #include "mojo/services/tracing/public/cpp/tracing_impl.h" |
11 #include "mojo/shell/public/cpp/shell_client.h" | 11 #include "mojo/shell/public/cpp/shell_client.h" |
12 | 12 |
13 namespace ash { | 13 namespace ash { |
14 namespace sysui { | 14 namespace sysui { |
15 | 15 |
16 class AshInit; | 16 class AshInit; |
17 | 17 |
18 class SysUIApplication : public mojo::ShellClient { | 18 class SysUIApplication : public mojo::ShellClient { |
19 public: | 19 public: |
20 SysUIApplication(); | 20 SysUIApplication(); |
21 ~SysUIApplication() override; | 21 ~SysUIApplication() override; |
22 | 22 |
23 private: | 23 private: |
24 // mojo::ShellClient: | 24 // mojo::ShellClient: |
25 void Initialize(mojo::Connector* connector, | 25 void Initialize(mojo::Connector* connector, |
26 const mojo::Identity& identity, | 26 const mojo::Identity& identity, |
27 uint32_t id) override; | 27 uint32_t id) override; |
28 bool AcceptConnection(mojo::Connection* connection) override; | 28 bool AcceptConnection(mojo::Connection* connection) override; |
| 29 void ShellConnectionLost() override; |
29 | 30 |
30 mojo::TracingImpl tracing_; | 31 mojo::TracingImpl tracing_; |
31 scoped_ptr<AshInit> ash_init_; | 32 scoped_ptr<AshInit> ash_init_; |
32 | 33 |
33 DISALLOW_COPY_AND_ASSIGN(SysUIApplication); | 34 DISALLOW_COPY_AND_ASSIGN(SysUIApplication); |
34 }; | 35 }; |
35 | 36 |
36 } // namespace sysui | 37 } // namespace sysui |
37 } // namespace ash | 38 } // namespace ash |
38 | 39 |
39 #endif // ASH_MUS_SYSUI_APPLICATION_H_ | 40 #endif // ASH_MUS_SYSUI_APPLICATION_H_ |
OLD | NEW |