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< |
| 39 // mojom::WebAppManifestSectionPtr>> |
| 40 PAYMENT_METHOD_MANIFEST, // WDResult<std::vector<std::string>> |
| 41 #endif |
37 } WDResultType; | 42 } WDResultType; |
38 | 43 |
39 // | 44 // |
40 // The top level class for a result. | 45 // The top level class for a result. |
41 // | 46 // |
42 class WEBDATA_EXPORT WDTypedResult { | 47 class WEBDATA_EXPORT WDTypedResult { |
43 public: | 48 public: |
44 virtual ~WDTypedResult() { | 49 virtual ~WDTypedResult() { |
45 } | 50 } |
46 | 51 |
(...skipping 25 matching lines...) Expand all Loading... |
72 const T& GetValue() const { return value_; } | 77 const T& GetValue() const { return value_; } |
73 T GetValue() { return std::move(value_); } | 78 T GetValue() { return std::move(value_); } |
74 | 79 |
75 private: | 80 private: |
76 T value_; | 81 T value_; |
77 | 82 |
78 DISALLOW_COPY_AND_ASSIGN(WDResult); | 83 DISALLOW_COPY_AND_ASSIGN(WDResult); |
79 }; | 84 }; |
80 | 85 |
81 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATA_RESULTS_H_ | 86 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATA_RESULTS_H_ |
OLD | NEW |