virtual ~AutofillExternalDelegate();
// AutofillPopupDelegate implementation.
- virtual void OnPopupShown() OVERRIDE;
- virtual void OnPopupHidden() OVERRIDE;
- virtual void DidSelectSuggestion(const base::string16& value,
- int identifier) OVERRIDE;
- virtual void DidAcceptSuggestion(const base::string16& value,
- int identifier) OVERRIDE;
- virtual void RemoveSuggestion(const base::string16& value,
- int identifier) OVERRIDE;
- virtual void ClearPreviewedForm() OVERRIDE;
+ void OnPopupShown() override;
+ void OnPopupHidden() override;
+ void DidSelectSuggestion(const base::string16& value,
+ int identifier) override;
+ void DidAcceptSuggestion(const base::string16& value,
+ int identifier) override;
+ void RemoveSuggestion(const base::string16& value, int identifier) override;
+ void ClearPreviewedForm() override;
// Records and associates a query_id with web form data. Called
// when the renderer posts an Autofill query to the browser. |bounds|
// values or settings.
void Reset();
+ // The renderer sent an IPC acknowledging an earlier ping IPC.
+ void OnPingAck();
+
protected:
base::WeakPtr<AutofillExternalDelegate> GetWeakPtr();
std::vector<base::string16>* icons,
std::vector<int>* unique_ids);
+#if defined(OS_MACOSX) && !defined(OS_IOS)
+ // Pings the renderer.
+ void PingRenderer();
+#endif // defined(OS_MACOSX) && !defined(OS_IOS)
+
AutofillManager* manager_; // weak.
// Provides driver-level context to the shared code of the component. Must
std::vector<base::string16> data_list_values_;
std::vector<base::string16> data_list_labels_;
+ // Whether the access Address Book prompt has ever been shown for the current
+ // |query_form_|. This variable is only used on OSX.
+ bool has_shown_address_book_prompt;
+
base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate);