Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.h

Issue 2357383002: bluetooth: Add device list retrieval for chrome://bluetooth-internals (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROME_BROWSER_UI_WEBUI_BLUETOOTH_INTERNALS_BLUETOOTH_INTERNALS_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_BLUETOOTH_INTERNALS_BLUETOOTH_INTERNALS_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_BLUETOOTH_INTERNALS_BLUETOOTH_INTERNALS_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_BLUETOOTH_INTERNALS_BLUETOOTH_INTERNALS_UI_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "content/public/browser/web_ui_controller.h" 11 #include "chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals.mojom. h"
12 #include "chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_page_h andler.h"
13 #include "chrome/browser/ui/webui/mojo_web_ui_controller.h"
10 14
11 // The WebUI for chrome://bluetooth-internals 15 // The WebUI for chrome://bluetooth-internals
12 class BluetoothInternalsUI : public content::WebUIController { 16 class BluetoothInternalsUI
17 : public MojoWebUIController<mojom::InternalsPageHandler> {
13 public: 18 public:
14 explicit BluetoothInternalsUI(content::WebUI* web_ui); 19 explicit BluetoothInternalsUI(content::WebUI* web_ui);
15 ~BluetoothInternalsUI() override; 20 ~BluetoothInternalsUI() override;
16 21
17 private: 22 private:
23 // MojoWebUIController overrides:
24 void BindUIHandler(mojom::InternalsPageHandlerRequest request) override;
25
26 std::unique_ptr<BluetoothInternalsPageHandler> page_handler_;
27
18 DISALLOW_COPY_AND_ASSIGN(BluetoothInternalsUI); 28 DISALLOW_COPY_AND_ASSIGN(BluetoothInternalsUI);
19 }; 29 };
20 30
21 #endif // CHROME_BROWSER_UI_WEBUI_BLUETOOTH_INTERNALS_BLUETOOTH_INTERNALS_UI_H_ 31 #endif // CHROME_BROWSER_UI_WEBUI_BLUETOOTH_INTERNALS_BLUETOOTH_INTERNALS_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698