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

Unified Diff: chrome/browser/ui/autofill/chrome_autofill_client.h

Issue 796493004: Remove FrameDetached and FrameWillClose listeners from AutofillAgent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove debugging Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/autofill/chrome_autofill_client.h
diff --git a/chrome/browser/ui/autofill/chrome_autofill_client.h b/chrome/browser/ui/autofill/chrome_autofill_client.h
index c0a3be3f55870f58e6b0729f1b185b123a2cf95a..26330005ed95cf6cd51735eebfd5763ccce03fee 100644
--- a/chrome/browser/ui/autofill/chrome_autofill_client.h
+++ b/chrome/browser/ui/autofill/chrome_autofill_client.h
@@ -54,9 +54,10 @@ class ChromeAutofillClient
void ConfirmSaveCreditCard(const base::Closure& save_card_callback) override;
bool HasCreditCardScanFeature() override;
void ScanCreditCard(const CreditCardScanCallback& callback) override;
- void ShowRequestAutocompleteDialog(const FormData& form,
- const GURL& source_url,
- const ResultCallback& callback) override;
+ void ShowRequestAutocompleteDialog(
+ const FormData& form,
+ content::RenderFrameHost* render_frame_host,
+ const ResultCallback& callback) override;
void ShowAutofillPopup(
const gfx::RectF& element_bounds,
base::i18n::TextDirection text_direction,
@@ -75,6 +76,7 @@ class ChromeAutofillClient
void OnFirstUserGestureObserved() override;
// content::WebContentsObserver implementation.
+ void RenderFrameDeleted(content::RenderFrameHost* rfh) override;
void WebContentsDestroyed() override;
// ZoomObserver implementation.
@@ -125,6 +127,9 @@ class ChromeAutofillClient
AutofillKeystoneBridgeWrapper* bridge_wrapper_;
#endif // defined(OS_MACOSX) && !defined(OS_IOS)
+ // The last render frame that called requestAutocomplete.
+ content::RenderFrameHost* last_rfh_to_rac_;
+
CardUnmaskPromptView* card_unmask_view_;
base::WeakPtrFactory<ChromeAutofillClient> weak_pointer_factory_;

Powered by Google App Engine
This is Rietveld 408576698