| Index: device/hid/hid_service_linux.h
|
| diff --git a/device/hid/hid_service_linux.h b/device/hid/hid_service_linux.h
|
| index c69096dea36132e4b656c50730653f2ca10e4e05..62bb4c7a7080680e685f13dfd4e39a5b3f70d33d 100644
|
| --- a/device/hid/hid_service_linux.h
|
| +++ b/device/hid/hid_service_linux.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "base/compiler_specific.h"
|
| #include "base/macros.h"
|
| +#include "base/memory/weak_ptr.h"
|
| #include "device/hid/device_monitor_linux.h"
|
| #include "device/hid/hid_device_info.h"
|
| #include "device/hid/hid_service.h"
|
| @@ -20,7 +21,7 @@ class HidConnection;
|
| class HidServiceLinux : public HidService,
|
| public DeviceMonitorLinux::Observer {
|
| public:
|
| - HidServiceLinux();
|
| + HidServiceLinux(scoped_refptr<base::MessageLoopProxy> ui_message_loop);
|
|
|
| virtual scoped_refptr<HidConnection> Connect(const HidDeviceId& device_id)
|
| OVERRIDE;
|
| @@ -32,6 +33,15 @@ class HidServiceLinux : public HidService,
|
| private:
|
| virtual ~HidServiceLinux();
|
|
|
| + void OnRequestAccessComplete(
|
| + const std::string& path,
|
| + scoped_ptr<HidDeviceInfo> device_info,
|
| + bool success);
|
| +
|
| + scoped_refptr<base::MessageLoopProxy> ui_message_loop_;
|
| +
|
| + base::WeakPtrFactory<HidServiceLinux> weak_factory_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(HidServiceLinux);
|
| };
|
|
|
|
|