| OLD | NEW |
| 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 CONTENT_RENDERER_USB_WEB_USB_DEVICE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_USB_WEB_USB_DEVICE_IMPL_H_ |
| 6 #define CONTENT_RENDERER_USB_WEB_USB_DEVICE_IMPL_H_ | 6 #define CONTENT_RENDERER_USB_WEB_USB_DEVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 public: | 25 public: |
| 26 WebUSBDeviceImpl(device::usb::DevicePtr device, | 26 WebUSBDeviceImpl(device::usb::DevicePtr device, |
| 27 const blink::WebUSBDeviceInfo& device_info); | 27 const blink::WebUSBDeviceInfo& device_info); |
| 28 ~WebUSBDeviceImpl() override; | 28 ~WebUSBDeviceImpl() override; |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 // blink::WebUSBDevice implementation: | 31 // blink::WebUSBDevice implementation: |
| 32 const blink::WebUSBDeviceInfo& info() const override; | 32 const blink::WebUSBDeviceInfo& info() const override; |
| 33 void open(blink::WebUSBDeviceOpenCallbacks* callbacks) override; | 33 void open(blink::WebUSBDeviceOpenCallbacks* callbacks) override; |
| 34 void close(blink::WebUSBDeviceCloseCallbacks* callbacks) override; | 34 void close(blink::WebUSBDeviceCloseCallbacks* callbacks) override; |
| 35 void getConfiguration( |
| 36 blink::WebUSBDeviceGetConfigurationCallbacks* callbacks) override; |
| 35 void setConfiguration( | 37 void setConfiguration( |
| 36 uint8_t configuration_value, | 38 uint8_t configuration_value, |
| 37 blink::WebUSBDeviceSetConfigurationCallbacks* callbacks) override; | 39 blink::WebUSBDeviceSetConfigurationCallbacks* callbacks) override; |
| 38 void claimInterface( | 40 void claimInterface( |
| 39 uint8_t interface_number, | 41 uint8_t interface_number, |
| 40 blink::WebUSBDeviceClaimInterfaceCallbacks* callbacks) override; | 42 blink::WebUSBDeviceClaimInterfaceCallbacks* callbacks) override; |
| 41 void releaseInterface( | 43 void releaseInterface( |
| 42 uint8_t interface_number, | 44 uint8_t interface_number, |
| 43 blink::WebUSBDeviceReleaseInterfaceCallbacks* callbacks) override; | 45 blink::WebUSBDeviceReleaseInterfaceCallbacks* callbacks) override; |
| 44 void setInterface(uint8_t interface_number, | 46 void setInterface(uint8_t interface_number, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 65 blink::WebUSBDeviceInfo device_info_; | 67 blink::WebUSBDeviceInfo device_info_; |
| 66 | 68 |
| 67 base::WeakPtrFactory<WebUSBDeviceImpl> weak_factory_; | 69 base::WeakPtrFactory<WebUSBDeviceImpl> weak_factory_; |
| 68 | 70 |
| 69 DISALLOW_COPY_AND_ASSIGN(WebUSBDeviceImpl); | 71 DISALLOW_COPY_AND_ASSIGN(WebUSBDeviceImpl); |
| 70 }; | 72 }; |
| 71 | 73 |
| 72 } // namespace content | 74 } // namespace content |
| 73 | 75 |
| 74 #endif // CONTENT_RENDERER_USB_WEB_USB_DEVICE_IMPL_H_ | 76 #endif // CONTENT_RENDERER_USB_WEB_USB_DEVICE_IMPL_H_ |
| OLD | NEW |