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

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

Issue 2440453002: Splitting the Mus demo code out of a service. (Closed)
Patch Set: Addressed @sky comments and synced 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
« no previous file with comments | « services/ui/demo/mus_demo.cc ('k') | services/ui/demo/mus_demo_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..186b9c2b0960ec73327beb71802b93c015547b42
--- /dev/null
+++ b/services/ui/demo/mus_demo_service.h
@@ -0,0 +1,36 @@
+// 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:
+ // Overrides 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_
« no previous file with comments | « services/ui/demo/mus_demo.cc ('k') | services/ui/demo/mus_demo_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698