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

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

Issue 311313002: Convert SerialDeviceInfo to a Mojo struct. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef DEVICE_SERIAL_SERIAL_DEVICE_INFO_H_
6 #define DEVICE_SERIAL_SERIAL_DEVICE_INFO_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "base/basictypes.h"
12 #include "base/memory/linked_ptr.h"
13 #include "base/memory/scoped_ptr.h"
14
15 namespace device {
16
17 struct SerialDeviceInfo {
18 SerialDeviceInfo();
19 ~SerialDeviceInfo();
20
21 std::string path;
22 scoped_ptr<uint16> vendor_id;
23 scoped_ptr<uint16> product_id;
24 scoped_ptr<std::string> display_name;
25
26 private:
27 DISALLOW_COPY_AND_ASSIGN(SerialDeviceInfo);
28 };
29
30 typedef std::vector<linked_ptr<SerialDeviceInfo> > SerialDeviceInfoList;
31
32 } // namespace device
33
34 #endif // DEVICE_SERIAL_SERIAL_DEVICE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698