| 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 CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h
" | 9 #include "chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h
" |
| 10 #include "extensions/browser/browser_context_keyed_api_factory.h" | 10 #include "extensions/browser/browser_context_keyed_api_factory.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 BLUETOOTHPRIVATE_SETPAIRINGRESPONSE) | 111 BLUETOOTHPRIVATE_SETPAIRINGRESPONSE) |
| 112 BluetoothPrivateSetPairingResponseFunction(); | 112 BluetoothPrivateSetPairingResponseFunction(); |
| 113 // BluetoothExtensionFunction overrides: | 113 // BluetoothExtensionFunction overrides: |
| 114 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE; | 114 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE; |
| 115 | 115 |
| 116 private: | 116 private: |
| 117 virtual ~BluetoothPrivateSetPairingResponseFunction(); | 117 virtual ~BluetoothPrivateSetPairingResponseFunction(); |
| 118 DISALLOW_COPY_AND_ASSIGN(BluetoothPrivateSetPairingResponseFunction); | 118 DISALLOW_COPY_AND_ASSIGN(BluetoothPrivateSetPairingResponseFunction); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 class BluetoothPrivateGetDeviceRSSIFunction |
| 122 : public BluetoothExtensionFunction { |
| 123 public: |
| 124 DECLARE_EXTENSION_FUNCTION("bluetoothPrivate.getDeviceRSSI", |
| 125 BLUETOOTHPRIVATE_GETDEVICERSSI) |
| 126 BluetoothPrivateGetDeviceRSSIFunction(); |
| 127 // BluetoothExtensionFunction overrides: |
| 128 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE; |
| 129 |
| 130 private: |
| 131 virtual ~BluetoothPrivateGetDeviceRSSIFunction(); |
| 132 DISALLOW_COPY_AND_ASSIGN(BluetoothPrivateGetDeviceRSSIFunction); |
| 133 }; |
| 134 |
| 121 } // namespace api | 135 } // namespace api |
| 122 | 136 |
| 123 } // namespace extensions | 137 } // namespace extensions |
| 124 | 138 |
| 125 #endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_ | 139 #endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_PRIVATE_API_H_ |
| OLD | NEW |