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

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

Issue 873293006: Revert of Remove Client= from device/serial/data_stream.mojom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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.cc ('k') | device/serial/serial_connection_factory.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_CONNECTION_FACTORY_H_ 5 #ifndef DEVICE_SERIAL_SERIAL_CONNECTION_FACTORY_H_
6 #define DEVICE_SERIAL_SERIAL_CONNECTION_FACTORY_H_ 6 #define DEVICE_SERIAL_SERIAL_CONNECTION_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 14 matching lines...) Expand all
25 25
26 SerialConnectionFactory( 26 SerialConnectionFactory(
27 const IoHandlerFactory& io_handler_factory, 27 const IoHandlerFactory& io_handler_factory,
28 scoped_refptr<base::MessageLoopProxy> connect_message_loop); 28 scoped_refptr<base::MessageLoopProxy> connect_message_loop);
29 29
30 void CreateConnection( 30 void CreateConnection(
31 const std::string& path, 31 const std::string& path,
32 serial::ConnectionOptionsPtr options, 32 serial::ConnectionOptionsPtr options,
33 mojo::InterfaceRequest<serial::Connection> connection_request, 33 mojo::InterfaceRequest<serial::Connection> connection_request,
34 mojo::InterfaceRequest<serial::DataSink> sink, 34 mojo::InterfaceRequest<serial::DataSink> sink,
35 mojo::InterfacePtr<serial::DataSinkClient> sink_client, 35 mojo::InterfaceRequest<serial::DataSource> source);
36 mojo::InterfaceRequest<serial::DataSource> source,
37 mojo::InterfacePtr<serial::DataSourceClient> source_client);
38 36
39 private: 37 private:
40 friend class base::RefCountedThreadSafe<SerialConnectionFactory>; 38 friend class base::RefCountedThreadSafe<SerialConnectionFactory>;
41 class ConnectTask; 39 class ConnectTask;
42 40
43 virtual ~SerialConnectionFactory(); 41 virtual ~SerialConnectionFactory();
44 42
45 const IoHandlerFactory io_handler_factory_; 43 const IoHandlerFactory io_handler_factory_;
46 scoped_refptr<base::MessageLoopProxy> connect_message_loop_; 44 scoped_refptr<base::MessageLoopProxy> connect_message_loop_;
47 45
48 DISALLOW_COPY_AND_ASSIGN(SerialConnectionFactory); 46 DISALLOW_COPY_AND_ASSIGN(SerialConnectionFactory);
49 }; 47 };
50 48
51 } // namespace device 49 } // namespace device
52 50
53 #endif // DEVICE_SERIAL_SERIAL_CONNECTION_FACTORY_H_ 51 #endif // DEVICE_SERIAL_SERIAL_CONNECTION_FACTORY_H_
OLDNEW
« no previous file with comments | « device/serial/serial_connection.cc ('k') | device/serial/serial_connection_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698