OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CHROMEOS_EXTENSIONS_QUICK_UNLOCK_PRIVATE_QUICK_UNLOCK_PRI
VATE_API_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_QUICK_UNLOCK_PRIVATE_QUICK_UNLOCK_PRI
VATE_API_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_QUICK_UNLOCK_PRIVATE_QUICK_UNLOCK_PRI
VATE_API_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_QUICK_UNLOCK_PRIVATE_QUICK_UNLOCK_PRI
VATE_API_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "chrome/browser/extensions/chrome_extension_function_details.h" | 10 #include "chrome/browser/extensions/chrome_extension_function_details.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 // ExtensionFunction overrides. | 50 // ExtensionFunction overrides. |
51 ResponseAction Run() override; | 51 ResponseAction Run() override; |
52 | 52 |
53 private: | 53 private: |
54 ChromeExtensionFunctionDetails chrome_details_; | 54 ChromeExtensionFunctionDetails chrome_details_; |
55 | 55 |
56 DISALLOW_COPY_AND_ASSIGN(QuickUnlockPrivateGetActiveModesFunction); | 56 DISALLOW_COPY_AND_ASSIGN(QuickUnlockPrivateGetActiveModesFunction); |
57 }; | 57 }; |
58 | 58 |
| 59 class QuickUnlockPrivateCheckCredentialFunction |
| 60 : public UIThreadExtensionFunction { |
| 61 public: |
| 62 QuickUnlockPrivateCheckCredentialFunction(); |
| 63 DECLARE_EXTENSION_FUNCTION("quickUnlockPrivate.checkCredential", |
| 64 QUICKUNLOCKPRIVATE_CHECKCREDENTIAL); |
| 65 |
| 66 protected: |
| 67 ~QuickUnlockPrivateCheckCredentialFunction() override; |
| 68 |
| 69 // ExtensionFunction overrides. |
| 70 ResponseAction Run() override; |
| 71 |
| 72 private: |
| 73 DISALLOW_COPY_AND_ASSIGN(QuickUnlockPrivateCheckCredentialFunction); |
| 74 }; |
| 75 |
| 76 class QuickUnlockPrivateGetCredentialRequirementsFunction |
| 77 : public UIThreadExtensionFunction { |
| 78 public: |
| 79 QuickUnlockPrivateGetCredentialRequirementsFunction(); |
| 80 DECLARE_EXTENSION_FUNCTION("quickUnlockPrivate.getCredentialRequirements", |
| 81 QUICKUNLOCKPRIVATE_GETCREDENTIALREQUIREMENTS); |
| 82 |
| 83 protected: |
| 84 ~QuickUnlockPrivateGetCredentialRequirementsFunction() override; |
| 85 |
| 86 // ExtensionFunction overrides. |
| 87 ResponseAction Run() override; |
| 88 |
| 89 private: |
| 90 DISALLOW_COPY_AND_ASSIGN(QuickUnlockPrivateGetCredentialRequirementsFunction); |
| 91 }; |
| 92 |
59 class QuickUnlockPrivateSetModesFunction : public UIThreadExtensionFunction, | 93 class QuickUnlockPrivateSetModesFunction : public UIThreadExtensionFunction, |
60 public chromeos::AuthStatusConsumer { | 94 public chromeos::AuthStatusConsumer { |
61 public: | 95 public: |
62 using AuthenticatorAllocator = | 96 using AuthenticatorAllocator = |
63 base::Callback<chromeos::ExtendedAuthenticator*( | 97 base::Callback<chromeos::ExtendedAuthenticator*( |
64 chromeos::AuthStatusConsumer* auth_status_consumer)>; | 98 chromeos::AuthStatusConsumer* auth_status_consumer)>; |
65 using QuickUnlockMode = | 99 using QuickUnlockMode = |
66 extensions::api::quick_unlock_private::QuickUnlockMode; | 100 extensions::api::quick_unlock_private::QuickUnlockMode; |
67 using ModesChangedEventHandler = | 101 using ModesChangedEventHandler = |
68 base::Callback<void(const std::vector<QuickUnlockMode>&)>; | 102 base::Callback<void(const std::vector<QuickUnlockMode>&)>; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 138 |
105 AuthenticatorAllocator authenticator_allocator_; | 139 AuthenticatorAllocator authenticator_allocator_; |
106 ModesChangedEventHandler modes_changed_handler_; | 140 ModesChangedEventHandler modes_changed_handler_; |
107 | 141 |
108 DISALLOW_COPY_AND_ASSIGN(QuickUnlockPrivateSetModesFunction); | 142 DISALLOW_COPY_AND_ASSIGN(QuickUnlockPrivateSetModesFunction); |
109 }; | 143 }; |
110 | 144 |
111 } // namespace extensions | 145 } // namespace extensions |
112 | 146 |
113 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_QUICK_UNLOCK_PRIVATE_QUICK_UNLOCK_
PRIVATE_API_H_ | 147 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_QUICK_UNLOCK_PRIVATE_QUICK_UNLOCK_
PRIVATE_API_H_ |
OLD | NEW |