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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/autofill_private/autofill_private_api.h
diff --git a/chrome/browser/extensions/api/autofill_private/autofill_private_api.h b/chrome/browser/extensions/api/autofill_private/autofill_private_api.h
index 819881a2c3ab0a8b90d1054730cd56f42d754a7e..9a34697c635f8f523e7244aee512ff8e783ef593 100644
--- a/chrome/browser/extensions/api/autofill_private/autofill_private_api.h
+++ b/chrome/browser/extensions/api/autofill_private/autofill_private_api.h
@@ -48,6 +48,24 @@ class AutofillPrivateGetAddressComponentsFunction :
DISALLOW_COPY_AND_ASSIGN(AutofillPrivateGetAddressComponentsFunction);
};
+class AutofillPrivateGetAddressListFunction : public UIThreadExtensionFunction {
+ public:
+ AutofillPrivateGetAddressListFunction();
+ DECLARE_EXTENSION_FUNCTION("autofillPrivate.getAddressList",
+ AUTOFILLPRIVATE_GETADDRESSLIST);
+
+ protected:
+ ~AutofillPrivateGetAddressListFunction() override;
+
+ // ExtensionFunction overrides.
+ ResponseAction Run() override;
+
+ private:
+ ChromeExtensionFunctionDetails chrome_details_;
+
+ DISALLOW_COPY_AND_ASSIGN(AutofillPrivateGetAddressListFunction);
+};
+
class AutofillPrivateSaveCreditCardFunction : public UIThreadExtensionFunction {
public:
AutofillPrivateSaveCreditCardFunction();
@@ -119,6 +137,25 @@ class AutofillPrivateMaskCreditCardFunction : public UIThreadExtensionFunction {
DISALLOW_COPY_AND_ASSIGN(AutofillPrivateMaskCreditCardFunction);
};
+class AutofillPrivateGetCreditCardListFunction
+ : public UIThreadExtensionFunction {
+ public:
+ AutofillPrivateGetCreditCardListFunction();
+ DECLARE_EXTENSION_FUNCTION("autofillPrivate.getCreditCardList",
+ AUTOFILLPRIVATE_GETCREDITCARDLIST);
+
+ protected:
+ ~AutofillPrivateGetCreditCardListFunction() override;
+
+ // ExtensionFunction overrides.
+ ResponseAction Run() override;
+
+ private:
+ ChromeExtensionFunctionDetails chrome_details_;
+
+ DISALLOW_COPY_AND_ASSIGN(AutofillPrivateGetCreditCardListFunction);
+};
+
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_API_H_
« 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