| Index: chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_page_handler.cc
|
| diff --git a/chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_page_handler.cc b/chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_page_handler.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5246092b88894b6a77b26c48aedc956ece0851dd
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_page_handler.cc
|
| @@ -0,0 +1,23 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include <utility>
|
| +
|
| +#include "chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_page_handler.h"
|
| +#include "chrome/browser/ui/webui/bluetooth_internals/services/bluetooth_adapter_service.h"
|
| +#include "mojo/public/cpp/bindings/strong_binding.h"
|
| +
|
| +BluetoothInternalsPageHandler::BluetoothInternalsPageHandler(
|
| + mojom::InternalsPageHandlerRequest request)
|
| + : binding_(this, std::move(request)) {}
|
| +
|
| +BluetoothInternalsPageHandler::~BluetoothInternalsPageHandler() {}
|
| +
|
| +void BluetoothInternalsPageHandler::GetAdapterService(
|
| + bluetooth::AdapterRequest request,
|
| + bluetooth::AdapterClientPtr client) {
|
| + mojo::MakeStrongBinding(
|
| + base::MakeUnique<BluetoothAdapterService>(std::move(client)),
|
| + std::move(request));
|
| +}
|
|
|