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

Side by Side Diff: services/device/device_service.h

Issue 2608163003: Change single-interface mojo bindings to use SequencedTaskRunner. (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « mojo/public/cpp/system/watcher.cc ('k') | services/device/device_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SERVICES_DEVICE_DEVICE_SERVICE_H_ 5 #ifndef SERVICES_DEVICE_DEVICE_SERVICE_H_
6 #define SERVICES_DEVICE_DEVICE_SERVICE_H_ 6 #define SERVICES_DEVICE_DEVICE_SERVICE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "device/power_monitor/public/interfaces/power_monitor.mojom.h" 9 #include "device/power_monitor/public/interfaces/power_monitor.mojom.h"
10 #include "device/time_zone_monitor/public/interfaces/time_zone_monitor.mojom.h" 10 #include "device/time_zone_monitor/public/interfaces/time_zone_monitor.mojom.h"
11 #include "mojo/public/cpp/bindings/binding_set.h" 11 #include "mojo/public/cpp/bindings/binding_set.h"
12 #include "services/service_manager/public/cpp/interface_factory.h" 12 #include "services/service_manager/public/cpp/interface_factory.h"
13 #include "services/service_manager/public/cpp/service.h" 13 #include "services/service_manager/public/cpp/service.h"
14 14
15 namespace base {
16 class SingleThreadTaskRunner;
17 }
18
15 namespace device { 19 namespace device {
16 20
17 class TimeZoneMonitor; 21 class TimeZoneMonitor;
18 22
19 std::unique_ptr<service_manager::Service> CreateDeviceService( 23 std::unique_ptr<service_manager::Service> CreateDeviceService(
20 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner); 24 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner);
21 25
22 class DeviceService 26 class DeviceService
23 : public service_manager::Service, 27 : public service_manager::Service,
24 public service_manager::InterfaceFactory<mojom::PowerMonitor>, 28 public service_manager::InterfaceFactory<mojom::PowerMonitor>,
(...skipping 19 matching lines...) Expand all
44 std::unique_ptr<device::TimeZoneMonitor> time_zone_monitor_; 48 std::unique_ptr<device::TimeZoneMonitor> time_zone_monitor_;
45 49
46 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; 50 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;
47 51
48 DISALLOW_COPY_AND_ASSIGN(DeviceService); 52 DISALLOW_COPY_AND_ASSIGN(DeviceService);
49 }; 53 };
50 54
51 } // namespace device 55 } // namespace device
52 56
53 #endif // SERVICES_DEVICE_DEVICE_SERVICE_H_ 57 #endif // SERVICES_DEVICE_DEVICE_SERVICE_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/system/watcher.cc ('k') | services/device/device_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698