| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_API_HID_HID_CONNECTION_RESOURCE_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_HID_HID_CONNECTION_RESOURCE_H_ |
| 6 #define EXTENSIONS_BROWSER_API_HID_HID_CONNECTION_RESOURCE_H_ | 6 #define EXTENSIONS_BROWSER_API_HID_HID_CONNECTION_RESOURCE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 content::BrowserThread::FILE; | 25 content::BrowserThread::FILE; |
| 26 | 26 |
| 27 HidConnectionResource(const std::string& owner_extension_id, | 27 HidConnectionResource(const std::string& owner_extension_id, |
| 28 scoped_refptr<device::HidConnection> connection); | 28 scoped_refptr<device::HidConnection> connection); |
| 29 virtual ~HidConnectionResource(); | 29 virtual ~HidConnectionResource(); |
| 30 | 30 |
| 31 scoped_refptr<device::HidConnection> connection() const { | 31 scoped_refptr<device::HidConnection> connection() const { |
| 32 return connection_; | 32 return connection_; |
| 33 } | 33 } |
| 34 | 34 |
| 35 virtual bool IsPersistent() const OVERRIDE; | 35 virtual bool IsPersistent() const override; |
| 36 | 36 |
| 37 static const char* service_name() { return "HidConnectionResourceManager"; } | 37 static const char* service_name() { return "HidConnectionResourceManager"; } |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 scoped_refptr<device::HidConnection> connection_; | 40 scoped_refptr<device::HidConnection> connection_; |
| 41 | 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(HidConnectionResource); | 42 DISALLOW_COPY_AND_ASSIGN(HidConnectionResource); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace extensions | 45 } // namespace extensions |
| 46 | 46 |
| 47 #endif // EXTENSIONS_BROWSER_API_HID_HID_CONNECTION_RESOURCE_H_ | 47 #endif // EXTENSIONS_BROWSER_API_HID_HID_CONNECTION_RESOURCE_H_ |
| OLD | NEW |