| OLD | NEW |
| 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 Loading... |
| 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 |
| 52 |
| 34 class AutofillPrivateGetAddressComponentsFunction : | 53 class AutofillPrivateGetAddressComponentsFunction : |
| 35 public UIThreadExtensionFunction { | 54 public UIThreadExtensionFunction { |
| 36 public: | 55 public: |
| 37 AutofillPrivateGetAddressComponentsFunction() {} | 56 AutofillPrivateGetAddressComponentsFunction() {} |
| 38 DECLARE_EXTENSION_FUNCTION("autofillPrivate.getAddressComponents", | 57 DECLARE_EXTENSION_FUNCTION("autofillPrivate.getAddressComponents", |
| 39 AUTOFILLPRIVATE_GETADDRESSCOMPONENTS); | 58 AUTOFILLPRIVATE_GETADDRESSCOMPONENTS); |
| 40 | 59 |
| 41 protected: | 60 protected: |
| 42 ~AutofillPrivateGetAddressComponentsFunction() override; | 61 ~AutofillPrivateGetAddressComponentsFunction() override; |
| 43 | 62 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 171 |
| 153 private: | 172 private: |
| 154 ChromeExtensionFunctionDetails chrome_details_; | 173 ChromeExtensionFunctionDetails chrome_details_; |
| 155 | 174 |
| 156 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateGetCreditCardListFunction); | 175 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateGetCreditCardListFunction); |
| 157 }; | 176 }; |
| 158 | 177 |
| 159 } // namespace extensions | 178 } // namespace extensions |
| 160 | 179 |
| 161 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_API_H
_ | 180 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_API_H
_ |
| OLD | NEW |