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

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

Issue 889283002: Remove Client= from device/serial/data_stream.mojom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: This time without racing message pipes Created 5 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 | « device/serial/serial_connection_unittest.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 "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "device/serial/data_stream.mojom.h" 10 #include "device/serial/data_stream.mojom.h"
(...skipping 18 matching lines...) Expand all
29 static void CreateOnMessageLoop( 29 static void CreateOnMessageLoop(
30 scoped_refptr<base::MessageLoopProxy> message_loop, 30 scoped_refptr<base::MessageLoopProxy> message_loop,
31 scoped_refptr<base::MessageLoopProxy> io_message_loop, 31 scoped_refptr<base::MessageLoopProxy> io_message_loop,
32 scoped_refptr<base::MessageLoopProxy> ui_message_loop, 32 scoped_refptr<base::MessageLoopProxy> ui_message_loop,
33 mojo::InterfaceRequest<serial::SerialService> request); 33 mojo::InterfaceRequest<serial::SerialService> request);
34 34
35 // mojo::InterfaceImpl<SerialService> overrides. 35 // mojo::InterfaceImpl<SerialService> overrides.
36 void GetDevices( 36 void GetDevices(
37 const mojo::Callback<void(mojo::Array<serial::DeviceInfoPtr>)>& callback) 37 const mojo::Callback<void(mojo::Array<serial::DeviceInfoPtr>)>& callback)
38 override; 38 override;
39 void Connect(const mojo::String& path, 39 void Connect(
40 serial::ConnectionOptionsPtr options, 40 const mojo::String& path,
41 mojo::InterfaceRequest<serial::Connection> connection_request, 41 serial::ConnectionOptionsPtr options,
42 mojo::InterfaceRequest<serial::DataSink> sink, 42 mojo::InterfaceRequest<serial::Connection> connection_request,
43 mojo::InterfaceRequest<serial::DataSource> source) override; 43 mojo::InterfaceRequest<serial::DataSink> sink,
44 mojo::InterfaceRequest<serial::DataSource> source,
45 mojo::InterfacePtr<serial::DataSourceClient> source_client) override;
44 46
45 private: 47 private:
46 SerialDeviceEnumerator* GetDeviceEnumerator(); 48 SerialDeviceEnumerator* GetDeviceEnumerator();
47 bool IsValidPath(const mojo::String& path); 49 bool IsValidPath(const mojo::String& path);
48 50
49 scoped_ptr<SerialDeviceEnumerator> device_enumerator_; 51 scoped_ptr<SerialDeviceEnumerator> device_enumerator_;
50 scoped_refptr<SerialConnectionFactory> connection_factory_; 52 scoped_refptr<SerialConnectionFactory> connection_factory_;
51 53
52 DISALLOW_COPY_AND_ASSIGN(SerialServiceImpl); 54 DISALLOW_COPY_AND_ASSIGN(SerialServiceImpl);
53 }; 55 };
54 56
55 } // namespace device 57 } // namespace device
56 58
57 #endif // DEVICE_SERIAL_SERIAL_SERVICE_IMPL_H_ 59 #endif // DEVICE_SERIAL_SERIAL_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « device/serial/serial_connection_unittest.cc ('k') | device/serial/serial_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698