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

Unified Diff: device/serial/serial_device_enumerator_android.h

Issue 1496973003: Upstream files in device/ folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/serial/BUILD.gn ('k') | device/serial/serial_device_enumerator_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_device_enumerator_android.h
diff --git a/device/serial/serial_device_enumerator_android.h b/device/serial/serial_device_enumerator_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..a1ba7100843230d9f7edaa755ae0706e11937c4e
--- /dev/null
+++ b/device/serial/serial_device_enumerator_android.h
@@ -0,0 +1,30 @@
+// Copyright 2015 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_ANDROID_H_
+#define DEVICE_SERIAL_SERIAL_DEVICE_ENUMERATOR_ANDROID_H_
+
+#include "base/macros.h"
+#include "device/serial/serial_device_enumerator.h"
+
+namespace device {
+
+// TODO(bshe): Implements serial device enumerator for Android if needed.
Ken Rockot(use gerrit already) 2015/12/04 20:04:52 nit: s/Implements/Implement/ ?
+// See crbug.com/565589.
+// Discovers and enumerates serial devices available to the host.
+class SerialDeviceEnumeratorAndroid : public SerialDeviceEnumerator {
+ public:
+ SerialDeviceEnumeratorAndroid();
+ ~SerialDeviceEnumeratorAndroid() override;
+
+ // Implementation for SerialDeviceEnumerator.
+ mojo::Array<serial::DeviceInfoPtr> GetDevices() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(SerialDeviceEnumeratorAndroid);
+};
+
+} // namespace device
+
+#endif // DEVICE_SERIAL_SERIAL_DEVICE_ENUMERATOR_ANDROID_H_
« no previous file with comments | « device/serial/BUILD.gn ('k') | device/serial/serial_device_enumerator_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698