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

Side by Side Diff: device/usb/mojo/device_impl.h

Issue 2542903002: device: Cleanup class/struct forward declarations (Closed)
Patch Set: Created 4 years 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/udev_linux/udev_linux.h ('k') | device/usb/mojo/device_manager_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 #ifndef DEVICE_USB_MOJO_DEVICE_IMPL_H_ 5 #ifndef DEVICE_USB_MOJO_DEVICE_IMPL_H_
6 #define DEVICE_USB_MOJO_DEVICE_IMPL_H_ 6 #define DEVICE_USB_MOJO_DEVICE_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/scoped_observer.h" 15 #include "base/scoped_observer.h"
16 #include "device/usb/mojo/permission_provider.h" 16 #include "device/usb/mojo/permission_provider.h"
17 #include "device/usb/public/interfaces/device.mojom.h" 17 #include "device/usb/public/interfaces/device.mojom.h"
18 #include "device/usb/usb_device.h" 18 #include "device/usb/usb_device.h"
19 #include "device/usb/usb_device_handle.h" 19 #include "device/usb/usb_device_handle.h"
20 #include "mojo/public/cpp/bindings/binding.h" 20 #include "mojo/public/cpp/bindings/binding.h"
21 #include "mojo/public/cpp/bindings/interface_request.h" 21 #include "mojo/public/cpp/bindings/interface_request.h"
22 22
23 namespace net {
24 class IOBuffer;
25 }
26
27 namespace device { 23 namespace device {
28 namespace usb { 24 namespace usb {
29 25
30 class PermissionProvider; 26 class PermissionProvider;
31 27
32 // Implementation of the public Device interface. Instances of this class are 28 // Implementation of the public Device interface. Instances of this class are
33 // constructed by DeviceManagerImpl and are strongly bound to their MessagePipe 29 // constructed by DeviceManagerImpl and are strongly bound to their MessagePipe
34 // lifetime. 30 // lifetime.
35 class DeviceImpl : public Device, public device::UsbDevice::Observer { 31 class DeviceImpl : public Device, public device::UsbDevice::Observer {
36 public: 32 public:
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 mojo::Binding<Device> binding_; 109 mojo::Binding<Device> binding_;
114 base::WeakPtrFactory<DeviceImpl> weak_factory_; 110 base::WeakPtrFactory<DeviceImpl> weak_factory_;
115 111
116 DISALLOW_COPY_AND_ASSIGN(DeviceImpl); 112 DISALLOW_COPY_AND_ASSIGN(DeviceImpl);
117 }; 113 };
118 114
119 } // namespace usb 115 } // namespace usb
120 } // namespace device 116 } // namespace device
121 117
122 #endif // DEVICE_USB_MOJO_DEVICE_IMPL_H_ 118 #endif // DEVICE_USB_MOJO_DEVICE_IMPL_H_
OLDNEW
« no previous file with comments | « device/udev_linux/udev_linux.h ('k') | device/usb/mojo/device_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698