| 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_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_AP
I_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_AP
I_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_AP
I_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_AP
I_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 // Callbacks that are called when the seek operation succeeds or fails. | 160 // Callbacks that are called when the seek operation succeeds or fails. |
| 161 void OnSeekSuccess(); | 161 void OnSeekSuccess(); |
| 162 void OnSeekFailure(const std::string& error_message); | 162 void OnSeekFailure(const std::string& error_message); |
| 163 | 163 |
| 164 DISALLOW_COPY_AND_ASSIGN( | 164 DISALLOW_COPY_AND_ASSIGN( |
| 165 EasyUnlockPrivateSeekBluetoothDeviceByAddressFunction); | 165 EasyUnlockPrivateSeekBluetoothDeviceByAddressFunction); |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 class EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction | 168 class EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction |
| 169 : public core_api::BluetoothSocketAbstractConnectFunction { | 169 : public api::BluetoothSocketAbstractConnectFunction { |
| 170 public: | 170 public: |
| 171 DECLARE_EXTENSION_FUNCTION( | 171 DECLARE_EXTENSION_FUNCTION( |
| 172 "easyUnlockPrivate.connectToBluetoothServiceInsecurely", | 172 "easyUnlockPrivate.connectToBluetoothServiceInsecurely", |
| 173 EASYUNLOCKPRIVATE_CONNECTTOBLUETOOTHSERVICEINSECURELY) | 173 EASYUNLOCKPRIVATE_CONNECTTOBLUETOOTHSERVICEINSECURELY) |
| 174 EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction(); | 174 EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction(); |
| 175 | 175 |
| 176 private: | 176 private: |
| 177 ~EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction() override; | 177 ~EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction() override; |
| 178 | 178 |
| 179 // BluetoothSocketAbstractConnectFunction: | 179 // BluetoothSocketAbstractConnectFunction: |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 private: | 321 private: |
| 322 ~EasyUnlockPrivateGetUserInfoFunction() override; | 322 ~EasyUnlockPrivateGetUserInfoFunction() override; |
| 323 | 323 |
| 324 // SyncExtensionFunction: | 324 // SyncExtensionFunction: |
| 325 bool RunSync() override; | 325 bool RunSync() override; |
| 326 | 326 |
| 327 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateGetUserInfoFunction); | 327 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateGetUserInfoFunction); |
| 328 }; | 328 }; |
| 329 | 329 |
| 330 class EasyUnlockPrivateGetConnectionInfoFunction | 330 class EasyUnlockPrivateGetConnectionInfoFunction |
| 331 : public core_api::BluetoothExtensionFunction { | 331 : public api::BluetoothExtensionFunction { |
| 332 public: | 332 public: |
| 333 DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.getConnectionInfo", | 333 DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.getConnectionInfo", |
| 334 EASYUNLOCKPRIVATE_GETCONNECTIONINFO) | 334 EASYUNLOCKPRIVATE_GETCONNECTIONINFO) |
| 335 EasyUnlockPrivateGetConnectionInfoFunction(); | 335 EasyUnlockPrivateGetConnectionInfoFunction(); |
| 336 | 336 |
| 337 private: | 337 private: |
| 338 ~EasyUnlockPrivateGetConnectionInfoFunction() override; | 338 ~EasyUnlockPrivateGetConnectionInfoFunction() override; |
| 339 | 339 |
| 340 // BluetoothExtensionFunction: | 340 // BluetoothExtensionFunction: |
| 341 bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) override; | 341 bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) override; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 | 388 |
| 389 // SyncExtensionFunction: | 389 // SyncExtensionFunction: |
| 390 bool RunSync() override; | 390 bool RunSync() override; |
| 391 | 391 |
| 392 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateSetAutoPairingResultFunction); | 392 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateSetAutoPairingResultFunction); |
| 393 }; | 393 }; |
| 394 | 394 |
| 395 } // namespace extensions | 395 } // namespace extensions |
| 396 | 396 |
| 397 #endif // CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE
_API_H_ | 397 #endif // CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE
_API_H_ |
| OLD | NEW |