| 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::Shell* shell, | 25 void Initialize(mojo::Connector* connector, |
| 26 const std::string& url, | 26 const std::string& url, |
| 27 uint32_t id, | 27 uint32_t id, |
| 28 uint32_t user_id) override; | 28 uint32_t user_id) override; |
| 29 bool AcceptConnection(mojo::Connection* connection) override; | 29 bool AcceptConnection(mojo::Connection* connection) override; |
| 30 | 30 |
| 31 mojo::TracingImpl tracing_; | 31 mojo::TracingImpl tracing_; |
| 32 scoped_ptr<AshInit> ash_init_; | 32 scoped_ptr<AshInit> ash_init_; |
| 33 | 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(SysUIApplication); | 34 DISALLOW_COPY_AND_ASSIGN(SysUIApplication); |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 } // namespace sysui | 37 } // namespace sysui |
| 38 } // namespace ash | 38 } // namespace ash |
| 39 | 39 |
| 40 #endif // ASH_MUS_SYSUI_APPLICATION_H_ | 40 #endif // ASH_MUS_SYSUI_APPLICATION_H_ |
| OLD | NEW |