OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_API_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_ |
6 #define EXTENSIONS_BROWSER_API_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_ | 6 #define EXTENSIONS_BROWSER_API_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "device/bluetooth/bluetooth_device.h" | 10 #include "device/bluetooth/bluetooth_device.h" |
11 #include "extensions/browser/api/bluetooth/bluetooth_extension_function.h" | 11 #include "extensions/browser/api/bluetooth/bluetooth_extension_function.h" |
12 #include "extensions/browser/browser_context_keyed_api_factory.h" | 12 #include "extensions/browser/browser_context_keyed_api_factory.h" |
13 #include "extensions/browser/event_router.h" | 13 #include "extensions/browser/event_router.h" |
14 | 14 |
15 namespace device { | 15 namespace device { |
16 class BluetoothAdapter; | 16 class BluetoothAdapter; |
17 } | 17 } |
18 | 18 |
19 namespace extensions { | 19 namespace extensions { |
20 | 20 |
21 class BluetoothApiPairingDelegate; | |
22 | |
23 // The profile-keyed service that manages the bluetoothPrivate extension API. | 21 // The profile-keyed service that manages the bluetoothPrivate extension API. |
24 class BluetoothPrivateAPI : public BrowserContextKeyedAPI, | 22 class BluetoothPrivateAPI : public BrowserContextKeyedAPI, |
25 public EventRouter::Observer { | 23 public EventRouter::Observer { |
26 public: | 24 public: |
27 static BrowserContextKeyedAPIFactory<BluetoothPrivateAPI>* | 25 static BrowserContextKeyedAPIFactory<BluetoothPrivateAPI>* |
28 GetFactoryInstance(); | 26 GetFactoryInstance(); |
29 | 27 |
30 explicit BluetoothPrivateAPI(content::BrowserContext* context); | 28 explicit BluetoothPrivateAPI(content::BrowserContext* context); |
31 ~BluetoothPrivateAPI() override; | 29 ~BluetoothPrivateAPI() override; |
32 | 30 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 void OnErrorCallback(device::BluetoothDevice::ConnectErrorCode error); | 183 void OnErrorCallback(device::BluetoothDevice::ConnectErrorCode error); |
186 | 184 |
187 DISALLOW_COPY_AND_ASSIGN(BluetoothPrivatePairFunction); | 185 DISALLOW_COPY_AND_ASSIGN(BluetoothPrivatePairFunction); |
188 }; | 186 }; |
189 | 187 |
190 } // namespace api | 188 } // namespace api |
191 | 189 |
192 } // namespace extensions | 190 } // namespace extensions |
193 | 191 |
194 #endif // EXTENSIONS_BROWSER_API_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_ | 192 #endif // EXTENSIONS_BROWSER_API_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_ |
OLD | NEW |