| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/extensions/api/api_function.h" | 9 #include "chrome/browser/extensions/api/api_function.h" |
| 10 #include "chrome/browser/extensions/extension_function.h" | 10 #include "chrome/browser/extensions/extension_function.h" |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 DECLARE_EXTENSION_FUNCTION_NAME( | 184 DECLARE_EXTENSION_FUNCTION_NAME( |
| 185 "experimental.bluetooth.getOutOfBandPairingData") | 185 "experimental.bluetooth.getOutOfBandPairingData") |
| 186 | 186 |
| 187 protected: | 187 protected: |
| 188 virtual ~BluetoothGetOutOfBandPairingDataFunction() {} | 188 virtual ~BluetoothGetOutOfBandPairingDataFunction() {} |
| 189 | 189 |
| 190 // ExtensionFunction: | 190 // ExtensionFunction: |
| 191 virtual bool RunImpl() OVERRIDE; | 191 virtual bool RunImpl() OVERRIDE; |
| 192 }; | 192 }; |
| 193 | 193 |
| 194 class BluetoothStartDiscoveryFunction : public AsyncExtensionFunction { |
| 195 public: |
| 196 DECLARE_EXTENSION_FUNCTION_NAME("experimental.bluetooth.startDiscovery") |
| 197 |
| 198 protected: |
| 199 virtual ~BluetoothStartDiscoveryFunction() {} |
| 200 |
| 201 // ExtensionFunction: |
| 202 virtual bool RunImpl() OVERRIDE; |
| 203 |
| 204 #if defined(OS_CHROMEOS) |
| 205 private: |
| 206 void OnSuccessCallback(); |
| 207 void OnErrorCallback(); |
| 208 #endif |
| 209 }; |
| 210 |
| 211 class BluetoothStopDiscoveryFunction : public AsyncExtensionFunction { |
| 212 public: |
| 213 DECLARE_EXTENSION_FUNCTION_NAME("experimental.bluetooth.stopDiscovery") |
| 214 |
| 215 protected: |
| 216 virtual ~BluetoothStopDiscoveryFunction() {} |
| 217 |
| 218 // ExtensionFunction: |
| 219 virtual bool RunImpl() OVERRIDE; |
| 220 |
| 221 #if defined(OS_CHROMEOS) |
| 222 private: |
| 223 void OnSuccessCallback(); |
| 224 void OnErrorCallback(); |
| 225 #endif |
| 226 }; |
| 227 |
| 194 } // namespace api | 228 } // namespace api |
| 195 } // namespace extensions | 229 } // namespace extensions |
| 196 | 230 |
| 197 #endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_ | 231 #endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_ |
| OLD | NEW |