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

Side by Side Diff: device/serial/serial_service_impl.h

Issue 2080513002: Deletes mojo::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 | « device/serial/serial_connection.cc ('k') | device/serial/serial_service_impl.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 DEVICE_SERIAL_SERIAL_SERVICE_IMPL_H_ 5 #ifndef DEVICE_SERIAL_SERIAL_SERVICE_IMPL_H_
6 #define DEVICE_SERIAL_SERIAL_SERVICE_IMPL_H_ 6 #define DEVICE_SERIAL_SERIAL_SERVICE_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 19 matching lines...) Expand all
30 static void Create(scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, 30 static void Create(scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
31 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, 31 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
32 mojo::InterfaceRequest<serial::SerialService> request); 32 mojo::InterfaceRequest<serial::SerialService> request);
33 static void CreateOnMessageLoop( 33 static void CreateOnMessageLoop(
34 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 34 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
35 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, 35 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
36 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, 36 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
37 mojo::InterfaceRequest<serial::SerialService> request); 37 mojo::InterfaceRequest<serial::SerialService> request);
38 38
39 // SerialService overrides. 39 // SerialService overrides.
40 void GetDevices( 40 void GetDevices(const GetDevicesCallback& callback) override;
41 const mojo::Callback<void(mojo::Array<serial::DeviceInfoPtr>)>& callback)
42 override;
43 void Connect( 41 void Connect(
44 const mojo::String& path, 42 const mojo::String& path,
45 serial::ConnectionOptionsPtr options, 43 serial::ConnectionOptionsPtr options,
46 mojo::InterfaceRequest<serial::Connection> connection_request, 44 mojo::InterfaceRequest<serial::Connection> connection_request,
47 mojo::InterfaceRequest<serial::DataSink> sink, 45 mojo::InterfaceRequest<serial::DataSink> sink,
48 mojo::InterfaceRequest<serial::DataSource> source, 46 mojo::InterfaceRequest<serial::DataSource> source,
49 mojo::InterfacePtr<serial::DataSourceClient> source_client) override; 47 mojo::InterfacePtr<serial::DataSourceClient> source_client) override;
50 48
51 private: 49 private:
52 SerialDeviceEnumerator* GetDeviceEnumerator(); 50 SerialDeviceEnumerator* GetDeviceEnumerator();
53 bool IsValidPath(const mojo::String& path); 51 bool IsValidPath(const mojo::String& path);
54 52
55 std::unique_ptr<SerialDeviceEnumerator> device_enumerator_; 53 std::unique_ptr<SerialDeviceEnumerator> device_enumerator_;
56 scoped_refptr<SerialConnectionFactory> connection_factory_; 54 scoped_refptr<SerialConnectionFactory> connection_factory_;
57 mojo::StrongBinding<serial::SerialService> binding_; 55 mojo::StrongBinding<serial::SerialService> binding_;
58 56
59 DISALLOW_COPY_AND_ASSIGN(SerialServiceImpl); 57 DISALLOW_COPY_AND_ASSIGN(SerialServiceImpl);
60 }; 58 };
61 59
62 } // namespace device 60 } // namespace device
63 61
64 #endif // DEVICE_SERIAL_SERIAL_SERVICE_IMPL_H_ 62 #endif // DEVICE_SERIAL_SERIAL_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « device/serial/serial_connection.cc ('k') | device/serial/serial_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698