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

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

Issue 2850743004: Replace ServiceInfo with BindSourceInfo. (Closed)
Patch Set: . Created 3 years, 7 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 | « services/data_decoder/data_decoder_service.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/battery/battery_monitor.mojom.h" 9 #include "device/battery/battery_monitor.mojom.h"
10 #include "device/generic_sensor/public/interfaces/sensor_provider.mojom.h" 10 #include "device/generic_sensor/public/interfaces/sensor_provider.mojom.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 const WakeLockContextCallback& wake_lock_context_callback); 69 const WakeLockContextCallback& wake_lock_context_callback);
70 #else 70 #else
71 DeviceService(scoped_refptr<base::SingleThreadTaskRunner> file_task_runner, 71 DeviceService(scoped_refptr<base::SingleThreadTaskRunner> file_task_runner,
72 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner); 72 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner);
73 #endif 73 #endif
74 ~DeviceService() override; 74 ~DeviceService() override;
75 75
76 private: 76 private:
77 // service_manager::Service: 77 // service_manager::Service:
78 void OnStart() override; 78 void OnStart() override;
79 void OnBindInterface(const service_manager::ServiceInfo& source_info, 79 void OnBindInterface(const service_manager::BindSourceInfo& source_info,
80 const std::string& interface_name, 80 const std::string& interface_name,
81 mojo::ScopedMessagePipeHandle interface_pipe) override; 81 mojo::ScopedMessagePipeHandle interface_pipe) override;
82 82
83 // InterfaceFactory<mojom::Fingerprint>: 83 // InterfaceFactory<mojom::Fingerprint>:
84 void Create(const service_manager::Identity& remote_identity, 84 void Create(const service_manager::Identity& remote_identity,
85 mojom::FingerprintRequest request) override; 85 mojom::FingerprintRequest request) override;
86 86
87 // InterfaceFactory<mojom::MotionSensor>: 87 // InterfaceFactory<mojom::MotionSensor>:
88 void Create(const service_manager::Identity& remote_identity, 88 void Create(const service_manager::Identity& remote_identity,
89 mojom::MotionSensorRequest request) override; 89 mojom::MotionSensorRequest request) override;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 WakeLockContextCallback wake_lock_context_callback_; 145 WakeLockContextCallback wake_lock_context_callback_;
146 146
147 service_manager::BinderRegistry registry_; 147 service_manager::BinderRegistry registry_;
148 148
149 DISALLOW_COPY_AND_ASSIGN(DeviceService); 149 DISALLOW_COPY_AND_ASSIGN(DeviceService);
150 }; 150 };
151 151
152 } // namespace device 152 } // namespace device
153 153
154 #endif // SERVICES_DEVICE_DEVICE_SERVICE_H_ 154 #endif // SERVICES_DEVICE_DEVICE_SERVICE_H_
OLDNEW
« no previous file with comments | « services/data_decoder/data_decoder_service.cc ('k') | services/device/device_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698