| Index: device/serial/serial_device_enumerator.h
|
| diff --git a/device/serial/serial_device_enumerator.h b/device/serial/serial_device_enumerator.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5f76845674eb5e730f347f964932ba5031e9289a
|
| --- /dev/null
|
| +++ b/device/serial/serial_device_enumerator.h
|
| @@ -0,0 +1,28 @@
|
| +// Copyright (c) 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef DEVICE_SERIAL_SERIAL_DEVICE_ENUMERATOR_H_
|
| +#define DEVICE_SERIAL_SERIAL_DEVICE_ENUMERATOR_H_
|
| +
|
| +#include <vector>
|
| +
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "device/serial/serial_device_info.h"
|
| +
|
| +namespace device {
|
| +
|
| +// Discovers and enumerates serial devices available to the host.
|
| +class SerialDeviceEnumerator {
|
| + public:
|
| + static scoped_ptr<SerialDeviceEnumerator> Create();
|
| +
|
| + SerialDeviceEnumerator();
|
| + virtual ~SerialDeviceEnumerator();
|
| +
|
| + virtual void GetDevices(std::vector<SerialDeviceInfo>* devices) = 0;
|
| +};
|
| +
|
| +} // namespace device
|
| +
|
| +#endif // DEVICE_SERIAL_SERIAL_DEVICE_ENUMERATOR_H_
|
|
|