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 #include "extensions/browser/api/hid/hid_connection_resource.h" | 5 #include "extensions/browser/api/hid/hid_connection_resource.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 return &g_factory.Get(); | 25 return &g_factory.Get(); |
26 } | 26 } |
27 | 27 |
28 HidConnectionResource::HidConnectionResource( | 28 HidConnectionResource::HidConnectionResource( |
29 const std::string& owner_extension_id, | 29 const std::string& owner_extension_id, |
30 scoped_refptr<device::HidConnection> connection) | 30 scoped_refptr<device::HidConnection> connection) |
31 : ApiResource(owner_extension_id), connection_(connection) {} | 31 : ApiResource(owner_extension_id), connection_(connection) {} |
32 | 32 |
33 HidConnectionResource::~HidConnectionResource() {} | 33 HidConnectionResource::~HidConnectionResource() {} |
34 | 34 |
| 35 bool HidConnectionResource::IsPersistent() const { |
| 36 return false; |
| 37 } |
| 38 |
35 } // namespace extensions | 39 } // namespace extensions |
OLD | NEW |