| OLD | NEW |
| 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 #include "chrome/browser/ui/views/payments/cvc_unmask_view_controller.h" | 5 #include "chrome/browser/ui/views/payments/cvc_unmask_view_controller.h" |
| 6 | 6 |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "chrome/browser/autofill/risk_util.h" | 8 #include "chrome/browser/autofill/risk_util.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 10 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 } | 83 } |
| 84 | 84 |
| 85 void CvcUnmaskViewController::OnDidGetUploadDetails( | 85 void CvcUnmaskViewController::OnDidGetUploadDetails( |
| 86 autofill::AutofillClient::PaymentsRpcResult result, | 86 autofill::AutofillClient::PaymentsRpcResult result, |
| 87 const base::string16& context_token, | 87 const base::string16& context_token, |
| 88 std::unique_ptr<base::DictionaryValue> legal_message) { | 88 std::unique_ptr<base::DictionaryValue> legal_message) { |
| 89 NOTIMPLEMENTED(); | 89 NOTIMPLEMENTED(); |
| 90 } | 90 } |
| 91 | 91 |
| 92 void CvcUnmaskViewController::OnDidUploadCard( | 92 void CvcUnmaskViewController::OnDidUploadCard( |
| 93 autofill::AutofillClient::PaymentsRpcResult result) { | 93 autofill::AutofillClient::PaymentsRpcResult result, |
| 94 const std::string& server_id) { |
| 94 NOTIMPLEMENTED(); | 95 NOTIMPLEMENTED(); |
| 95 } | 96 } |
| 96 | 97 |
| 97 void CvcUnmaskViewController::LoadRiskData( | 98 void CvcUnmaskViewController::LoadRiskData( |
| 98 const base::Callback<void(const std::string&)>& callback) { | 99 const base::Callback<void(const std::string&)>& callback) { |
| 99 autofill::LoadRiskData(0, web_contents_, callback); | 100 autofill::LoadRiskData(0, web_contents_, callback); |
| 100 } | 101 } |
| 101 | 102 |
| 102 void CvcUnmaskViewController::ShowUnmaskPrompt( | 103 void CvcUnmaskViewController::ShowUnmaskPrompt( |
| 103 const autofill::CreditCard& card, | 104 const autofill::CreditCard& card, |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 if (unmask_delegate_) { | 193 if (unmask_delegate_) { |
| 193 autofill::CardUnmaskDelegate::UnmaskResponse response; | 194 autofill::CardUnmaskDelegate::UnmaskResponse response; |
| 194 response.cvc = cvc; | 195 response.cvc = cvc; |
| 195 unmask_delegate_->OnUnmaskResponse(response); | 196 unmask_delegate_->OnUnmaskResponse(response); |
| 196 } | 197 } |
| 197 | 198 |
| 198 dialog()->ShowProcessingSpinner(); | 199 dialog()->ShowProcessingSpinner(); |
| 199 } | 200 } |
| 200 | 201 |
| 201 } // namespace payments | 202 } // namespace payments |
| OLD | NEW |