| 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 57a19de4aef4d6b53afd3b5bb42735c555df6272..2893ca7f1eab7f24599c7f593a2d09d8b5885d5c 100644
|
| --- a/chrome/browser/ui/autofill/chrome_autofill_client.h
|
| +++ b/chrome/browser/ui/autofill/chrome_autofill_client.h
|
| @@ -22,6 +22,7 @@ class WebContents;
|
| namespace autofill {
|
|
|
| class AutofillDialogController;
|
| +class AutofillKeystoneBridgeWrapper;
|
| class AutofillPopupControllerImpl;
|
| struct FormData;
|
|
|
| @@ -81,6 +82,15 @@ class ChromeAutofillClient
|
| }
|
|
|
| private:
|
| +#if defined(OS_MACOSX) && !defined(OS_IOS)
|
| + // Creates |bridge_wrapper_|, which is responsible for dealing with Keystone
|
| + // notifications.
|
| + void RegisterForKeystoneNotifications();
|
| +
|
| + // Deletes |bridge_wrapper_|.
|
| + void UnregisterFromKeystoneNotifications();
|
| +#endif // defined(OS_MACOSX) && !defined(OS_IOS)
|
| +
|
| explicit ChromeAutofillClient(content::WebContents* web_contents);
|
| friend class content::WebContentsUserData<ChromeAutofillClient>;
|
|
|
| @@ -88,6 +98,17 @@ class ChromeAutofillClient
|
| base::WeakPtr<AutofillDialogController> dialog_controller_;
|
| base::WeakPtr<AutofillPopupControllerImpl> popup_controller_;
|
|
|
| +#if defined(OS_MACOSX) && !defined(OS_IOS)
|
| + // Listens to Keystone notifications and passes relevant ones on to the
|
| + // PersonalDataManager.
|
| + //
|
| + // The class of this member must remain a forward declaration, even in the
|
| + // .cc implementation file, since the class is defined in a Mac-only
|
| + // implementation file. This means that the pointer cannot be wrapped in a
|
| + // scoped_ptr.
|
| + AutofillKeystoneBridgeWrapper* bridge_wrapper_;
|
| +#endif // defined(OS_MACOSX) && !defined(OS_IOS)
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient);
|
| };
|
|
|
|
|