| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 namespace base { | 22 namespace base { |
| 23 class Timer; | 23 class Timer; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace content { | 26 namespace content { |
| 27 class BrowserContext; | 27 class BrowserContext; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace cryptauth { | 30 namespace cryptauth { |
| 31 class BluetoothThrottler; | |
| 32 class Connection; | 31 class Connection; |
| 33 class ExternalDeviceInfo; | 32 class ExternalDeviceInfo; |
| 34 class SecureMessageDelegate; | 33 class SecureMessageDelegate; |
| 35 } | 34 } |
| 36 | 35 |
| 37 namespace proximity_auth { | 36 namespace proximity_auth { |
| 38 class BluetoothLowEnergyConnectionFinder; | 37 class BluetoothLowEnergyConnectionFinder; |
| 39 } | 38 } |
| 40 | 39 |
| 41 namespace extensions { | 40 namespace extensions { |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 // service was found. | 478 // service was found. |
| 480 void OnConnectionFound(std::unique_ptr<cryptauth::Connection> connection); | 479 void OnConnectionFound(std::unique_ptr<cryptauth::Connection> connection); |
| 481 | 480 |
| 482 // Callback when waiting for |connection_finder_| to return. | 481 // Callback when waiting for |connection_finder_| to return. |
| 483 void OnConnectionFinderTimedOut(); | 482 void OnConnectionFinderTimedOut(); |
| 484 | 483 |
| 485 // The BLE connection finder instance. | 484 // The BLE connection finder instance. |
| 486 std::unique_ptr<proximity_auth::BluetoothLowEnergyConnectionFinder> | 485 std::unique_ptr<proximity_auth::BluetoothLowEnergyConnectionFinder> |
| 487 connection_finder_; | 486 connection_finder_; |
| 488 | 487 |
| 489 // The connection throttler passed to the BLE connection finder. | |
| 490 std::unique_ptr<cryptauth::BluetoothThrottler> bluetooth_throttler_; | |
| 491 | |
| 492 // Used for timing out when waiting for the connection finder to return. | 488 // Used for timing out when waiting for the connection finder to return. |
| 493 std::unique_ptr<base::Timer> timer_; | 489 std::unique_ptr<base::Timer> timer_; |
| 494 | 490 |
| 495 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateFindSetupConnectionFunction); | 491 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateFindSetupConnectionFunction); |
| 496 }; | 492 }; |
| 497 | 493 |
| 498 class EasyUnlockPrivateSetupConnectionStatusFunction | 494 class EasyUnlockPrivateSetupConnectionStatusFunction |
| 499 : public UIThreadExtensionFunction { | 495 : public UIThreadExtensionFunction { |
| 500 public: | 496 public: |
| 501 DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.setupConnectionStatus", | 497 DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.setupConnectionStatus", |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 // ExtensionFunction: | 553 // ExtensionFunction: |
| 558 ResponseAction Run() override; | 554 ResponseAction Run() override; |
| 559 | 555 |
| 560 DISALLOW_COPY_AND_ASSIGN( | 556 DISALLOW_COPY_AND_ASSIGN( |
| 561 EasyUnlockPrivateSetupConnectionGetDeviceAddressFunction); | 557 EasyUnlockPrivateSetupConnectionGetDeviceAddressFunction); |
| 562 }; | 558 }; |
| 563 | 559 |
| 564 } // namespace extensions | 560 } // namespace extensions |
| 565 | 561 |
| 566 #endif // CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE
_API_H_ | 562 #endif // CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE
_API_H_ |
| OLD | NEW |