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

Side by Side Diff: components/autofill/core/browser/autofill_manager.h

Issue 286243002: Mac: Autofill should not immediately request access to address book. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a missing abstract method override to a test class. Created 6 years, 6 months 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 unified diff | Download patch
OLDNEW
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 autofill::AutofillManagerDelegate* delegate, 77 autofill::AutofillManagerDelegate* delegate,
78 const std::string& app_locale, 78 const std::string& app_locale,
79 AutofillDownloadManagerState enable_download_manager); 79 AutofillDownloadManagerState enable_download_manager);
80 virtual ~AutofillManager(); 80 virtual ~AutofillManager();
81 81
82 // Sets an external delegate. 82 // Sets an external delegate.
83 void SetExternalDelegate(AutofillExternalDelegate* delegate); 83 void SetExternalDelegate(AutofillExternalDelegate* delegate);
84 84
85 void ShowAutofillSettings(); 85 void ShowAutofillSettings();
86 86
87 #if defined(OS_MACOSX) && !defined(OS_IOS)
88 // Whether the field represented by |fieldData| should show an entry to prompt
89 // the user to give Chrome access to the user's address book.
90 bool ShouldShowAccessAddressBookSuggestion(const FormData& data,
91 const FormFieldData& field_data);
92
93 // If Chrome has not prompted for access to the user's address book, the
94 // method prompts the user for permission and blocks the process. Otherwise,
95 // this method has no effect. The return value reflects whether the user was
96 // prompted with a modal dialog.
97 bool AccessAddressBook();
98 #endif // defined(OS_MACOSX) && !defined(OS_IOS)
99
87 // Called from our external delegate so they cannot be private. 100 // Called from our external delegate so they cannot be private.
88 virtual void FillOrPreviewForm(AutofillDriver::RendererFormDataAction action, 101 virtual void FillOrPreviewForm(AutofillDriver::RendererFormDataAction action,
89 int query_id, 102 int query_id,
90 const FormData& form, 103 const FormData& form,
91 const FormFieldData& field, 104 const FormFieldData& field,
92 int unique_id); 105 int unique_id);
93 void DidShowSuggestions(bool is_new_popup); 106 void DidShowSuggestions(bool is_new_popup);
94 void OnDidFillAutofillFormData(const base::TimeTicks& timestamp); 107 void OnDidFillAutofillFormData(const base::TimeTicks& timestamp);
95 void OnDidPreviewAutofillFormData(); 108 void OnDidPreviewAutofillFormData();
96 109
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 UserHappinessFormLoadAndSubmission); 370 UserHappinessFormLoadAndSubmission);
358 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); 371 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction);
359 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, 372 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest,
360 FormSubmittedAutocompleteEnabled); 373 FormSubmittedAutocompleteEnabled);
361 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 374 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
362 }; 375 };
363 376
364 } // namespace autofill 377 } // namespace autofill
365 378
366 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ 379 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_external_delegate.cc ('k') | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698