usb_device_mac.h 833 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef SERVICES_DEVICE_USB_USB_DEVICE_MAC_H_
  5. #define SERVICES_DEVICE_USB_USB_DEVICE_MAC_H_
  6. #include "services/device/usb/usb_device.h"
  7. namespace device {
  8. class UsbDeviceMac : public UsbDevice {
  9. public:
  10. UsbDeviceMac(uint64_t entry_id, mojom::UsbDeviceInfoPtr device_info);
  11. UsbDeviceMac(const UsbDeviceMac&) = delete;
  12. UsbDeviceMac& operator=(const UsbDeviceMac&) = delete;
  13. // UsbDevice implementation:
  14. void Open(OpenCallback callback) override;
  15. uint64_t entry_id() const { return entry_id_; }
  16. protected:
  17. ~UsbDeviceMac() override;
  18. private:
  19. const uint64_t entry_id_;
  20. };
  21. } // namespace device
  22. #endif // SERVICES_DEVICE_USB_USB_DEVICE_MAC_H_