Chromium Code Reviews| Index: services/ui/demo/mus_demo_service.h |
| diff --git a/services/ui/demo/mus_demo_service.h b/services/ui/demo/mus_demo_service.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6b09ee535eb21137d74dc79e805da70d0612e342 |
| --- /dev/null |
| +++ b/services/ui/demo/mus_demo_service.h |
| @@ -0,0 +1,37 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef SERVICES_UI_DEMO_MUS_DEMO_SERVICE_H_ |
| +#define SERVICES_UI_DEMO_MUS_DEMO_SERVICE_H_ |
| + |
| +#include "base/macros.h" |
| +#include "services/service_manager/public/cpp/service.h" |
| + |
| +namespace ui { |
| + |
| +namespace demo { |
| + |
| +class MusDemo; |
| + |
| +// A simple MUS Demo mojo app. See the MusDemo class for more details. |
| +class MusDemoService : public service_manager::Service { |
| + public: |
| + MusDemoService(); |
| + ~MusDemoService() override; |
| + |
| + private: |
| + // shell::Service: |
|
rjkroege
2016/10/20 21:44:33
tiny nit: Overrides shell::Service?
Jay Civelli
2016/10/21 17:16:11
Done.
|
| + void OnStart(const service_manager::Identity& identity) override; |
| + bool OnConnect(const service_manager::Identity& remote_identity, |
| + service_manager::InterfaceRegistry* registry) override; |
| + |
| + std::unique_ptr<MusDemo> mus_demo_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(MusDemoService); |
| +}; |
| + |
| +} // namespace demo |
| +} // namespace ui |
| + |
| +#endif // SERVICES_UI_DEMO_MUS_DEMO_SERVICE_H_ |