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

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

Issue 380413003: Mojo: Use InterfaceFactory<Interface> for service registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix network_service_loader Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | device/serial/serial_connection.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_H_ 5 #ifndef DEVICE_SERIAL_SERIAL_CONNECTION_H_
6 #define DEVICE_SERIAL_SERIAL_CONNECTION_H_ 6 #define DEVICE_SERIAL_SERIAL_CONNECTION_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "device/serial/serial.mojom.h" 9 #include "device/serial/serial.mojom.h"
10 #include "mojo/public/cpp/bindings/interface_impl.h" 10 #include "mojo/public/cpp/bindings/interface_impl.h"
(...skipping 11 matching lines...) Expand all
22 virtual void GetInfo( 22 virtual void GetInfo(
23 const mojo::Callback<void(serial::ConnectionInfoPtr)>& callback) OVERRIDE; 23 const mojo::Callback<void(serial::ConnectionInfoPtr)>& callback) OVERRIDE;
24 virtual void SetOptions(serial::ConnectionOptionsPtr options, 24 virtual void SetOptions(serial::ConnectionOptionsPtr options,
25 const mojo::Callback<void(bool)>& callback) OVERRIDE; 25 const mojo::Callback<void(bool)>& callback) OVERRIDE;
26 virtual void SetControlSignals( 26 virtual void SetControlSignals(
27 serial::HostControlSignalsPtr signals, 27 serial::HostControlSignalsPtr signals,
28 const mojo::Callback<void(bool)>& callback) OVERRIDE; 28 const mojo::Callback<void(bool)>& callback) OVERRIDE;
29 virtual void GetControlSignals(const mojo::Callback< 29 virtual void GetControlSignals(const mojo::Callback<
30 void(serial::DeviceControlSignalsPtr)>& callback) OVERRIDE; 30 void(serial::DeviceControlSignalsPtr)>& callback) OVERRIDE;
31 virtual void Flush(const mojo::Callback<void(bool)>& callback) OVERRIDE; 31 virtual void Flush(const mojo::Callback<void(bool)>& callback) OVERRIDE;
32 virtual void OnConnectionError() OVERRIDE;
33 32
34 private: 33 private:
35 scoped_refptr<SerialIoHandler> io_handler_; 34 scoped_refptr<SerialIoHandler> io_handler_;
36 35
37 DISALLOW_COPY_AND_ASSIGN(SerialConnection); 36 DISALLOW_COPY_AND_ASSIGN(SerialConnection);
38 }; 37 };
39 38
40 } // namespace device 39 } // namespace device
41 40
42 #endif // DEVICE_SERIAL_SERIAL_CONNECTION_H_ 41 #endif // DEVICE_SERIAL_SERIAL_CONNECTION_H_
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | device/serial/serial_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698