| Index: chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.h
|
| diff --git a/chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.h b/chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.h
|
| index 4d39a811b0b0acb826c072c6a966560a5d61d497..5c7a9ed939ab1724412d0317d62a31fc7c286764 100644
|
| --- a/chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.h
|
| +++ b/chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.h
|
| @@ -5,16 +5,34 @@
|
| #ifndef CHROME_BROWSER_UI_WEBUI_BLUETOOTH_INTERNALS_BLUETOOTH_INTERNALS_UI_H_
|
| #define CHROME_BROWSER_UI_WEBUI_BLUETOOTH_INTERNALS_BLUETOOTH_INTERNALS_UI_H_
|
|
|
| +#include <memory>
|
| +
|
| #include "base/macros.h"
|
| -#include "content/public/browser/web_ui_controller.h"
|
| +#include "chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals.mojom.h"
|
| +#include "chrome/browser/ui/webui/mojo_web_ui_controller.h"
|
| +#include "chrome/browser/ui/webui/mojo_web_ui_handler.h"
|
| +#include "device/bluetooth/public/interfaces/bluetooth.mojom.h"
|
|
|
| -// The WebUI for chrome://bluetooth-internals
|
| -class BluetoothInternalsUI : public content::WebUIController {
|
| +// WebUI for chrome://bluetooth-internals; Exposes Bluetooth Adapter Mojo
|
| +// service from device/bluetooth/public/interfaces/bluetooth.mojom.
|
| +class BluetoothInternalsUI
|
| + : public mojom::InternalsPageHandler,
|
| + public MojoWebUIController<mojom::InternalsPageHandler>,
|
| + public MojoWebUIHandler {
|
| public:
|
| explicit BluetoothInternalsUI(content::WebUI* web_ui);
|
| ~BluetoothInternalsUI() override;
|
|
|
| private:
|
| + // MojoWebUIController overrides:
|
| + void BindUIHandler(mojom::InternalsPageHandlerRequest request) override;
|
| +
|
| + // mojom::InternalsPageHandler overrides:
|
| + void GetAdapterService(bluetooth::mojom::AdapterRequest request,
|
| + bluetooth::mojom::AdapterClientPtr client) override;
|
| +
|
| + std::unique_ptr<mojo::Binding<mojom::InternalsPageHandler>> binding_ptr_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(BluetoothInternalsUI);
|
| };
|
|
|
|
|