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 11 matching lines...) Expand all Loading... |
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 ExternalDeviceInfo; | 31 class ExternalDeviceInfo; |
| 32 class SecureMessageDelegate; |
32 } | 33 } |
33 | 34 |
34 namespace proximity_auth { | 35 namespace proximity_auth { |
35 class Connection; | 36 class Connection; |
36 class BluetoothLowEnergyConnectionFinder; | 37 class BluetoothLowEnergyConnectionFinder; |
37 class BluetoothThrottler; | 38 class BluetoothThrottler; |
38 class SecureMessageDelegate; | |
39 } | 39 } |
40 | 40 |
41 namespace extensions { | 41 namespace extensions { |
42 | 42 |
43 class EasyUnlockPrivateConnectionManager; | 43 class EasyUnlockPrivateConnectionManager; |
44 class EasyUnlockPrivateCryptoDelegate; | 44 class EasyUnlockPrivateCryptoDelegate; |
45 | 45 |
46 class EasyUnlockPrivateAPI : public BrowserContextKeyedAPI { | 46 class EasyUnlockPrivateAPI : public BrowserContextKeyedAPI { |
47 public: | 47 public: |
48 static BrowserContextKeyedAPIFactory<EasyUnlockPrivateAPI>* | 48 static BrowserContextKeyedAPIFactory<EasyUnlockPrivateAPI>* |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 // The permit id of the user. Used for the native experiment. | 332 // The permit id of the user. Used for the native experiment. |
333 std::string permit_id_; | 333 std::string permit_id_; |
334 | 334 |
335 // The expected number of devices to return. Used for the native experiment. | 335 // The expected number of devices to return. Used for the native experiment. |
336 size_t expected_devices_count_; | 336 size_t expected_devices_count_; |
337 | 337 |
338 // Working list of the devices to return. Used for the native experiment. | 338 // Working list of the devices to return. Used for the native experiment. |
339 std::unique_ptr<base::ListValue> remote_devices_; | 339 std::unique_ptr<base::ListValue> remote_devices_; |
340 | 340 |
341 // Used to derive devices' PSK. Used for the native experiment. | 341 // Used to derive devices' PSK. Used for the native experiment. |
342 std::unique_ptr<proximity_auth::SecureMessageDelegate> | 342 std::unique_ptr<cryptauth::SecureMessageDelegate> |
343 secure_message_delegate_; | 343 secure_message_delegate_; |
344 | 344 |
345 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateGetRemoteDevicesFunction); | 345 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateGetRemoteDevicesFunction); |
346 }; | 346 }; |
347 | 347 |
348 class EasyUnlockPrivateGetSignInChallengeFunction : | 348 class EasyUnlockPrivateGetSignInChallengeFunction : |
349 public AsyncExtensionFunction { | 349 public AsyncExtensionFunction { |
350 public: | 350 public: |
351 DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.getSignInChallenge", | 351 DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.getSignInChallenge", |
352 EASYUNLOCKPRIVATE_GETSIGNINCHALLENGE) | 352 EASYUNLOCKPRIVATE_GETSIGNINCHALLENGE) |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 // ExtensionFunction: | 558 // ExtensionFunction: |
559 ResponseAction Run() override; | 559 ResponseAction Run() override; |
560 | 560 |
561 DISALLOW_COPY_AND_ASSIGN( | 561 DISALLOW_COPY_AND_ASSIGN( |
562 EasyUnlockPrivateSetupConnectionGetDeviceAddressFunction); | 562 EasyUnlockPrivateSetupConnectionGetDeviceAddressFunction); |
563 }; | 563 }; |
564 | 564 |
565 } // namespace extensions | 565 } // namespace extensions |
566 | 566 |
567 #endif // CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE
_API_H_ | 567 #endif // CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE
_API_H_ |
OLD | NEW |