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_api.h" | 5 #include "extensions/browser/api/hid/hid_api.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
14 #include "device/core/device_client.h" | 14 #include "device/base/device_client.h" |
15 #include "device/hid/hid_connection.h" | 15 #include "device/hid/hid_connection.h" |
16 #include "device/hid/hid_device_filter.h" | 16 #include "device/hid/hid_device_filter.h" |
17 #include "device/hid/hid_device_info.h" | 17 #include "device/hid/hid_device_info.h" |
18 #include "device/hid/hid_service.h" | 18 #include "device/hid/hid_service.h" |
19 #include "extensions/browser/api/api_resource_manager.h" | 19 #include "extensions/browser/api/api_resource_manager.h" |
20 #include "extensions/browser/api/device_permissions_prompt.h" | 20 #include "extensions/browser/api/device_permissions_prompt.h" |
21 #include "extensions/browser/api/extensions_api_client.h" | 21 #include "extensions/browser/api/extensions_api_client.h" |
22 #include "extensions/common/api/hid.h" | 22 #include "extensions/common/api/hid.h" |
23 #include "net/base/io_buffer.h" | 23 #include "net/base/io_buffer.h" |
24 | 24 |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 | 378 |
379 void HidSendFeatureReportFunction::OnFinished(bool success) { | 379 void HidSendFeatureReportFunction::OnFinished(bool success) { |
380 if (success) { | 380 if (success) { |
381 Respond(NoArguments()); | 381 Respond(NoArguments()); |
382 } else { | 382 } else { |
383 Respond(Error(kErrorTransfer)); | 383 Respond(Error(kErrorTransfer)); |
384 } | 384 } |
385 } | 385 } |
386 | 386 |
387 } // namespace extensions | 387 } // namespace extensions |
OLD | NEW |