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

Side by Side Diff: content/renderer/usb/web_usb_client_impl.cc

Issue 1547073003: Switch to standard integer types in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « content/renderer/usb/type_converters.cc ('k') | content/renderer/usb/web_usb_device_impl.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "content/renderer/usb/web_usb_client_impl.h" 5 #include "content/renderer/usb/web_usb_client_impl.h"
6 6
7 #include <stddef.h>
8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "base/callback.h" 10 #include "base/callback.h"
9 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
10 #include "base/move.h" 12 #include "base/move.h"
11 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
12 #include "content/child/mojo/type_converters.h" 14 #include "content/child/mojo/type_converters.h"
13 #include "content/child/scoped_web_callbacks.h" 15 #include "content/child/scoped_web_callbacks.h"
14 #include "content/public/common/service_registry.h" 16 #include "content/public/common/service_registry.h"
15 #include "content/renderer/usb/type_converters.h" 17 #include "content/renderer/usb/type_converters.h"
16 #include "content/renderer/usb/web_usb_device_impl.h" 18 #include "content/renderer/usb/web_usb_device_impl.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 const device::usb::DeviceInfoPtr& device_info = 159 const device::usb::DeviceInfoPtr& device_info =
158 notification->devices_removed[i]; 160 notification->devices_removed[i];
159 device::usb::DevicePtr device; 161 device::usb::DevicePtr device;
160 device_manager_->GetDevice(device_info->guid, mojo::GetProxy(&device)); 162 device_manager_->GetDevice(device_info->guid, mojo::GetProxy(&device));
161 observer_->onDeviceDisconnected(blink::adoptWebPtr(new WebUSBDeviceImpl( 163 observer_->onDeviceDisconnected(blink::adoptWebPtr(new WebUSBDeviceImpl(
162 device.Pass(), mojo::ConvertTo<blink::WebUSBDeviceInfo>(device_info)))); 164 device.Pass(), mojo::ConvertTo<blink::WebUSBDeviceInfo>(device_info))));
163 } 165 }
164 } 166 }
165 167
166 } // namespace content 168 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/usb/type_converters.cc ('k') | content/renderer/usb/web_usb_device_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698