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

Unified Diff: device/usb/usb_interface.h

Issue 497363004: Merge components/usb_service into device/usb. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/usb/usb_error.cc ('k') | device/usb/usb_interface_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_interface.h
diff --git a/components/usb_service/usb_interface.h b/device/usb/usb_interface.h
similarity index 84%
rename from components/usb_service/usb_interface.h
rename to device/usb/usb_interface.h
index 7ca3197d0be15a37fda707ad9de71f526e523d9c..928571803ddc66858070e9dd93355c5ab9ef204f 100644
--- a/components/usb_service/usb_interface.h
+++ b/device/usb/usb_interface.h
@@ -2,13 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_USB_SERVICE_USB_INTERFACE_H_
-#define COMPONENTS_USB_SERVICE_USB_INTERFACE_H_
+#ifndef DEVICE_USB_USB_INTERFACE_H_
+#define DEVICE_USB_USB_INTERFACE_H_
#include "base/memory/ref_counted.h"
-#include "components/usb_service/usb_service_export.h"
-namespace usb_service {
+namespace device {
enum UsbTransferType {
USB_TRANSFER_CONTROL = 0,
@@ -35,7 +34,7 @@ enum UsbUsageType {
USB_USAGE_EXPLICIT_FEEDBACK
};
-class USB_SERVICE_EXPORT UsbEndpointDescriptor
+class UsbEndpointDescriptor
: public base::RefCounted<const UsbEndpointDescriptor> {
public:
virtual int GetAddress() const = 0;
@@ -55,7 +54,7 @@ class USB_SERVICE_EXPORT UsbEndpointDescriptor
DISALLOW_COPY_AND_ASSIGN(UsbEndpointDescriptor);
};
-class USB_SERVICE_EXPORT UsbInterfaceAltSettingDescriptor
+class UsbInterfaceAltSettingDescriptor
: public base::RefCounted<const UsbInterfaceAltSettingDescriptor> {
public:
virtual size_t GetNumEndpoints() const = 0;
@@ -77,7 +76,7 @@ class USB_SERVICE_EXPORT UsbInterfaceAltSettingDescriptor
DISALLOW_COPY_AND_ASSIGN(UsbInterfaceAltSettingDescriptor);
};
-class USB_SERVICE_EXPORT UsbInterfaceDescriptor
+class UsbInterfaceDescriptor
: public base::RefCounted<const UsbInterfaceDescriptor> {
public:
virtual size_t GetNumAltSettings() const = 0;
@@ -93,8 +92,7 @@ class USB_SERVICE_EXPORT UsbInterfaceDescriptor
DISALLOW_COPY_AND_ASSIGN(UsbInterfaceDescriptor);
};
-class USB_SERVICE_EXPORT UsbConfigDescriptor
- : public base::RefCounted<UsbConfigDescriptor> {
+class UsbConfigDescriptor : public base::RefCounted<UsbConfigDescriptor> {
public:
virtual size_t GetNumInterfaces() const = 0;
virtual scoped_refptr<const UsbInterfaceDescriptor> GetInterface(
@@ -109,6 +107,6 @@ class USB_SERVICE_EXPORT UsbConfigDescriptor
DISALLOW_COPY_AND_ASSIGN(UsbConfigDescriptor);
};
-} // namespace usb_service;
+} // namespace device
-#endif // COMPONENTS_USB_SERVICE_USB_INTERFACE_H_
+#endif // DEVICE_USB_USB_INTERFACE_H_
« no previous file with comments | « device/usb/usb_error.cc ('k') | device/usb/usb_interface_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698