Index: device/hid/hid_connection.h |
diff --git a/device/hid/hid_connection.h b/device/hid/hid_connection.h |
index 8c1bc0dc44b1f727b2d142ef093f790f5de703d6..1c7107580e994c1fff827bff7a4c24598fb6b38d 100644 |
--- a/device/hid/hid_connection.h |
+++ b/device/hid/hid_connection.h |
@@ -27,7 +27,7 @@ class HidConnection : public base::RefCountedThreadSafe<HidConnection> { |
ReadCallback; |
typedef base::Callback<void(bool success)> WriteCallback; |
- const HidDeviceInfo& device_info() const { return device_info_; } |
+ scoped_refptr<HidDeviceInfo> device_info() const { return device_info_; } |
bool has_protected_collection() const { return has_protected_collection_; } |
const base::ThreadChecker& thread_checker() const { return thread_checker_; } |
bool closed() const { return closed_; } |
@@ -59,7 +59,7 @@ class HidConnection : public base::RefCountedThreadSafe<HidConnection> { |
protected: |
friend class base::RefCountedThreadSafe<HidConnection>; |
- explicit HidConnection(const HidDeviceInfo& device_info); |
+ explicit HidConnection(scoped_refptr<HidDeviceInfo> device_info); |
virtual ~HidConnection(); |
virtual void PlatformClose() = 0; |
@@ -85,7 +85,7 @@ class HidConnection : public base::RefCountedThreadSafe<HidConnection> { |
private: |
bool IsReportIdProtected(uint8_t report_id); |
- const HidDeviceInfo device_info_; |
+ scoped_refptr<HidDeviceInfo> device_info_; |
bool has_protected_collection_; |
base::ThreadChecker thread_checker_; |
bool closed_; |