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

Side by Side Diff: content/renderer/usb/web_usb_device_impl.h

Issue 1784733002: Track USB device configuration state in Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blink_open_state
Patch Set: Rebased. Created 4 years, 9 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.cc » ('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 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
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
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_
OLDNEW
« no previous file with comments | « content/renderer/usb/type_converters.cc ('k') | content/renderer/usb/web_usb_device_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698