| 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_api.h" | 5 #include "chrome/browser/extensions/api/usb/usb_api.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/message_loop/message_loop_proxy.h" | 11 #include "base/message_loop/message_loop_proxy.h" |
| 12 #include "chrome/browser/extensions/api/usb/usb_device_resource.h" | 12 #include "chrome/browser/extensions/api/usb/usb_device_resource.h" |
| 13 #include "chrome/browser/extensions/extension_system.h" | |
| 14 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/usb/usb_device_handle.h" | 14 #include "chrome/browser/usb/usb_device_handle.h" |
| 16 #include "chrome/browser/usb/usb_service.h" | 15 #include "chrome/browser/usb/usb_service.h" |
| 17 #include "chrome/common/extensions/api/usb.h" | 16 #include "chrome/common/extensions/api/usb.h" |
| 18 #include "chrome/common/extensions/permissions/usb_device_permission.h" | 17 #include "chrome/common/extensions/permissions/usb_device_permission.h" |
| 18 #include "extensions/browser/extension_system.h" |
| 19 #include "extensions/common/permissions/permissions_data.h" | 19 #include "extensions/common/permissions/permissions_data.h" |
| 20 | 20 |
| 21 namespace usb = extensions::api::usb; | 21 namespace usb = extensions::api::usb; |
| 22 namespace BulkTransfer = usb::BulkTransfer; | 22 namespace BulkTransfer = usb::BulkTransfer; |
| 23 namespace ClaimInterface = usb::ClaimInterface; | 23 namespace ClaimInterface = usb::ClaimInterface; |
| 24 namespace CloseDevice = usb::CloseDevice; | 24 namespace CloseDevice = usb::CloseDevice; |
| 25 namespace ControlTransfer = usb::ControlTransfer; | 25 namespace ControlTransfer = usb::ControlTransfer; |
| 26 namespace FindDevices = usb::FindDevices; | 26 namespace FindDevices = usb::FindDevices; |
| 27 namespace GetDevices = usb::GetDevices; | 27 namespace GetDevices = usb::GetDevices; |
| 28 namespace InterruptTransfer = usb::InterruptTransfer; | 28 namespace InterruptTransfer = usb::InterruptTransfer; |
| (...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1171 SetResult(new base::FundamentalValue(false)); | 1171 SetResult(new base::FundamentalValue(false)); |
| 1172 CompleteWithError(kErrorResetDevice); | 1172 CompleteWithError(kErrorResetDevice); |
| 1173 return; | 1173 return; |
| 1174 } | 1174 } |
| 1175 | 1175 |
| 1176 SetResult(new base::FundamentalValue(true)); | 1176 SetResult(new base::FundamentalValue(true)); |
| 1177 AsyncWorkCompleted(); | 1177 AsyncWorkCompleted(); |
| 1178 } | 1178 } |
| 1179 | 1179 |
| 1180 } // namespace extensions | 1180 } // namespace extensions |
| OLD | NEW |