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

Side by Side Diff: components/webdata/common/web_data_results.h

Issue 2838433002: [Payments] Cache payment manifests. (Closed)
Patch Set: rebase Created 3 years, 7 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
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698