Chromium Code Reviews| 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 "base/memory/scoped_ptr.h" | |
| 12 #include "base/values.h" | |
| 13 #include "extensions/browser/extension_function.h" | |
| 14 | |
| 15 namespace extensions { | |
| 16 | |
| 17 // Implements the chrome.autofillPrivate.saveAddress method. | |
|
not at google - send to devlin
2015/04/23 19:35:52
I don't think these class comments are particularl
Kyle Horimoto
2015/04/23 20:23:30
Done.
| |
| 18 class AutofillPrivateSaveAddressFunction : public UIThreadExtensionFunction { | |
| 19 public: | |
| 20 AutofillPrivateSaveAddressFunction() {} | |
| 21 DECLARE_EXTENSION_FUNCTION("autofillPrivate.saveAddress", | |
| 22 AUTOFILLPRIVATE_SAVEADDRESS); | |
| 23 | |
| 24 protected: | |
| 25 ~AutofillPrivateSaveAddressFunction() override; | |
| 26 | |
| 27 // ExtensionFunction overrides. | |
| 28 ResponseAction Run() override; | |
| 29 | |
| 30 private: | |
| 31 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateSaveAddressFunction); | |
| 32 }; | |
| 33 | |
| 34 // Implements the chrome.autofillPrivate.getAddressComponents method. | |
| 35 class AutofillPrivateGetAddressComponentsFunction : | |
| 36 public UIThreadExtensionFunction { | |
| 37 public: | |
| 38 AutofillPrivateGetAddressComponentsFunction() {} | |
| 39 DECLARE_EXTENSION_FUNCTION("autofillPrivate.getAddressComponents", | |
| 40 AUTOFILLPRIVATE_GETADDRESSCOMPONENTS); | |
| 41 | |
| 42 protected: | |
| 43 ~AutofillPrivateGetAddressComponentsFunction() override; | |
| 44 | |
| 45 // ExtensionFunction overrides. | |
| 46 ResponseAction Run() override; | |
| 47 | |
| 48 private: | |
| 49 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateGetAddressComponentsFunction); | |
| 50 }; | |
| 51 | |
| 52 // Implements the chrome.autofillPrivate.saveCreditCard method. | |
| 53 class AutofillPrivateSaveCreditCardFunction : public UIThreadExtensionFunction { | |
| 54 public: | |
| 55 AutofillPrivateSaveCreditCardFunction() {} | |
| 56 DECLARE_EXTENSION_FUNCTION("autofillPrivate.saveCreditCard", | |
| 57 AUTOFILLPRIVATE_SAVECREDITCARD); | |
| 58 | |
| 59 protected: | |
| 60 ~AutofillPrivateSaveCreditCardFunction() override; | |
| 61 | |
| 62 // ExtensionFunction overrides. | |
| 63 ResponseAction Run() override; | |
| 64 | |
| 65 private: | |
| 66 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateSaveCreditCardFunction); | |
| 67 }; | |
| 68 | |
| 69 // Implements the chrome.autofillPrivate.removeEntry method. | |
| 70 class AutofillPrivateRemoveEntryFunction : public UIThreadExtensionFunction { | |
| 71 public: | |
| 72 AutofillPrivateRemoveEntryFunction() {} | |
| 73 DECLARE_EXTENSION_FUNCTION("autofillPrivate.removeEntry", | |
| 74 AUTOFILLPRIVATE_REMOVEENTRY); | |
| 75 | |
| 76 protected: | |
| 77 ~AutofillPrivateRemoveEntryFunction() override; | |
| 78 | |
| 79 // ExtensionFunction overrides. | |
| 80 ResponseAction Run() override; | |
| 81 | |
| 82 private: | |
| 83 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateRemoveEntryFunction); | |
| 84 }; | |
| 85 | |
| 86 // Implements the chrome.autofillPrivate.ValidatePhoneNumbers method. | |
| 87 class AutofillPrivateValidatePhoneNumbersFunction : | |
| 88 public UIThreadExtensionFunction { | |
| 89 public: | |
| 90 AutofillPrivateValidatePhoneNumbersFunction() {} | |
| 91 DECLARE_EXTENSION_FUNCTION("autofillPrivate.validatePhoneNumbers", | |
| 92 AUTOFILLPRIVATE_VALIDATEPHONENUMBERS); | |
| 93 | |
| 94 protected: | |
| 95 ~AutofillPrivateValidatePhoneNumbersFunction() override; | |
| 96 | |
| 97 // ExtensionFunction overrides. | |
| 98 ResponseAction Run() override; | |
| 99 | |
| 100 private: | |
| 101 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateValidatePhoneNumbersFunction); | |
| 102 }; | |
| 103 | |
| 104 // Implements the chrome.autofillPrivate.maskCreditCard method. | |
| 105 class AutofillPrivateMaskCreditCardFunction : public UIThreadExtensionFunction { | |
| 106 public: | |
| 107 AutofillPrivateMaskCreditCardFunction() {} | |
| 108 DECLARE_EXTENSION_FUNCTION("autofillPrivate.maskCreditCard", | |
| 109 AUTOFILLPRIVATE_MASKCREDITCARD); | |
| 110 | |
| 111 protected: | |
| 112 ~AutofillPrivateMaskCreditCardFunction() override; | |
| 113 | |
| 114 // ExtensionFunction overrides. | |
| 115 ResponseAction Run() override; | |
| 116 | |
| 117 private: | |
| 118 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateMaskCreditCardFunction); | |
| 119 }; | |
| 120 | |
| 121 } // namespace extensions | |
| 122 | |
| 123 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_API_H _ | |
| OLD | NEW |