| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 COMPONENTS_WEBDATA_COMMON_WEB_DATA_RESULTS_H_ | 5 #ifndef COMPONENTS_WEBDATA_COMMON_WEB_DATA_RESULTS_H_ |
| 6 #define COMPONENTS_WEBDATA_COMMON_WEB_DATA_RESULTS_H_ | 6 #define COMPONENTS_WEBDATA_COMMON_WEB_DATA_RESULTS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 WEB_APP_IMAGES, // WDResult<WDAppImagesResult> | 27 WEB_APP_IMAGES, // WDResult<WDAppImagesResult> |
| 28 TOKEN_RESULT, // WDResult<TokenResult> | 28 TOKEN_RESULT, // WDResult<TokenResult> |
| 29 AUTOFILL_VALUE_RESULT, // WDResult<std::vector<base::string16>> | 29 AUTOFILL_VALUE_RESULT, // WDResult<std::vector<base::string16>> |
| 30 AUTOFILL_CHANGES, // WDResult<std::vector<AutofillChange>> | 30 AUTOFILL_CHANGES, // WDResult<std::vector<AutofillChange>> |
| 31 AUTOFILL_PROFILE_RESULT, // WDResult<AutofillProfile> | 31 AUTOFILL_PROFILE_RESULT, // WDResult<AutofillProfile> |
| 32 AUTOFILL_PROFILES_RESULT, // WDResult<std::vector< | 32 AUTOFILL_PROFILES_RESULT, // WDResult<std::vector< |
| 33 // std::unique_ptr<AutofillProfile>>> | 33 // std::unique_ptr<AutofillProfile>>> |
| 34 AUTOFILL_CREDITCARD_RESULT, // WDResult<CreditCard> | 34 AUTOFILL_CREDITCARD_RESULT, // WDResult<CreditCard> |
| 35 AUTOFILL_CREDITCARDS_RESULT, // WDResult<std::vector< | 35 AUTOFILL_CREDITCARDS_RESULT, // WDResult<std::vector< |
| 36 // std::unique_ptr<CreditCard>>> | 36 // std::unique_ptr<CreditCard>>> |
| 37 #if defined(OS_ANDROID) |
| 38 PAYMENT_WEB_APP_MANIFEST, // WDResult<std::vector<mojom::WebAppManifestSectio
nPtr>> |
| 39 PAYMENT_METHOD_MANIFEST, // WDResult<std::vector<std::string>> |
| 40 #endif |
| 37 } WDResultType; | 41 } WDResultType; |
| 38 | 42 |
| 39 // | 43 // |
| 40 // The top level class for a result. | 44 // The top level class for a result. |
| 41 // | 45 // |
| 42 class WEBDATA_EXPORT WDTypedResult { | 46 class WEBDATA_EXPORT WDTypedResult { |
| 43 public: | 47 public: |
| 44 virtual ~WDTypedResult() { | 48 virtual ~WDTypedResult() { |
| 45 } | 49 } |
| 46 | 50 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 72 const T& GetValue() const { return value_; } | 76 const T& GetValue() const { return value_; } |
| 73 T GetValue() { return std::move(value_); } | 77 T GetValue() { return std::move(value_); } |
| 74 | 78 |
| 75 private: | 79 private: |
| 76 T value_; | 80 T value_; |
| 77 | 81 |
| 78 DISALLOW_COPY_AND_ASSIGN(WDResult); | 82 DISALLOW_COPY_AND_ASSIGN(WDResult); |
| 79 }; | 83 }; |
| 80 | 84 |
| 81 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATA_RESULTS_H_ | 85 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATA_RESULTS_H_ |
| OLD | NEW |