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

Side by Side Diff: device/usb/usb_device_impl.cc

Issue 1542163002: Switch to standard integer types in device/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win Created 4 years, 12 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 unified diff | Download patch
« no previous file with comments | « device/usb/usb_device_impl.h ('k') | device/usb/usb_ids.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "device/usb/usb_device_impl.h" 5 #include "device/usb/usb_device_impl.h"
6 6
7 #include <stddef.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 10
9 #include "base/bind.h" 11 #include "base/bind.h"
10 #include "base/location.h" 12 #include "base/location.h"
11 #include "base/sequenced_task_runner.h" 13 #include "base/sequenced_task_runner.h"
12 #include "base/single_thread_task_runner.h" 14 #include "base/single_thread_task_runner.h"
13 #include "base/stl_util.h" 15 #include "base/stl_util.h"
14 #include "base/thread_task_runner_handle.h" 16 #include "base/thread_task_runner_handle.h"
17 #include "build/build_config.h"
15 #include "components/device_event_log/device_event_log.h" 18 #include "components/device_event_log/device_event_log.h"
16 #include "device/usb/usb_context.h" 19 #include "device/usb/usb_context.h"
17 #include "device/usb/usb_descriptors.h" 20 #include "device/usb/usb_descriptors.h"
18 #include "device/usb/usb_device_handle_impl.h" 21 #include "device/usb/usb_device_handle_impl.h"
19 #include "device/usb/usb_error.h" 22 #include "device/usb/usb_error.h"
20 #include "third_party/libusb/src/libusb/libusb.h" 23 #include "third_party/libusb/src/libusb/libusb.h"
21 24
22 #if defined(OS_CHROMEOS) 25 #if defined(OS_CHROMEOS)
23 #include "chromeos/dbus/dbus_thread_manager.h" 26 #include "chromeos/dbus/dbus_thread_manager.h"
24 #include "chromeos/dbus/permission_broker_client.h" 27 #include "chromeos/dbus/permission_broker_client.h"
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 void UsbDeviceImpl::Opened(PlatformUsbDeviceHandle platform_handle, 331 void UsbDeviceImpl::Opened(PlatformUsbDeviceHandle platform_handle,
329 const OpenCallback& callback) { 332 const OpenCallback& callback) {
330 DCHECK(thread_checker_.CalledOnValidThread()); 333 DCHECK(thread_checker_.CalledOnValidThread());
331 scoped_refptr<UsbDeviceHandleImpl> device_handle = new UsbDeviceHandleImpl( 334 scoped_refptr<UsbDeviceHandleImpl> device_handle = new UsbDeviceHandleImpl(
332 context_, this, platform_handle, blocking_task_runner_); 335 context_, this, platform_handle, blocking_task_runner_);
333 handles_.push_back(device_handle); 336 handles_.push_back(device_handle);
334 callback.Run(device_handle); 337 callback.Run(device_handle);
335 } 338 }
336 339
337 } // namespace device 340 } // namespace device
OLDNEW
« no previous file with comments | « device/usb/usb_device_impl.h ('k') | device/usb/usb_ids.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698