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

Side by Side Diff: components/autofill/content/browser/autocheckout_request_manager.h

Issue 20420002: Make Wallet respect whether or not shipping address is required. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wallet client respects delegates shipping preference. Created 7 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CONTENT_BROWSER_AUTOCHECKOUT_REQUEST_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_REQUEST_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_REQUEST_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_REQUEST_MANAGER_H_
7 7
8 #include "base/supports_user_data.h" 8 #include "base/supports_user_data.h"
9 #include "components/autofill/content/browser/autocheckout_statistic.h" 9 #include "components/autofill/content/browser/autocheckout_statistic.h"
10 #include "components/autofill/content/browser/wallet/wallet_client.h" 10 #include "components/autofill/content/browser/wallet/wallet_client.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 AutocheckoutStatus status, 48 AutocheckoutStatus status,
49 const GURL& source_url, 49 const GURL& source_url,
50 const std::vector<AutocheckoutStatistic>& latency_statistics, 50 const std::vector<AutocheckoutStatistic>& latency_statistics,
51 const std::string& google_transaction_id); 51 const std::string& google_transaction_id);
52 52
53 // wallet::WalletClientDelegate: 53 // wallet::WalletClientDelegate:
54 virtual const AutofillMetrics& GetMetricLogger() const OVERRIDE; 54 virtual const AutofillMetrics& GetMetricLogger() const OVERRIDE;
55 virtual DialogType GetDialogType() const OVERRIDE; 55 virtual DialogType GetDialogType() const OVERRIDE;
56 virtual std::string GetRiskData() const OVERRIDE; 56 virtual std::string GetRiskData() const OVERRIDE;
57 virtual std::string GetWalletCookieValue() const OVERRIDE; 57 virtual std::string GetWalletCookieValue() const OVERRIDE;
58 virtual bool IsShippingAddressRequired() const OVERRIDE;
58 virtual void OnDidAcceptLegalDocuments() OVERRIDE; 59 virtual void OnDidAcceptLegalDocuments() OVERRIDE;
59 virtual void OnDidAuthenticateInstrument(bool success) OVERRIDE; 60 virtual void OnDidAuthenticateInstrument(bool success) OVERRIDE;
60 virtual void OnDidGetFullWallet( 61 virtual void OnDidGetFullWallet(
61 scoped_ptr<wallet::FullWallet> full_wallet) OVERRIDE; 62 scoped_ptr<wallet::FullWallet> full_wallet) OVERRIDE;
62 virtual void OnDidGetWalletItems( 63 virtual void OnDidGetWalletItems(
63 scoped_ptr<wallet::WalletItems> wallet_items) OVERRIDE; 64 scoped_ptr<wallet::WalletItems> wallet_items) OVERRIDE;
64 virtual void OnDidSaveToWallet( 65 virtual void OnDidSaveToWallet(
65 const std::string& instrument_id, 66 const std::string& instrument_id,
66 const std::string& address_id, 67 const std::string& address_id,
67 const std::vector<wallet::RequiredAction>& required_actions, 68 const std::vector<wallet::RequiredAction>& required_actions,
(...skipping 12 matching lines...) Expand all
80 // Makes requests to Online Wallet. The only request this class is configured 81 // Makes requests to Online Wallet. The only request this class is configured
81 // to make is SendAutocheckoutStatus. 82 // to make is SendAutocheckoutStatus.
82 wallet::WalletClient wallet_client_; 83 wallet::WalletClient wallet_client_;
83 84
84 DISALLOW_COPY_AND_ASSIGN(AutocheckoutRequestManager); 85 DISALLOW_COPY_AND_ASSIGN(AutocheckoutRequestManager);
85 }; 86 };
86 87
87 } // namespace autofill 88 } // namespace autofill
88 89
89 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_REQUEST_MANAGER_H_ 90 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_REQUEST_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698