Chromium Code Reviews| 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_DEVICE_DEVICE_SERVICE_H_ | |
| 6 #define SERVICES_DEVICE_DEVICE_SERVICE_H_ | |
| 7 | |
| 8 #include "base/callback_forward.h" | |
| 9 #include "base/memory/ref_counted.h" | |
| 10 #include "mojo/public/cpp/bindings/binding_set.h" | |
| 11 #include "services/service_manager/public/cpp/interface_factory.h" | |
| 12 #include "services/service_manager/public/cpp/service.h" | |
| 13 | |
| 14 namespace device { | |
| 15 | |
| 16 std::unique_ptr<service_manager::Service> CreateDeviceService( | |
| 17 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner, | |
| 18 const base::Closure& quit_closure); | |
| 19 | |
| 20 class DeviceService : public service_manager::Service { | |
| 21 public: | |
| 22 explicit DeviceService( | |
| 23 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner); | |
| 24 ~DeviceService() override; | |
| 25 | |
| 26 private: | |
| 27 // |Service| override: | |
|
Ken Rockot(use gerrit already)
2016/10/28 23:59:17
nitty style nit: Typically we fully qualify the in
blundell
2016/10/31 23:11:56
Done.
| |
| 28 void OnStart(const service_manager::ServiceInfo& info) override; | |
| 29 bool OnConnect(const service_manager::ServiceInfo& remote_info, | |
| 30 service_manager::InterfaceRegistry* registry) override; | |
| 31 | |
| 32 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; | |
| 33 | |
| 34 DISALLOW_COPY_AND_ASSIGN(DeviceService); | |
| 35 }; | |
| 36 | |
| 37 } // namespace device | |
| 38 | |
| 39 #endif // SERVICES_DEVICE_DEVICE_SERVICE_H_ | |
| OLD | NEW |