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