| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/usb/usb_event_router.h" | 5 #include "extensions/browser/api/usb/usb_event_router.h" |
| 6 | 6 |
| 7 #include "device/core/device_client.h" | 7 #include "device/core/device_client.h" |
| 8 #include "device/usb/usb_device.h" | 8 #include "device/usb/usb_device.h" |
| 9 #include "extensions/browser/api/device_permissions_manager.h" | 9 #include "extensions/browser/api/device_permissions_manager.h" |
| 10 #include "extensions/browser/api/usb/usb_guid_map.h" | 10 #include "extensions/browser/api/usb/usb_guid_map.h" |
| 11 #include "extensions/common/api/usb.h" | 11 #include "extensions/common/api/usb.h" |
| 12 #include "extensions/common/permissions/permissions_data.h" | 12 #include "extensions/common/permissions/permissions_data.h" |
| 13 #include "extensions/common/permissions/usb_device_permission.h" | 13 #include "extensions/common/permissions/usb_device_permission.h" |
| 14 | 14 |
| 15 namespace usb = extensions::core_api::usb; | 15 namespace usb = extensions::api::usb; |
| 16 | 16 |
| 17 using content::BrowserThread; | 17 using content::BrowserThread; |
| 18 using device::UsbDevice; | 18 using device::UsbDevice; |
| 19 using device::UsbService; | 19 using device::UsbService; |
| 20 | 20 |
| 21 namespace extensions { | 21 namespace extensions { |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 // Returns true iff the given extension has permission to receive events | 25 // Returns true iff the given extension has permission to receive events |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 } | 123 } |
| 124 | 124 |
| 125 template <> | 125 template <> |
| 126 void BrowserContextKeyedAPIFactory< | 126 void BrowserContextKeyedAPIFactory< |
| 127 UsbEventRouter>::DeclareFactoryDependencies() { | 127 UsbEventRouter>::DeclareFactoryDependencies() { |
| 128 DependsOn(DevicePermissionsManagerFactory::GetInstance()); | 128 DependsOn(DevicePermissionsManagerFactory::GetInstance()); |
| 129 DependsOn(UsbGuidMap::GetFactoryInstance()); | 129 DependsOn(UsbGuidMap::GetFactoryInstance()); |
| 130 } | 130 } |
| 131 | 131 |
| 132 } // extensions | 132 } // extensions |
| OLD | NEW |