OLD | NEW |
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_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <memory> | 10 #include <memory> |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 IdentityProvider* GetIdentityProvider() override; | 280 IdentityProvider* GetIdentityProvider() override; |
281 void OnDidGetRealPan(AutofillClient::PaymentsRpcResult result, | 281 void OnDidGetRealPan(AutofillClient::PaymentsRpcResult result, |
282 const std::string& real_pan) override; | 282 const std::string& real_pan) override; |
283 void OnDidGetUploadDetails( | 283 void OnDidGetUploadDetails( |
284 AutofillClient::PaymentsRpcResult result, | 284 AutofillClient::PaymentsRpcResult result, |
285 const base::string16& context_token, | 285 const base::string16& context_token, |
286 std::unique_ptr<base::DictionaryValue> legal_message) override; | 286 std::unique_ptr<base::DictionaryValue> legal_message) override; |
287 void OnDidUploadCard(AutofillClient::PaymentsRpcResult result) override; | 287 void OnDidUploadCard(AutofillClient::PaymentsRpcResult result) override; |
288 | 288 |
289 // FullCardRequest::Delegate: | 289 // FullCardRequest::Delegate: |
290 void OnFullCardDetails(const CreditCard& card, | 290 void OnFullCardRequestSucceeded(const CreditCard& card, |
291 const base::string16& cvc) override; | 291 const base::string16& cvc) override; |
292 void OnFullCardError() override; | 292 void OnFullCardRequestFailed() override; |
293 | 293 |
294 // Sets |user_did_accept_upload_prompt_| and calls UploadCard if the risk data | 294 // Sets |user_did_accept_upload_prompt_| and calls UploadCard if the risk data |
295 // is available. | 295 // is available. |
296 void OnUserDidAcceptUpload(); | 296 void OnUserDidAcceptUpload(); |
297 | 297 |
298 // Saves risk data in |uploading_risk_data_| and calls UploadCard if the user | 298 // Saves risk data in |uploading_risk_data_| and calls UploadCard if the user |
299 // has accepted the prompt. | 299 // has accepted the prompt. |
300 void OnDidGetUploadRiskData(const std::string& risk_data); | 300 void OnDidGetUploadRiskData(const std::string& risk_data); |
301 | 301 |
302 // Returns false if Autofill is disabled or if no Autofill data is available. | 302 // Returns false if Autofill is disabled or if no Autofill data is available. |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 585 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
586 OnLoadedServerPredictions_ResetManager); | 586 OnLoadedServerPredictions_ResetManager); |
587 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard); | 587 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard); |
588 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); | 588 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); |
589 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 589 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
590 }; | 590 }; |
591 | 591 |
592 } // namespace autofill | 592 } // namespace autofill |
593 | 593 |
594 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 594 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
OLD | NEW |