| 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 "chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.h" | 5 #include "chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.h" |
| 6 | 6 |
| 7 #include "chrome/browser/extensions/api/bluetooth/bluetooth_api_socket.h" | 7 #include "chrome/browser/extensions/api/bluetooth_socket/bluetooth_api_socket.h" |
| 8 #include "chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_event_
dispatcher.h" | 8 #include "chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_event_
dispatcher.h" |
| 9 #include "chrome/common/extensions/api/bluetooth/bluetooth_manifest_data.h" | 9 #include "chrome/common/extensions/api/bluetooth/bluetooth_manifest_data.h" |
| 10 #include "content/public/browser/browser_context.h" | 10 #include "content/public/browser/browser_context.h" |
| 11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
| 12 #include "device/bluetooth/bluetooth_adapter.h" | 12 #include "device/bluetooth/bluetooth_adapter.h" |
| 13 #include "device/bluetooth/bluetooth_adapter_factory.h" | 13 #include "device/bluetooth/bluetooth_adapter_factory.h" |
| 14 #include "device/bluetooth/bluetooth_device.h" | 14 #include "device/bluetooth/bluetooth_device.h" |
| 15 #include "device/bluetooth/bluetooth_socket.h" | 15 #include "device/bluetooth/bluetooth_socket.h" |
| 16 #include "extensions/common/permissions/permissions_data.h" | 16 #include "extensions/common/permissions/permissions_data.h" |
| 17 #include "net/base/io_buffer.h" | 17 #include "net/base/io_buffer.h" |
| (...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 if (socket) { | 634 if (socket) { |
| 635 socket_infos.push_back(CreateSocketInfo(socket_id, socket)); | 635 socket_infos.push_back(CreateSocketInfo(socket_id, socket)); |
| 636 } | 636 } |
| 637 } | 637 } |
| 638 } | 638 } |
| 639 results_ = bluetooth_socket::GetSockets::Results::Create(socket_infos); | 639 results_ = bluetooth_socket::GetSockets::Results::Create(socket_infos); |
| 640 } | 640 } |
| 641 | 641 |
| 642 } // namespace api | 642 } // namespace api |
| 643 } // namespace extensions | 643 } // namespace extensions |
| OLD | NEW |