Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1981)

Unified Diff: services/ui/demo/mus_demo_service.h

Issue 2440453002: Splitting the Mus demo code out of a service. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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:
+ 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_

Powered by Google App Engine
This is Rietveld 408576698