Index: chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_page_handler.h |
diff --git a/chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_page_handler.h b/chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_page_handler.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..563a7fa7add38f9618b2a3fc12673f587221901e |
--- /dev/null |
+++ b/chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_page_handler.h |
@@ -0,0 +1,31 @@ |
+// 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. |
+ |
+#ifndef CHROME_BROWSER_UI_WEBUI_BLUETOOTH_INTERNALS_BLUETOOTH_INTERNALS_PAGE_HANDLER_H_ |
+#define CHROME_BROWSER_UI_WEBUI_BLUETOOTH_INTERNALS_BLUETOOTH_INTERNALS_PAGE_HANDLER_H_ |
+ |
+#include "base/macros.h" |
+#include "chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals.mojom.h" |
+#include "chrome/browser/ui/webui/mojo_web_ui_handler.h" |
+#include "device/bluetooth/public/interfaces/bluetooth.mojom.h" |
+#include "mojo/public/cpp/bindings/binding.h" |
+ |
+class BluetoothInternalsPageHandler : public mojom::InternalsPageHandler, |
ortuno
2016/09/22 08:32:53
Add comment about the class.
mbrunson
2016/09/24 01:05:46
Done.
|
+ public MojoWebUIHandler { |
+ public: |
+ explicit BluetoothInternalsPageHandler( |
+ mojom::InternalsPageHandlerRequest request); |
+ ~BluetoothInternalsPageHandler() override; |
+ |
+ // mojom::InternalsPageHandler overrides: |
+ void GetAdapterService(bluetooth::AdapterRequest request, |
+ bluetooth::AdapterClientPtr client) override; |
+ |
+ private: |
+ mojo::Binding<mojom::InternalsPageHandler> binding_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(BluetoothInternalsPageHandler); |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_WEBUI_BLUETOOTH_INTERNALS_BLUETOOTH_INTERNALS_PAGE_HANDLER_H_ |