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

Side by Side Diff: components/autofill/core/browser/payments/full_card_request.h

Issue 2163693002: [Merge M-53] Credit card editor for PaymentRequest UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_CORE_BROWSER_PAYMENTS_FULL_CARD_REQUEST_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PAYMENTS_FULL_CARD_REQUEST_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PAYMENTS_FULL_CARD_REQUEST_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PAYMENTS_FULL_CARD_REQUEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 // The parameters should outlive the FullCardRequest. 37 // The parameters should outlive the FullCardRequest.
38 FullCardRequest(AutofillClient* autofill_client, 38 FullCardRequest(AutofillClient* autofill_client,
39 payments::PaymentsClient* payments_client, 39 payments::PaymentsClient* payments_client,
40 PersonalDataManager* personal_data_manager); 40 PersonalDataManager* personal_data_manager);
41 ~FullCardRequest(); 41 ~FullCardRequest();
42 42
43 // Retrieves the pan and cvc for |card| and invokes 43 // Retrieves the pan and cvc for |card| and invokes
44 // Delegate::OnFullCardDetails() or Delegate::OnFullCardError(). Only one 44 // Delegate::OnFullCardDetails() or Delegate::OnFullCardError(). Only one
45 // request should be active at a time. 45 // request should be active at a time.
46 //
47 // If the card is local, has a non-empty GUID, and the user has updated its
48 // expiration date, then this function will write the new information to
49 // autofill table on disk.
46 void GetFullCard(const CreditCard& card, 50 void GetFullCard(const CreditCard& card,
47 AutofillClient::UnmaskCardReason reason, 51 AutofillClient::UnmaskCardReason reason,
48 base::WeakPtr<Delegate> delegate); 52 base::WeakPtr<Delegate> delegate);
49 53
50 // Returns true if there's a pending request to get the full card. 54 // Returns true if there's a pending request to get the full card.
51 bool IsGettingFullCard() const; 55 bool IsGettingFullCard() const;
52 56
53 // Called by the payments client when a card has been unmasked. 57 // Called by the payments client when a card has been unmasked.
54 void OnDidGetRealPan(AutofillClient::PaymentsRpcResult result, 58 void OnDidGetRealPan(AutofillClient::PaymentsRpcResult result,
55 const std::string& real_pan); 59 const std::string& real_pan);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // communication is pending. 95 // communication is pending.
92 base::WeakPtrFactory<FullCardRequest> weak_ptr_factory_; 96 base::WeakPtrFactory<FullCardRequest> weak_ptr_factory_;
93 97
94 DISALLOW_COPY_AND_ASSIGN(FullCardRequest); 98 DISALLOW_COPY_AND_ASSIGN(FullCardRequest);
95 }; 99 };
96 100
97 } // namespace payments 101 } // namespace payments
98 } // namespace autofill 102 } // namespace autofill
99 103
100 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PAYMENTS_FULL_CARD_REQUEST_H_ 104 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PAYMENTS_FULL_CARD_REQUEST_H_
OLDNEW
« no previous file with comments | « chrome/test/data/android/payments/no_shipping.js ('k') | components/autofill/core/browser/payments/full_card_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698