OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include <utility> |
| 6 |
| 7 #include "chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_page_h
andler.h" |
| 8 #include "chrome/browser/ui/webui/bluetooth_internals/services/bluetooth_adapter
_service.h" |
| 9 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 10 |
| 11 BluetoothInternalsPageHandler::BluetoothInternalsPageHandler( |
| 12 mojom::InternalsPageHandlerRequest request) |
| 13 : binding_(this, std::move(request)) {} |
| 14 |
| 15 BluetoothInternalsPageHandler::~BluetoothInternalsPageHandler() {} |
| 16 |
| 17 void BluetoothInternalsPageHandler::GetAdapterService( |
| 18 bluetooth::AdapterRequest request, |
| 19 bluetooth::AdapterClientPtr client) { |
| 20 mojo::MakeStrongBinding( |
| 21 base::MakeUnique<BluetoothAdapterService>(std::move(client)), |
| 22 std::move(request)); |
| 23 } |
OLD | NEW |