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 CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DEVICE_CHOOSER_CONTROLLER_H_ | 5 #ifndef CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DEVICE_CHOOSER_CONTROLLER_H_ |
6 #define CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DEVICE_CHOOSER_CONTROLLER_H_ | 6 #define CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DEVICE_CHOOSER_CONTROLLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
14 #include "content/public/browser/bluetooth_chooser.h" | 14 #include "content/public/browser/bluetooth_chooser.h" |
15 #include "third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.moj
om.h" | 15 #include "third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.moj
om.h" |
16 | 16 |
17 namespace device { | 17 namespace device { |
18 class BluetoothAdapter; | 18 class BluetoothAdapter; |
19 class BluetoothDevice; | 19 class BluetoothDevice; |
20 class BluetoothDiscoveryFilter; | |
21 class BluetoothDiscoverySession; | 20 class BluetoothDiscoverySession; |
22 } | 21 } |
23 | 22 |
24 namespace content { | 23 namespace content { |
25 | 24 |
26 class RenderFrameHost; | 25 class RenderFrameHost; |
27 class WebContents; | 26 class WebContents; |
28 class WebBluetoothServiceImpl; | 27 class WebBluetoothServiceImpl; |
29 | 28 |
30 // Class that interacts with a chooser and starts a bluetooth discovery session. | 29 // Class that interacts with a chooser and starts a bluetooth discovery session. |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 // Weak pointer factory for generating 'this' pointers that might live longer | 148 // Weak pointer factory for generating 'this' pointers that might live longer |
150 // than we do. | 149 // than we do. |
151 // Note: This should remain the last member so it'll be destroyed and | 150 // Note: This should remain the last member so it'll be destroyed and |
152 // invalidate its weak pointers before any other members are destroyed. | 151 // invalidate its weak pointers before any other members are destroyed. |
153 base::WeakPtrFactory<BluetoothDeviceChooserController> weak_ptr_factory_; | 152 base::WeakPtrFactory<BluetoothDeviceChooserController> weak_ptr_factory_; |
154 }; | 153 }; |
155 | 154 |
156 } // namespace content | 155 } // namespace content |
157 | 156 |
158 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DEVICE_CHOOSER_CONTROLLER_H_ | 157 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DEVICE_CHOOSER_CONTROLLER_H_ |
OLD | NEW |