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

Side by Side Diff: components/autofill/browser/wallet/wallet_client.h

Issue 14836006: Deprecate Carts in Wallet code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing Created 7 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 | Annotate | Revision Log
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_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" // For base::Closure. 12 #include "base/callback.h" // For base::Closure.
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/time.h" 14 #include "base/time.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "components/autofill/browser/autofill_manager_delegate.h" 16 #include "components/autofill/browser/autofill_manager_delegate.h"
17 #include "components/autofill/browser/autofill_metrics.h" 17 #include "components/autofill/browser/autofill_metrics.h"
18 #include "components/autofill/browser/wallet/cart.h"
19 #include "components/autofill/browser/wallet/encryption_escrow_client.h" 18 #include "components/autofill/browser/wallet/encryption_escrow_client.h"
20 #include "components/autofill/browser/wallet/encryption_escrow_client_observer.h " 19 #include "components/autofill/browser/wallet/encryption_escrow_client_observer.h "
21 #include "components/autofill/browser/wallet/full_wallet.h" 20 #include "components/autofill/browser/wallet/full_wallet.h"
22 #include "components/autofill/browser/wallet/wallet_items.h" 21 #include "components/autofill/browser/wallet/wallet_items.h"
23 #include "components/autofill/common/autocheckout_status.h" 22 #include "components/autofill/common/autocheckout_status.h"
24 #include "googleurl/src/gurl.h" 23 #include "googleurl/src/gurl.h"
25 #include "net/url_request/url_fetcher_delegate.h" 24 #include "net/url_request/url_fetcher_delegate.h"
26 #include "testing/gtest/include/gtest/gtest_prod.h" 25 #include "testing/gtest/include/gtest/gtest_prod.h"
27 26
28 namespace net { 27 namespace net {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 SERVICE_UNAVAILABLE, // Online Wallet is down. 94 SERVICE_UNAVAILABLE, // Online Wallet is down.
96 95
97 UNKNOWN_ERROR, // Catch all error type. 96 UNKNOWN_ERROR, // Catch all error type.
98 }; 97 };
99 98
100 struct FullWalletRequest { 99 struct FullWalletRequest {
101 public: 100 public:
102 FullWalletRequest(const std::string& instrument_id, 101 FullWalletRequest(const std::string& instrument_id,
103 const std::string& address_id, 102 const std::string& address_id,
104 const GURL& source_url, 103 const GURL& source_url,
105 const Cart& cart,
106 const std::string& google_transaction_id, 104 const std::string& google_transaction_id,
107 const std::vector<RiskCapability> risk_capabilities); 105 const std::vector<RiskCapability> risk_capabilities);
108 ~FullWalletRequest(); 106 ~FullWalletRequest();
109 107
110 // The ID of the backing instrument. Should have been selected by the user 108 // The ID of the backing instrument. Should have been selected by the user
111 // in some UI. 109 // in some UI.
112 std::string instrument_id; 110 std::string instrument_id;
113 111
114 // The ID of the shipping address. Should have been selected by the user 112 // The ID of the shipping address. Should have been selected by the user
115 // in some UI. 113 // in some UI.
116 std::string address_id; 114 std::string address_id;
117 115
118 // The URL that Online Wallet usage is being initiated on. 116 // The URL that Online Wallet usage is being initiated on.
119 GURL source_url; 117 GURL source_url;
120 118
121 // Cart information.
122 Cart cart;
123
124 // The transaction ID from GetWalletItems. 119 // The transaction ID from GetWalletItems.
125 std::string google_transaction_id; 120 std::string google_transaction_id;
126 121
127 // The Risk challenges supported by the user of WalletClient 122 // The Risk challenges supported by the user of WalletClient
128 std::vector<RiskCapability> risk_capabilities; 123 std::vector<RiskCapability> risk_capabilities;
129 124
130 private: 125 private:
131 DISALLOW_ASSIGN(FullWalletRequest); 126 DISALLOW_ASSIGN(FullWalletRequest);
132 }; 127 };
133 128
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // When the current request started. Used to track client side latency. 316 // When the current request started. Used to track client side latency.
322 base::Time request_started_timestamp_; 317 base::Time request_started_timestamp_;
323 318
324 DISALLOW_COPY_AND_ASSIGN(WalletClient); 319 DISALLOW_COPY_AND_ASSIGN(WalletClient);
325 }; 320 };
326 321
327 } // namespace wallet 322 } // namespace wallet
328 } // namespace autofill 323 } // namespace autofill
329 324
330 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_H_ 325 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_H_
OLDNEW
« no previous file with comments | « components/autofill/browser/wallet/cart_unittest.cc ('k') | components/autofill/browser/wallet/wallet_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698