Index: components/autofill/core/browser/autofill_manager.h |
diff --git a/components/autofill/core/browser/autofill_manager.h b/components/autofill/core/browser/autofill_manager.h |
index 856be0e989ba737b169f5ee3db628941cfe3cd1a..ec5a1a6ee5e4f386b1319f8202dfef900ce4fd3c 100644 |
--- a/components/autofill/core/browser/autofill_manager.h |
+++ b/components/autofill/core/browser/autofill_manager.h |
@@ -84,6 +84,20 @@ class AutofillManager : public AutofillDownloadManager::Observer { |
void ShowAutofillSettings(); |
+#if defined(OS_MACOSX) |
+ // Whether Chromium has prompted the user for permission to access the user's |
+ // address book. |
+ bool HasPromptedForAccessToAddressBook(); |
+ // Whether the field represented by |fieldData| supports autofill from the |
+ // user's address book. |
+ bool FieldSupportsAddressBookAutofill(const FormData& data, |
+ const FormFieldData& fieldData); |
+ // If Chromium has not prompted for access to the user's address book, the |
+ // method prompts the user for permission and blocks the process. Otherwise, |
+ // this method has no effect. |
+ void AccessAddressBook(); |
+#endif // defined(OS_MACOSX) |
+ |
// Called from our external delegate so they cannot be private. |
virtual void FillOrPreviewForm(AutofillDriver::RendererFormDataAction action, |
int query_id, |