Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / extensions / api / autofill_private / autofill_private_api.h
blob819881a2c3ab0a8b90d1054730cd56f42d754a7e
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.
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_API_H_
8 #include <string>
10 #include "base/macros.h"
11 #include "chrome/browser/extensions/chrome_extension_function_details.h"
12 #include "extensions/browser/extension_function.h"
14 namespace extensions {
16 class AutofillPrivateSaveAddressFunction : public UIThreadExtensionFunction {
17 public:
18 AutofillPrivateSaveAddressFunction();
19 DECLARE_EXTENSION_FUNCTION("autofillPrivate.saveAddress",
20 AUTOFILLPRIVATE_SAVEADDRESS);
22 protected:
23 ~AutofillPrivateSaveAddressFunction() override;
25 // ExtensionFunction overrides.
26 ResponseAction Run() override;
28 private:
29 ChromeExtensionFunctionDetails chrome_details_;
31 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateSaveAddressFunction);
34 class AutofillPrivateGetAddressComponentsFunction :
35 public UIThreadExtensionFunction {
36 public:
37 AutofillPrivateGetAddressComponentsFunction() {}
38 DECLARE_EXTENSION_FUNCTION("autofillPrivate.getAddressComponents",
39 AUTOFILLPRIVATE_GETADDRESSCOMPONENTS);
41 protected:
42 ~AutofillPrivateGetAddressComponentsFunction() override;
44 // ExtensionFunction overrides.
45 ResponseAction Run() override;
47 private:
48 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateGetAddressComponentsFunction);
51 class AutofillPrivateSaveCreditCardFunction : public UIThreadExtensionFunction {
52 public:
53 AutofillPrivateSaveCreditCardFunction();
54 DECLARE_EXTENSION_FUNCTION("autofillPrivate.saveCreditCard",
55 AUTOFILLPRIVATE_SAVECREDITCARD);
57 protected:
58 ~AutofillPrivateSaveCreditCardFunction() override;
60 // ExtensionFunction overrides.
61 ResponseAction Run() override;
63 private:
64 ChromeExtensionFunctionDetails chrome_details_;
66 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateSaveCreditCardFunction);
69 class AutofillPrivateRemoveEntryFunction : public UIThreadExtensionFunction {
70 public:
71 AutofillPrivateRemoveEntryFunction();
72 DECLARE_EXTENSION_FUNCTION("autofillPrivate.removeEntry",
73 AUTOFILLPRIVATE_REMOVEENTRY);
75 protected:
76 ~AutofillPrivateRemoveEntryFunction() override;
78 // ExtensionFunction overrides.
79 ResponseAction Run() override;
81 private:
82 ChromeExtensionFunctionDetails chrome_details_;
84 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateRemoveEntryFunction);
87 class AutofillPrivateValidatePhoneNumbersFunction :
88 public UIThreadExtensionFunction {
89 public:
90 AutofillPrivateValidatePhoneNumbersFunction() {}
91 DECLARE_EXTENSION_FUNCTION("autofillPrivate.validatePhoneNumbers",
92 AUTOFILLPRIVATE_VALIDATEPHONENUMBERS);
94 protected:
95 ~AutofillPrivateValidatePhoneNumbersFunction() override;
97 // ExtensionFunction overrides.
98 ResponseAction Run() override;
100 private:
101 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateValidatePhoneNumbersFunction);
104 class AutofillPrivateMaskCreditCardFunction : public UIThreadExtensionFunction {
105 public:
106 AutofillPrivateMaskCreditCardFunction();
107 DECLARE_EXTENSION_FUNCTION("autofillPrivate.maskCreditCard",
108 AUTOFILLPRIVATE_MASKCREDITCARD);
110 protected:
111 ~AutofillPrivateMaskCreditCardFunction() override;
113 // ExtensionFunction overrides.
114 ResponseAction Run() override;
116 private:
117 ChromeExtensionFunctionDetails chrome_details_;
119 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateMaskCreditCardFunction);
122 } // namespace extensions
124 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_API_H_