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 { | |
jdufault
2016/11/01 18:56:44
Is this the output from `git cl format`?
sammiequon
2016/11/02 18:05:25
Yes. Confirmed by running it again.
| |
61 public: | |
62 QuickUnlockPrivateCheckCredentialFunction(); | |
63 DECLARE_EXTENSION_FUNCTION("quickUnlockPrivate.checkCredential", | |
64 QUICKUNLOCKPRIVATE_ISCREDENTIALUSABLE); | |
65 | |
66 protected: | |
67 ~QuickUnlockPrivateCheckCredentialFunction() override; | |
68 | |
69 // ExtensionFunction overrides. | |
70 ResponseAction Run() override; | |
71 | |
72 private: | |
73 ChromeExtensionFunctionDetails chrome_details_; | |
74 std::unique_ptr<api::quick_unlock_private::CheckCredential::Params> params_; | |
75 | |
76 DISALLOW_COPY_AND_ASSIGN(QuickUnlockPrivateCheckCredentialFunction); | |
77 }; | |
78 | |
59 class QuickUnlockPrivateSetModesFunction : public UIThreadExtensionFunction, | 79 class QuickUnlockPrivateSetModesFunction : public UIThreadExtensionFunction, |
60 public chromeos::AuthStatusConsumer { | 80 public chromeos::AuthStatusConsumer { |
61 public: | 81 public: |
62 using AuthenticatorAllocator = | 82 using AuthenticatorAllocator = |
63 base::Callback<chromeos::ExtendedAuthenticator*( | 83 base::Callback<chromeos::ExtendedAuthenticator*( |
64 chromeos::AuthStatusConsumer* auth_status_consumer)>; | 84 chromeos::AuthStatusConsumer* auth_status_consumer)>; |
65 using QuickUnlockMode = | 85 using QuickUnlockMode = |
66 extensions::api::quick_unlock_private::QuickUnlockMode; | 86 extensions::api::quick_unlock_private::QuickUnlockMode; |
67 using ModesChangedEventHandler = | 87 using ModesChangedEventHandler = |
68 base::Callback<void(const std::vector<QuickUnlockMode>&)>; | 88 base::Callback<void(const std::vector<QuickUnlockMode>&)>; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
104 | 124 |
105 AuthenticatorAllocator authenticator_allocator_; | 125 AuthenticatorAllocator authenticator_allocator_; |
106 ModesChangedEventHandler modes_changed_handler_; | 126 ModesChangedEventHandler modes_changed_handler_; |
107 | 127 |
108 DISALLOW_COPY_AND_ASSIGN(QuickUnlockPrivateSetModesFunction); | 128 DISALLOW_COPY_AND_ASSIGN(QuickUnlockPrivateSetModesFunction); |
109 }; | 129 }; |
110 | 130 |
111 } // namespace extensions | 131 } // namespace extensions |
112 | 132 |
113 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_QUICK_UNLOCK_PRIVATE_QUICK_UNLOCK_ PRIVATE_API_H_ | 133 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_QUICK_UNLOCK_PRIVATE_QUICK_UNLOCK_ PRIVATE_API_H_ |
OLD | NEW |