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