| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 public: | 28 public: |
| 29 WebUSBDeviceImpl(device::usb::DevicePtr device, | 29 WebUSBDeviceImpl(device::usb::DevicePtr device, |
| 30 const blink::WebUSBDeviceInfo& device_info); | 30 const blink::WebUSBDeviceInfo& device_info); |
| 31 ~WebUSBDeviceImpl() override; | 31 ~WebUSBDeviceImpl() override; |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 // blink::WebUSBDevice implementation: | 34 // blink::WebUSBDevice implementation: |
| 35 const blink::WebUSBDeviceInfo& info() const override; | 35 const blink::WebUSBDeviceInfo& info() const override; |
| 36 void open(blink::WebUSBDeviceOpenCallbacks* callbacks) override; | 36 void open(blink::WebUSBDeviceOpenCallbacks* callbacks) override; |
| 37 void close(blink::WebUSBDeviceCloseCallbacks* callbacks) override; | 37 void close(blink::WebUSBDeviceCloseCallbacks* callbacks) override; |
| 38 void getConfiguration( | |
| 39 blink::WebUSBDeviceGetConfigurationCallbacks* callbacks) override; | |
| 40 void setConfiguration( | 38 void setConfiguration( |
| 41 uint8_t configuration_value, | 39 uint8_t configuration_value, |
| 42 blink::WebUSBDeviceSetConfigurationCallbacks* callbacks) override; | 40 blink::WebUSBDeviceSetConfigurationCallbacks* callbacks) override; |
| 43 void claimInterface( | 41 void claimInterface( |
| 44 uint8_t interface_number, | 42 uint8_t interface_number, |
| 45 blink::WebUSBDeviceClaimInterfaceCallbacks* callbacks) override; | 43 blink::WebUSBDeviceClaimInterfaceCallbacks* callbacks) override; |
| 46 void releaseInterface( | 44 void releaseInterface( |
| 47 uint8_t interface_number, | 45 uint8_t interface_number, |
| 48 blink::WebUSBDeviceReleaseInterfaceCallbacks* callbacks) override; | 46 blink::WebUSBDeviceReleaseInterfaceCallbacks* callbacks) override; |
| 49 void setInterface(uint8_t interface_number, | 47 void setInterface(uint8_t interface_number, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 78 blink::WebUSBDeviceInfo device_info_; | 76 blink::WebUSBDeviceInfo device_info_; |
| 79 | 77 |
| 80 base::WeakPtrFactory<WebUSBDeviceImpl> weak_factory_; | 78 base::WeakPtrFactory<WebUSBDeviceImpl> weak_factory_; |
| 81 | 79 |
| 82 DISALLOW_COPY_AND_ASSIGN(WebUSBDeviceImpl); | 80 DISALLOW_COPY_AND_ASSIGN(WebUSBDeviceImpl); |
| 83 }; | 81 }; |
| 84 | 82 |
| 85 } // namespace content | 83 } // namespace content |
| 86 | 84 |
| 87 #endif // CONTENT_RENDERER_USB_WEB_USB_DEVICE_IMPL_H_ | 85 #endif // CONTENT_RENDERER_USB_WEB_USB_DEVICE_IMPL_H_ |
| OLD | NEW |