OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 // Called from our external delegate so they cannot be private. | 87 // Called from our external delegate so they cannot be private. |
88 virtual void OnFillAutofillFormData(int query_id, | 88 virtual void OnFillAutofillFormData(int query_id, |
89 const webkit::forms::FormData& form, | 89 const webkit::forms::FormData& form, |
90 const webkit::forms::FormField& field, | 90 const webkit::forms::FormField& field, |
91 int unique_id); | 91 int unique_id); |
92 void OnDidShowAutofillSuggestions(bool is_new_popup); | 92 void OnDidShowAutofillSuggestions(bool is_new_popup); |
93 void OnDidFillAutofillFormData(const base::TimeTicks& timestamp); | 93 void OnDidFillAutofillFormData(const base::TimeTicks& timestamp); |
94 void OnShowAutofillDialog(); | 94 void OnShowAutofillDialog(); |
95 void OnDidPreviewAutofillFormData(); | 95 void OnDidPreviewAutofillFormData(); |
96 void OnShowPasswordGenerationPopup(const gfx::Rect& bounds); | 96 void OnShowPasswordGenerationPopup(const gfx::Rect& bounds, int max_length); |
97 | 97 |
98 // Remove the credit card or Autofill profile that matches |unique_id| | 98 // Remove the credit card or Autofill profile that matches |unique_id| |
99 // from the database. | 99 // from the database. |
100 void RemoveAutofillProfileOrCreditCard(int unique_id); | 100 void RemoveAutofillProfileOrCreditCard(int unique_id); |
101 | 101 |
102 protected: | 102 protected: |
103 // Only test code should subclass AutofillManager. | 103 // Only test code should subclass AutofillManager. |
104 friend class base::RefCounted<AutofillManager>; | 104 friend class base::RefCounted<AutofillManager>; |
105 virtual ~AutofillManager(); | 105 virtual ~AutofillManager(); |
106 | 106 |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 TestTabContentsWithExternalDelegate); | 389 TestTabContentsWithExternalDelegate); |
390 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, | 390 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, |
391 UserHappinessFormLoadAndSubmission); | 391 UserHappinessFormLoadAndSubmission); |
392 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 392 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
393 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration); | 393 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration); |
394 | 394 |
395 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 395 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
396 }; | 396 }; |
397 | 397 |
398 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 398 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
OLD | NEW |