| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <vector> | 9 #include <vector> |
| 9 | 10 |
| 10 #include "base/callback.h" | 11 #include "base/callback.h" |
| 11 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 12 #include "base/i18n/rtl.h" | 13 #include "base/i18n/rtl.h" |
| 13 #include "base/macros.h" | 14 #include "base/macros.h" |
| 14 #include "base/memory/scoped_ptr.h" | |
| 15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "components/autofill/core/browser/autofill_client.h" | 16 #include "components/autofill/core/browser/autofill_client.h" |
| 17 #include "components/autofill/core/browser/ui/card_unmask_prompt_controller_impl
.h" | 17 #include "components/autofill/core/browser/ui/card_unmask_prompt_controller_impl
.h" |
| 18 #include "components/ui/zoom/zoom_observer.h" | 18 #include "components/ui/zoom/zoom_observer.h" |
| 19 #include "content/public/browser/web_contents_observer.h" | 19 #include "content/public/browser/web_contents_observer.h" |
| 20 #include "content/public/browser/web_contents_user_data.h" | 20 #include "content/public/browser/web_contents_user_data.h" |
| 21 | 21 |
| 22 namespace content { | 22 namespace content { |
| 23 struct FrameNavigateParams; | 23 struct FrameNavigateParams; |
| 24 struct LoadCommittedDetails; | 24 struct LoadCommittedDetails; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 53 rappor::RapporService* GetRapporService() override; | 53 rappor::RapporService* GetRapporService() override; |
| 54 void HideRequestAutocompleteDialog() override; | 54 void HideRequestAutocompleteDialog() override; |
| 55 void ShowAutofillSettings() override; | 55 void ShowAutofillSettings() override; |
| 56 void ShowUnmaskPrompt(const CreditCard& card, | 56 void ShowUnmaskPrompt(const CreditCard& card, |
| 57 base::WeakPtr<CardUnmaskDelegate> delegate) override; | 57 base::WeakPtr<CardUnmaskDelegate> delegate) override; |
| 58 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; | 58 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; |
| 59 void ConfirmSaveCreditCardLocally(const CreditCard& card, | 59 void ConfirmSaveCreditCardLocally(const CreditCard& card, |
| 60 const base::Closure& callback) override; | 60 const base::Closure& callback) override; |
| 61 void ConfirmSaveCreditCardToCloud( | 61 void ConfirmSaveCreditCardToCloud( |
| 62 const CreditCard& card, | 62 const CreditCard& card, |
| 63 scoped_ptr<base::DictionaryValue> legal_message, | 63 std::unique_ptr<base::DictionaryValue> legal_message, |
| 64 const base::Closure& callback) override; | 64 const base::Closure& callback) override; |
| 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 bool HasCreditCardScanFeature() override; | 67 bool HasCreditCardScanFeature() override; |
| 68 void ScanCreditCard(const CreditCardScanCallback& callback) override; | 68 void ScanCreditCard(const CreditCardScanCallback& callback) override; |
| 69 void ShowRequestAutocompleteDialog( | 69 void ShowRequestAutocompleteDialog( |
| 70 const FormData& form, | 70 const FormData& form, |
| 71 content::RenderFrameHost* render_frame_host, | 71 content::RenderFrameHost* render_frame_host, |
| 72 const ResultCallback& callback) override; | 72 const ResultCallback& callback) override; |
| 73 void ShowAutofillPopup( | 73 void ShowAutofillPopup( |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 friend class content::WebContentsUserData<ChromeAutofillClient>; | 115 friend class content::WebContentsUserData<ChromeAutofillClient>; |
| 116 | 116 |
| 117 base::WeakPtr<AutofillDialogController> dialog_controller_; | 117 base::WeakPtr<AutofillDialogController> dialog_controller_; |
| 118 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; | 118 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; |
| 119 CardUnmaskPromptControllerImpl unmask_controller_; | 119 CardUnmaskPromptControllerImpl unmask_controller_; |
| 120 | 120 |
| 121 // The last render frame that called requestAutocomplete. | 121 // The last render frame that called requestAutocomplete. |
| 122 content::RenderFrameHost* last_rfh_to_rac_; | 122 content::RenderFrameHost* last_rfh_to_rac_; |
| 123 | 123 |
| 124 // The identity provider, used for Payments integration. | 124 // The identity provider, used for Payments integration. |
| 125 scoped_ptr<IdentityProvider> identity_provider_; | 125 std::unique_ptr<IdentityProvider> identity_provider_; |
| 126 | 126 |
| 127 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); | 127 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 } // namespace autofill | 130 } // namespace autofill |
| 131 | 131 |
| 132 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ | 132 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ |
| OLD | NEW |