| 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 |
| 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 Loading... |
| 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
_ |
| OLD | NEW |