Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Side by Side Diff: chrome/browser/extensions/api/autofill_private/autofill_private_api.h

Issue 1957043002: Separate the listeners and getters for the Autofill Private API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@autofill-lists.gitbr
Patch Set: update histogram.xml and test Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/autofill_private/autofill_private_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 30 matching lines...) Expand all
41 protected: 41 protected:
42 ~AutofillPrivateGetAddressComponentsFunction() override; 42 ~AutofillPrivateGetAddressComponentsFunction() override;
43 43
44 // ExtensionFunction overrides. 44 // ExtensionFunction overrides.
45 ResponseAction Run() override; 45 ResponseAction Run() override;
46 46
47 private: 47 private:
48 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateGetAddressComponentsFunction); 48 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateGetAddressComponentsFunction);
49 }; 49 };
50 50
51 class AutofillPrivateGetAddressListFunction : public UIThreadExtensionFunction {
52 public:
53 AutofillPrivateGetAddressListFunction();
54 DECLARE_EXTENSION_FUNCTION("autofillPrivate.getAddressList",
55 AUTOFILLPRIVATE_GETADDRESSLIST);
56
57 protected:
58 ~AutofillPrivateGetAddressListFunction() override;
59
60 // ExtensionFunction overrides.
61 ResponseAction Run() override;
62
63 private:
64 ChromeExtensionFunctionDetails chrome_details_;
65
66 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateGetAddressListFunction);
67 };
68
51 class AutofillPrivateSaveCreditCardFunction : public UIThreadExtensionFunction { 69 class AutofillPrivateSaveCreditCardFunction : public UIThreadExtensionFunction {
52 public: 70 public:
53 AutofillPrivateSaveCreditCardFunction(); 71 AutofillPrivateSaveCreditCardFunction();
54 DECLARE_EXTENSION_FUNCTION("autofillPrivate.saveCreditCard", 72 DECLARE_EXTENSION_FUNCTION("autofillPrivate.saveCreditCard",
55 AUTOFILLPRIVATE_SAVECREDITCARD); 73 AUTOFILLPRIVATE_SAVECREDITCARD);
56 74
57 protected: 75 protected:
58 ~AutofillPrivateSaveCreditCardFunction() override; 76 ~AutofillPrivateSaveCreditCardFunction() override;
59 77
60 // ExtensionFunction overrides. 78 // ExtensionFunction overrides.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 130
113 // ExtensionFunction overrides. 131 // ExtensionFunction overrides.
114 ResponseAction Run() override; 132 ResponseAction Run() override;
115 133
116 private: 134 private:
117 ChromeExtensionFunctionDetails chrome_details_; 135 ChromeExtensionFunctionDetails chrome_details_;
118 136
119 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateMaskCreditCardFunction); 137 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateMaskCreditCardFunction);
120 }; 138 };
121 139
140 class AutofillPrivateGetCreditCardListFunction
141 : public UIThreadExtensionFunction {
142 public:
143 AutofillPrivateGetCreditCardListFunction();
144 DECLARE_EXTENSION_FUNCTION("autofillPrivate.getCreditCardList",
145 AUTOFILLPRIVATE_GETCREDITCARDLIST);
146
147 protected:
148 ~AutofillPrivateGetCreditCardListFunction() override;
149
150 // ExtensionFunction overrides.
151 ResponseAction Run() override;
152
153 private:
154 ChromeExtensionFunctionDetails chrome_details_;
155
156 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateGetCreditCardListFunction);
157 };
158
122 } // namespace extensions 159 } // namespace extensions
123 160
124 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_API_H _ 161 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_API_H _
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/autofill_private/autofill_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698