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

Unified Diff: services/device/device_service.h

Issue 2451413003: Introduce Device Service (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/device/OWNERS ('k') | services/device/device_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/device/device_service.h
diff --git a/services/device/device_service.h b/services/device/device_service.h
new file mode 100644
index 0000000000000000000000000000000000000000..32f5018b24cb7778559949c56e6aae3a1a0a47d2
--- /dev/null
+++ b/services/device/device_service.h
@@ -0,0 +1,39 @@
+// 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_DEVICE_DEVICE_SERVICE_H_
+#define SERVICES_DEVICE_DEVICE_SERVICE_H_
+
+#include "base/callback_forward.h"
+#include "base/memory/ref_counted.h"
+#include "mojo/public/cpp/bindings/binding_set.h"
+#include "services/service_manager/public/cpp/interface_factory.h"
+#include "services/service_manager/public/cpp/service.h"
+
+namespace device {
+
+std::unique_ptr<service_manager::Service> CreateDeviceService(
+ scoped_refptr<base::SingleThreadTaskRunner> file_task_runner,
+ const base::Closure& quit_closure);
+
+class DeviceService : public service_manager::Service {
+ public:
+ explicit DeviceService(
+ scoped_refptr<base::SingleThreadTaskRunner> file_task_runner);
+ ~DeviceService() override;
+
+ private:
+ // service_manager::Service:
+ void OnStart(const service_manager::ServiceInfo& info) override;
+ bool OnConnect(const service_manager::ServiceInfo& remote_info,
+ service_manager::InterfaceRegistry* registry) override;
+
+ scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;
+
+ DISALLOW_COPY_AND_ASSIGN(DeviceService);
+};
+
+} // namespace device
+
+#endif // SERVICES_DEVICE_DEVICE_SERVICE_H_
« no previous file with comments | « services/device/OWNERS ('k') | services/device/device_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698