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

Side by Side Diff: chrome/browser/ui/views/payments/cvc_unmask_view_controller.h

Issue 2829853008: Stores server card as a full server card when upload to server succeeds. (Closed)
Patch Set: Renames AddServerCreditCard to AddFullServerCreditCard. Adds DCHECK to verify that we are in a tran… Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/cvc_unmask_view_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 CHROME_BROWSER_UI_VIEWS_PAYMENTS_CVC_UNMASK_VIEW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_CVC_UNMASK_VIEW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_CVC_UNMASK_VIEW_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_CVC_UNMASK_VIEW_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 ~CvcUnmaskViewController() override; 51 ~CvcUnmaskViewController() override;
52 52
53 // autofill::payments::PaymentsClientDelegate: 53 // autofill::payments::PaymentsClientDelegate:
54 IdentityProvider* GetIdentityProvider() override; 54 IdentityProvider* GetIdentityProvider() override;
55 void OnDidGetRealPan(autofill::AutofillClient::PaymentsRpcResult result, 55 void OnDidGetRealPan(autofill::AutofillClient::PaymentsRpcResult result,
56 const std::string& real_pan) override; 56 const std::string& real_pan) override;
57 void OnDidGetUploadDetails( 57 void OnDidGetUploadDetails(
58 autofill::AutofillClient::PaymentsRpcResult result, 58 autofill::AutofillClient::PaymentsRpcResult result,
59 const base::string16& context_token, 59 const base::string16& context_token,
60 std::unique_ptr<base::DictionaryValue> legal_message) override; 60 std::unique_ptr<base::DictionaryValue> legal_message) override;
61 void OnDidUploadCard( 61 void OnDidUploadCard(autofill::AutofillClient::PaymentsRpcResult result,
62 autofill::AutofillClient::PaymentsRpcResult result) override; 62 const std::string& server_id) override;
63 63
64 // autofill::RiskDataLoader: 64 // autofill::RiskDataLoader:
65 void LoadRiskData( 65 void LoadRiskData(
66 const base::Callback<void(const std::string&)>& callback) override; 66 const base::Callback<void(const std::string&)>& callback) override;
67 67
68 // autofill::payments::FullCardRequest::UIDelegate: 68 // autofill::payments::FullCardRequest::UIDelegate:
69 void ShowUnmaskPrompt( 69 void ShowUnmaskPrompt(
70 const autofill::CreditCard& card, 70 const autofill::CreditCard& card,
71 autofill::AutofillClient::UnmaskCardReason reason, 71 autofill::AutofillClient::UnmaskCardReason reason,
72 base::WeakPtr<autofill::CardUnmaskDelegate> delegate) override; 72 base::WeakPtr<autofill::CardUnmaskDelegate> delegate) override;
(...skipping 22 matching lines...) Expand all
95 base::WeakPtr<autofill::CardUnmaskDelegate> unmask_delegate_; 95 base::WeakPtr<autofill::CardUnmaskDelegate> unmask_delegate_;
96 96
97 base::WeakPtrFactory<CvcUnmaskViewController> weak_ptr_factory_; 97 base::WeakPtrFactory<CvcUnmaskViewController> weak_ptr_factory_;
98 98
99 DISALLOW_COPY_AND_ASSIGN(CvcUnmaskViewController); 99 DISALLOW_COPY_AND_ASSIGN(CvcUnmaskViewController);
100 }; 100 };
101 101
102 } // namespace payments 102 } // namespace payments
103 103
104 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_CVC_UNMASK_VIEW_CONTROLLER_H_ 104 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_CVC_UNMASK_VIEW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/cvc_unmask_view_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698