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

Unified Diff: components/usb_service/usb_interface.h

Issue 258783002: Extracted UsbService as interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed chromeos issue. Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/usb_service/usb_device.h ('k') | components/usb_service/usb_interface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/usb_service/usb_interface.h
diff --git a/components/usb_service/usb_interface.h b/components/usb_service/usb_interface.h
index 31e58a213b748b7ceb6b0977796a2ec07ac2b238..1d9c8ee1fde004e16590d981d3f1a6c9a82dc21f 100644
--- a/components/usb_service/usb_interface.h
+++ b/components/usb_service/usb_interface.h
@@ -126,15 +126,20 @@ class USB_SERVICE_EXPORT UsbInterfaceDescriptor
class USB_SERVICE_EXPORT UsbConfigDescriptor
: public base::RefCounted<UsbConfigDescriptor> {
public:
- size_t GetNumInterfaces() const;
- scoped_refptr<const UsbInterfaceDescriptor> GetInterface(size_t index) const;
+ virtual size_t GetNumInterfaces() const;
+ virtual scoped_refptr<const UsbInterfaceDescriptor> GetInterface(
+ size_t index) const;
+
+ protected:
+ // Constructor called in test only
+ UsbConfigDescriptor();
+ virtual ~UsbConfigDescriptor();
private:
friend class base::RefCounted<UsbConfigDescriptor>;
friend class UsbDevice;
explicit UsbConfigDescriptor(PlatformUsbConfigDescriptor config);
- ~UsbConfigDescriptor();
PlatformUsbConfigDescriptor config_;
« no previous file with comments | « components/usb_service/usb_device.h ('k') | components/usb_service/usb_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698