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

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

Issue 1358763004: Implement getConfiguration in WebUSBDeviceImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | 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 "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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/usb/web_usb_device_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698