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

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: Created 7 years, 4 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
49 // Whether or not the delegate can use minimal addresses.
50 virtual bool IsMinimalAddressAccepted() const = 0;
51
52 // Whether or not phone numbers are required by the delegate.
53 virtual bool IsPhoneNumberRequired() const = 0;
Dan Beam 2013/07/25 19:37:03 ^ are there any real uses of these bottom 2 method
ahutter 2013/07/26 16:03:36 Nope. Removed.
54
46 // -------------------------------------------------------------------------- 55 // --------------------------------------------------------------------------
47 // Callbacks called with responses from the Online Wallet backend. 56 // Callbacks called with responses from the Online Wallet backend.
48 // -------------------------------------------------------------------------- 57 // --------------------------------------------------------------------------
49 58
50 // Called when an AcceptLegalDocuments request finishes successfully. 59 // Called when an AcceptLegalDocuments request finishes successfully.
51 virtual void OnDidAcceptLegalDocuments() = 0; 60 virtual void OnDidAcceptLegalDocuments() = 0;
52 61
53 // Called when an AuthenticateInstrument request finishes successfully. 62 // Called when an AuthenticateInstrument request finishes successfully.
54 virtual void OnDidAuthenticateInstrument(bool success) = 0; 63 virtual void OnDidAuthenticateInstrument(bool success) = 0;
55 64
(...skipping 20 matching lines...) Expand all
76 virtual void OnWalletError(WalletClient::ErrorType error_type) = 0; 85 virtual void OnWalletError(WalletClient::ErrorType error_type) = 0;
77 86
78 protected: 87 protected:
79 virtual ~WalletClientDelegate() {} 88 virtual ~WalletClientDelegate() {}
80 }; 89 };
81 90
82 } // namespace wallet 91 } // namespace wallet
83 } // namespace autofill 92 } // namespace autofill
84 93
85 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_OBSERVER_H_ 94 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698