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

Side by Side Diff: components/autofill/content/browser/wallet/wallet_client_delegate.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_BROWSER_WALLET_WALLET_CLIENT_OBSERVER_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_OBSERVER_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_OBSERVER_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 25 matching lines...) Expand all
36 // Returns the dialog type that the delegate corresponds to. 36 // Returns the dialog type that the delegate corresponds to.
37 virtual DialogType GetDialogType() const = 0; 37 virtual DialogType GetDialogType() const = 0;
38 38
39 // Returns the serialized fingerprint data to be sent to the Risk server. 39 // Returns the serialized fingerprint data to be sent to the Risk server.
40 virtual std::string GetRiskData() const = 0; 40 virtual std::string GetRiskData() const = 0;
41 41
42 // Returns the cookie value used for authorization when making requests to 42 // Returns the cookie value used for authorization when making requests to
43 // Wallet. 43 // Wallet.
44 virtual std::string GetWalletCookieValue() const = 0; 44 virtual std::string GetWalletCookieValue() const = 0;
45 45
46 // Whether or not shipping address is required by the delegate.
47 virtual bool IsShippingAddressRequired() const = 0;
48
46 // -------------------------------------------------------------------------- 49 // --------------------------------------------------------------------------
47 // Callbacks called with responses from the Online Wallet backend. 50 // Callbacks called with responses from the Online Wallet backend.
48 // -------------------------------------------------------------------------- 51 // --------------------------------------------------------------------------
49 52
50 // Called when an AcceptLegalDocuments request finishes successfully. 53 // Called when an AcceptLegalDocuments request finishes successfully.
51 virtual void OnDidAcceptLegalDocuments() = 0; 54 virtual void OnDidAcceptLegalDocuments() = 0;
52 55
53 // Called when an AuthenticateInstrument request finishes successfully. 56 // Called when an AuthenticateInstrument request finishes successfully.
54 virtual void OnDidAuthenticateInstrument(bool success) = 0; 57 virtual void OnDidAuthenticateInstrument(bool success) = 0;
55 58
(...skipping 20 matching lines...) Expand all
76 virtual void OnWalletError(WalletClient::ErrorType error_type) = 0; 79 virtual void OnWalletError(WalletClient::ErrorType error_type) = 0;
77 80
78 protected: 81 protected:
79 virtual ~WalletClientDelegate() {} 82 virtual ~WalletClientDelegate() {}
80 }; 83 };
81 84
82 } // namespace wallet 85 } // namespace wallet
83 } // namespace autofill 86 } // namespace autofill
84 87
85 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_OBSERVER_H_ 88 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698