| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // Whether the field represented by |fieldData| should show an entry to prompt | 92 // Whether the field represented by |fieldData| should show an entry to prompt |
| 93 // the user to give Chrome access to the user's address book. | 93 // the user to give Chrome access to the user's address book. |
| 94 bool ShouldShowAccessAddressBookSuggestion(const FormData& data, | 94 bool ShouldShowAccessAddressBookSuggestion(const FormData& data, |
| 95 const FormFieldData& field_data); | 95 const FormFieldData& field_data); |
| 96 | 96 |
| 97 // If Chrome has not prompted for access to the user's address book, the | 97 // If Chrome has not prompted for access to the user's address book, the |
| 98 // method prompts the user for permission and blocks the process. Otherwise, | 98 // method prompts the user for permission and blocks the process. Otherwise, |
| 99 // this method has no effect. The return value reflects whether the user was | 99 // this method has no effect. The return value reflects whether the user was |
| 100 // prompted with a modal dialog. | 100 // prompted with a modal dialog. |
| 101 bool AccessAddressBook(); | 101 bool AccessAddressBook(); |
| 102 |
| 103 // The access Address Book prompt was shown for a form. |
| 104 void ShowedAccessAddressBookPrompt(); |
| 105 |
| 106 // The number of times that the access address book prompt was shown. |
| 107 int AccessAddressBookPromptCount(); |
| 102 #endif // defined(OS_MACOSX) && !defined(OS_IOS) | 108 #endif // defined(OS_MACOSX) && !defined(OS_IOS) |
| 103 | 109 |
| 104 // Called from our external delegate so they cannot be private. | 110 // Called from our external delegate so they cannot be private. |
| 105 virtual void FillOrPreviewForm(AutofillDriver::RendererFormDataAction action, | 111 virtual void FillOrPreviewForm(AutofillDriver::RendererFormDataAction action, |
| 106 int query_id, | 112 int query_id, |
| 107 const FormData& form, | 113 const FormData& form, |
| 108 const FormFieldData& field, | 114 const FormFieldData& field, |
| 109 int unique_id); | 115 int unique_id); |
| 110 void DidShowSuggestions(bool is_new_popup); | 116 void DidShowSuggestions(bool is_new_popup); |
| 111 void OnDidFillAutofillFormData(const base::TimeTicks& timestamp); | 117 void OnDidFillAutofillFormData(const base::TimeTicks& timestamp); |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 UserHappinessFormLoadAndSubmission); | 378 UserHappinessFormLoadAndSubmission); |
| 373 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 379 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
| 374 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 380 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 375 FormSubmittedAutocompleteEnabled); | 381 FormSubmittedAutocompleteEnabled); |
| 376 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 382 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 377 }; | 383 }; |
| 378 | 384 |
| 379 } // namespace autofill | 385 } // namespace autofill |
| 380 | 386 |
| 381 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 387 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| OLD | NEW |