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

Unified Diff: device/usb/usb_interface_impl.cc

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_interface_impl.h ('k') | device/usb/usb_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_interface_impl.cc
diff --git a/components/usb_service/usb_interface_impl.cc b/device/usb/usb_interface_impl.cc
similarity index 94%
rename from components/usb_service/usb_interface_impl.cc
rename to device/usb/usb_interface_impl.cc
index 1eb1b2fcdabdb30eafeb348c586971406923dbd4..af3d0e3fd1c8e4fe3d876378f2af6804b1acf693 100644
--- a/components/usb_service/usb_interface_impl.cc
+++ b/device/usb/usb_interface_impl.cc
@@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/usb_service/usb_interface_impl.h"
+#include "device/usb/usb_interface_impl.h"
#include "base/logging.h"
#include "third_party/libusb/src/libusb/libusb.h"
-namespace usb_service {
+namespace device {
UsbEndpointDescriptorImpl::UsbEndpointDescriptorImpl(
scoped_refptr<const UsbConfigDescriptor> config,
@@ -38,8 +38,8 @@ int UsbEndpointDescriptorImpl::GetMaximumPacketSize() const {
return descriptor_->wMaxPacketSize;
}
-UsbSynchronizationType
- UsbEndpointDescriptorImpl::GetSynchronizationType() const {
+UsbSynchronizationType UsbEndpointDescriptorImpl::GetSynchronizationType()
+ const {
switch (descriptor_->bmAttributes & LIBUSB_ISO_SYNC_TYPE_MASK) {
case LIBUSB_ISO_SYNC_TYPE_NONE:
return USB_SYNCHRONIZATION_NONE;
@@ -161,8 +161,8 @@ size_t UsbConfigDescriptorImpl::GetNumInterfaces() const {
}
scoped_refptr<const UsbInterfaceDescriptor>
- UsbConfigDescriptorImpl::GetInterface(size_t index) const {
+UsbConfigDescriptorImpl::GetInterface(size_t index) const {
return new UsbInterfaceDescriptorImpl(this, &config_->interface[index]);
}
-} // namespace usb_service
+} // namespace device
« no previous file with comments | « device/usb/usb_interface_impl.h ('k') | device/usb/usb_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698