OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "extensions/browser/extension_function.h" |
| 12 |
| 13 namespace extensions { |
| 14 |
| 15 class PasswordsPrivateCanPasswordAccountBeManagedFunction : |
| 16 public UIThreadExtensionFunction { |
| 17 public: |
| 18 PasswordsPrivateCanPasswordAccountBeManagedFunction() {} |
| 19 DECLARE_EXTENSION_FUNCTION("passwordsPrivate.canPasswordAccountBeManaged", |
| 20 PASSWORDSPRIVATE_CANPASSWORDACCOUNTBEMANAGED); |
| 21 |
| 22 protected: |
| 23 ~PasswordsPrivateCanPasswordAccountBeManagedFunction() override; |
| 24 |
| 25 // ExtensionFunction overrides. |
| 26 ResponseAction Run() override; |
| 27 |
| 28 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateCanPasswordAccountBeManagedFunction); |
| 30 }; |
| 31 |
| 32 class PasswordsPrivateRemoveSavedPasswordFunction : |
| 33 public UIThreadExtensionFunction { |
| 34 public: |
| 35 PasswordsPrivateRemoveSavedPasswordFunction() {} |
| 36 DECLARE_EXTENSION_FUNCTION("passwordsPrivate.removeSavedPassword", |
| 37 PASSWORDSPRIVATE_REMOVESAVEDPASSWORD); |
| 38 |
| 39 protected: |
| 40 ~PasswordsPrivateRemoveSavedPasswordFunction() override; |
| 41 |
| 42 // ExtensionFunction overrides. |
| 43 ResponseAction Run() override; |
| 44 |
| 45 private: |
| 46 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateRemoveSavedPasswordFunction); |
| 47 }; |
| 48 |
| 49 class PasswordsPrivateRemovePasswordExceptionFunction : |
| 50 public UIThreadExtensionFunction { |
| 51 public: |
| 52 PasswordsPrivateRemovePasswordExceptionFunction() {} |
| 53 DECLARE_EXTENSION_FUNCTION("passwordsPrivate.removePasswordException", |
| 54 PASSWORDSPRIVATE_REMOVEPASSWORDEXCEPTION); |
| 55 |
| 56 protected: |
| 57 ~PasswordsPrivateRemovePasswordExceptionFunction() override; |
| 58 |
| 59 // ExtensionFunction overrides. |
| 60 ResponseAction Run() override; |
| 61 |
| 62 private: |
| 63 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateRemovePasswordExceptionFunction); |
| 64 }; |
| 65 |
| 66 class PasswordsPrivateGetPlaintextPasswordFunction : |
| 67 public UIThreadExtensionFunction { |
| 68 public: |
| 69 PasswordsPrivateGetPlaintextPasswordFunction() {} |
| 70 DECLARE_EXTENSION_FUNCTION("passwordsPrivate.GetPlaintextPassword", |
| 71 PASSWORDSPRIVATE_GETPLAINTEXTPASSWORD); |
| 72 |
| 73 protected: |
| 74 ~PasswordsPrivateGetPlaintextPasswordFunction() override; |
| 75 |
| 76 // ExtensionFunction overrides. |
| 77 ResponseAction Run() override; |
| 78 |
| 79 private: |
| 80 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateGetPlaintextPasswordFunction); |
| 81 }; |
| 82 |
| 83 } // namespace extensions |
| 84 |
| 85 #endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API
_H_ |
OLD | NEW |