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

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

Issue 2028903002: Update Autofill Private API to provide a list of available countries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 6 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 13 matching lines...) Expand all
24 24
25 // ExtensionFunction overrides. 25 // ExtensionFunction overrides.
26 ResponseAction Run() override; 26 ResponseAction Run() override;
27 27
28 private: 28 private:
29 ChromeExtensionFunctionDetails chrome_details_; 29 ChromeExtensionFunctionDetails chrome_details_;
30 30
31 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateSaveAddressFunction); 31 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateSaveAddressFunction);
32 }; 32 };
33 33
34 class AutofillPrivateGetCountryListFunction : public UIThreadExtensionFunction {
35 public:
36 AutofillPrivateGetCountryListFunction();
37 DECLARE_EXTENSION_FUNCTION("autofillPrivate.getCountryList",
38 AUTOFILLPRIVATE_GETCOUNTRYLIST);
39
40 protected:
41 ~AutofillPrivateGetCountryListFunction() override;
42
43 // ExtensionFunction overrides.
44 ResponseAction Run() override;
45
46 private:
47 ChromeExtensionFunctionDetails chrome_details_;
48
49 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateGetCountryListFunction);
50 };
51
34 class AutofillPrivateGetAddressComponentsFunction : 52 class AutofillPrivateGetAddressComponentsFunction :
35 public UIThreadExtensionFunction { 53 public UIThreadExtensionFunction {
36 public: 54 public:
37 AutofillPrivateGetAddressComponentsFunction() {} 55 AutofillPrivateGetAddressComponentsFunction() {}
38 DECLARE_EXTENSION_FUNCTION("autofillPrivate.getAddressComponents", 56 DECLARE_EXTENSION_FUNCTION("autofillPrivate.getAddressComponents",
39 AUTOFILLPRIVATE_GETADDRESSCOMPONENTS); 57 AUTOFILLPRIVATE_GETADDRESSCOMPONENTS);
40 58
41 protected: 59 protected:
42 ~AutofillPrivateGetAddressComponentsFunction() override; 60 ~AutofillPrivateGetAddressComponentsFunction() override;
43 61
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 170
153 private: 171 private:
154 ChromeExtensionFunctionDetails chrome_details_; 172 ChromeExtensionFunctionDetails chrome_details_;
155 173
156 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateGetCreditCardListFunction); 174 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateGetCreditCardListFunction);
157 }; 175 };
158 176
159 } // namespace extensions 177 } // namespace extensions
160 178
161 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_API_H _ 179 #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