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_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_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 AutofillPrivateSaveAddressFunction : public UIThreadExtensionFunction { |
| 16 public: |
| 17 AutofillPrivateSaveAddressFunction() {} |
| 18 DECLARE_EXTENSION_FUNCTION("autofillPrivate.saveAddress", |
| 19 AUTOFILLPRIVATE_SAVEADDRESS); |
| 20 |
| 21 protected: |
| 22 ~AutofillPrivateSaveAddressFunction() override; |
| 23 |
| 24 // ExtensionFunction overrides. |
| 25 ResponseAction Run() override; |
| 26 |
| 27 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateSaveAddressFunction); |
| 29 }; |
| 30 |
| 31 class AutofillPrivateGetAddressComponentsFunction : |
| 32 public UIThreadExtensionFunction { |
| 33 public: |
| 34 AutofillPrivateGetAddressComponentsFunction() {} |
| 35 DECLARE_EXTENSION_FUNCTION("autofillPrivate.getAddressComponents", |
| 36 AUTOFILLPRIVATE_GETADDRESSCOMPONENTS); |
| 37 |
| 38 protected: |
| 39 ~AutofillPrivateGetAddressComponentsFunction() override; |
| 40 |
| 41 // ExtensionFunction overrides. |
| 42 ResponseAction Run() override; |
| 43 |
| 44 private: |
| 45 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateGetAddressComponentsFunction); |
| 46 }; |
| 47 |
| 48 class AutofillPrivateSaveCreditCardFunction : public UIThreadExtensionFunction { |
| 49 public: |
| 50 AutofillPrivateSaveCreditCardFunction() {} |
| 51 DECLARE_EXTENSION_FUNCTION("autofillPrivate.saveCreditCard", |
| 52 AUTOFILLPRIVATE_SAVECREDITCARD); |
| 53 |
| 54 protected: |
| 55 ~AutofillPrivateSaveCreditCardFunction() override; |
| 56 |
| 57 // ExtensionFunction overrides. |
| 58 ResponseAction Run() override; |
| 59 |
| 60 private: |
| 61 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateSaveCreditCardFunction); |
| 62 }; |
| 63 |
| 64 class AutofillPrivateRemoveEntryFunction : public UIThreadExtensionFunction { |
| 65 public: |
| 66 AutofillPrivateRemoveEntryFunction() {} |
| 67 DECLARE_EXTENSION_FUNCTION("autofillPrivate.removeEntry", |
| 68 AUTOFILLPRIVATE_REMOVEENTRY); |
| 69 |
| 70 protected: |
| 71 ~AutofillPrivateRemoveEntryFunction() override; |
| 72 |
| 73 // ExtensionFunction overrides. |
| 74 ResponseAction Run() override; |
| 75 |
| 76 private: |
| 77 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateRemoveEntryFunction); |
| 78 }; |
| 79 |
| 80 class AutofillPrivateValidatePhoneNumbersFunction : |
| 81 public UIThreadExtensionFunction { |
| 82 public: |
| 83 AutofillPrivateValidatePhoneNumbersFunction() {} |
| 84 DECLARE_EXTENSION_FUNCTION("autofillPrivate.validatePhoneNumbers", |
| 85 AUTOFILLPRIVATE_VALIDATEPHONENUMBERS); |
| 86 |
| 87 protected: |
| 88 ~AutofillPrivateValidatePhoneNumbersFunction() override; |
| 89 |
| 90 // ExtensionFunction overrides. |
| 91 ResponseAction Run() override; |
| 92 |
| 93 private: |
| 94 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateValidatePhoneNumbersFunction); |
| 95 }; |
| 96 |
| 97 class AutofillPrivateMaskCreditCardFunction : public UIThreadExtensionFunction { |
| 98 public: |
| 99 AutofillPrivateMaskCreditCardFunction() {} |
| 100 DECLARE_EXTENSION_FUNCTION("autofillPrivate.maskCreditCard", |
| 101 AUTOFILLPRIVATE_MASKCREDITCARD); |
| 102 |
| 103 protected: |
| 104 ~AutofillPrivateMaskCreditCardFunction() override; |
| 105 |
| 106 // ExtensionFunction overrides. |
| 107 ResponseAction Run() override; |
| 108 |
| 109 private: |
| 110 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateMaskCreditCardFunction); |
| 111 }; |
| 112 |
| 113 } // namespace extensions |
| 114 |
| 115 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_API_H
_ |
OLD | NEW |