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

Unified Diff: device/usb/usb_device.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_context_unittest.cc ('k') | device/usb/usb_device_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_device.h
diff --git a/components/usb_service/usb_device.h b/device/usb/usb_device.h
similarity index 86%
rename from components/usb_service/usb_device.h
rename to device/usb/usb_device.h
index 48ca51678304ac60194841dd069b76b5b464571a..586fd19cdce706c59b50c48b3ed621b95e22ea3f 100644
--- a/components/usb_service/usb_device.h
+++ b/device/usb/usb_device.h
@@ -2,15 +2,14 @@
// 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_DEVICE_H_
-#define COMPONENTS_USB_SERVICE_USB_DEVICE_H_
+#ifndef DEVICE_USB_USB_DEVICE_H_
+#define DEVICE_USB_USB_DEVICE_H_
#include "base/basictypes.h"
#include "base/callback.h"
#include "base/memory/ref_counted.h"
-#include "components/usb_service/usb_service_export.h"
-namespace usb_service {
+namespace device {
class UsbDeviceHandle;
class UsbConfigDescriptor;
@@ -18,8 +17,7 @@ class UsbConfigDescriptor;
// A UsbDevice object represents a detected USB device, providing basic
// information about it. For further manipulation of the device, a
// UsbDeviceHandle must be created from Open() method.
-class USB_SERVICE_EXPORT UsbDevice
- : public base::RefCountedThreadSafe<UsbDevice> {
+class UsbDevice : public base::RefCountedThreadSafe<UsbDevice> {
public:
// Accessors to basic information.
uint16 vendor_id() const { return vendor_id_; }
@@ -67,6 +65,6 @@ class USB_SERVICE_EXPORT UsbDevice
DISALLOW_COPY_AND_ASSIGN(UsbDevice);
};
-} // namespace usb_service
+} // namespace device
-#endif // COMPONENTS_USB_SERVICE_USB_DEVICE_H_
+#endif // DEVICE_USB_USB_DEVICE_H_
« no previous file with comments | « device/usb/usb_context_unittest.cc ('k') | device/usb/usb_device_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698