OLD | NEW |
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_BLUETOOTH_CHROME_EXTENSION_BLUETOOTH_CHOOSER_H_ | 5 #ifndef CHROME_BROWSER_UI_BLUETOOTH_CHROME_EXTENSION_BLUETOOTH_CHOOSER_H_ |
6 #define CHROME_BROWSER_UI_BLUETOOTH_CHROME_EXTENSION_BLUETOOTH_CHOOSER_H_ | 6 #define CHROME_BROWSER_UI_BLUETOOTH_CHROME_EXTENSION_BLUETOOTH_CHOOSER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 ~ChromeExtensionBluetoothChooser() override; | 27 ~ChromeExtensionBluetoothChooser() override; |
28 | 28 |
29 // content::BluetoothChooser: | 29 // content::BluetoothChooser: |
30 void SetAdapterPresence(AdapterPresence presence) override; | 30 void SetAdapterPresence(AdapterPresence presence) override; |
31 void ShowDiscoveryState(DiscoveryState state) override; | 31 void ShowDiscoveryState(DiscoveryState state) override; |
32 void AddDevice(const std::string& device_id, | 32 void AddDevice(const std::string& device_id, |
33 const base::string16& device_name) override; | 33 const base::string16& device_name) override; |
34 void RemoveDevice(const std::string& device_id) override; | 34 void RemoveDevice(const std::string& device_id) override; |
35 | 35 |
36 private: | 36 private: |
37 std::unique_ptr<BluetoothChooserController> bluetooth_chooser_controller_; | 37 // Weak. ChooserContentView[Cocoa] owns it. |
| 38 BluetoothChooserController* bluetooth_chooser_controller_; |
38 std::unique_ptr<ChromeExtensionChooserDialog> chooser_dialog_; | 39 std::unique_ptr<ChromeExtensionChooserDialog> chooser_dialog_; |
39 | 40 |
40 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionBluetoothChooser); | 41 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionBluetoothChooser); |
41 }; | 42 }; |
42 | 43 |
43 #endif // CHROME_BROWSER_UI_BLUETOOTH_CHROME_EXTENSION_BLUETOOTH_CHOOSER_H_ | 44 #endif // CHROME_BROWSER_UI_BLUETOOTH_CHROME_EXTENSION_BLUETOOTH_CHOOSER_H_ |
OLD | NEW |