| 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 SERVICES_UI_DEMO_MUS_DEMO_SERVICE_H_ | 5 #ifndef SERVICES_UI_DEMO_MUS_DEMO_SERVICE_H_ |
| 6 #define SERVICES_UI_DEMO_MUS_DEMO_SERVICE_H_ | 6 #define SERVICES_UI_DEMO_MUS_DEMO_SERVICE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "services/service_manager/public/cpp/service.h" | 9 #include "services/service_manager/public/cpp/service.h" |
| 10 | 10 |
| 11 namespace ui { | 11 namespace ui { |
| 12 namespace demo { | 12 namespace demo { |
| 13 | 13 |
| 14 class MusDemo; | 14 class MusDemo; |
| 15 | 15 |
| 16 // A simple MUS Demo mojo app. See the MusDemo class for more details. | 16 // A simple MUS Demo mojo app. See the MusDemo class for more details. |
| 17 class MusDemoService : public service_manager::Service { | 17 class MusDemoService : public service_manager::Service { |
| 18 public: | 18 public: |
| 19 MusDemoService(); | 19 MusDemoService(); |
| 20 ~MusDemoService() override; | 20 ~MusDemoService() override; |
| 21 | 21 |
| 22 private: | 22 private: |
| 23 // Overrides shell::Service: | 23 // Overrides shell::Service: |
| 24 void OnStart(const service_manager::Identity& identity) override; | 24 void OnStart(const service_manager::ServiceInfo& info) override; |
| 25 bool OnConnect(const service_manager::Identity& remote_identity, | 25 bool OnConnect(const service_manager::ServiceInfo& remote_info, |
| 26 service_manager::InterfaceRegistry* registry) override; | 26 service_manager::InterfaceRegistry* registry) override; |
| 27 | 27 |
| 28 std::unique_ptr<MusDemo> mus_demo_; | 28 std::unique_ptr<MusDemo> mus_demo_; |
| 29 | 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(MusDemoService); | 30 DISALLOW_COPY_AND_ASSIGN(MusDemoService); |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 } // namespace demo | 33 } // namespace demo |
| 34 } // namespace ui | 34 } // namespace ui |
| 35 | 35 |
| 36 #endif // SERVICES_UI_DEMO_MUS_DEMO_SERVICE_H_ | 36 #endif // SERVICES_UI_DEMO_MUS_DEMO_SERVICE_H_ |
| OLD | NEW |