OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/extensions/api/usb/usb_device_resource.h" | 5 #include "chrome/browser/extensions/api/usb/usb_device_resource.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/synchronization/lock.h" | 12 #include "base/synchronization/lock.h" |
13 #include "chrome/browser/extensions/api/api_resource_event_notifier.h" | |
14 #include "chrome/browser/extensions/api/api_resource.h" | 13 #include "chrome/browser/extensions/api/api_resource.h" |
15 #include "chrome/browser/usb/usb_device.h" | 14 #include "chrome/browser/usb/usb_device.h" |
16 #include "chrome/common/extensions/api/usb.h" | 15 #include "chrome/common/extensions/api/usb.h" |
17 | 16 |
18 namespace extensions { | 17 namespace extensions { |
19 | 18 |
20 UsbDeviceResource::UsbDeviceResource(const std::string& owner_extension_id, | 19 UsbDeviceResource::UsbDeviceResource(const std::string& owner_extension_id, |
21 ApiResourceEventNotifier* notifier, | |
22 scoped_refptr<UsbDevice> device) | 20 scoped_refptr<UsbDevice> device) |
23 : ApiResource(owner_extension_id, notifier), device_(device) {} | 21 : ApiResource(owner_extension_id), device_(device) {} |
24 | 22 |
25 UsbDeviceResource::~UsbDeviceResource() {} | 23 UsbDeviceResource::~UsbDeviceResource() {} |
26 | 24 |
27 } // namespace extensions | 25 } // namespace extensions |
OLD | NEW |