| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 virtual void OnFillAutofillFormData(int query_id, | 85 virtual void OnFillAutofillFormData(int query_id, |
| 86 const webkit::forms::FormData& form, | 86 const webkit::forms::FormData& form, |
| 87 const webkit::forms::FormField& field, | 87 const webkit::forms::FormField& field, |
| 88 int unique_id); | 88 int unique_id); |
| 89 void OnDidShowAutofillSuggestions(bool is_new_popup); | 89 void OnDidShowAutofillSuggestions(bool is_new_popup); |
| 90 void OnDidFillAutofillFormData(const base::TimeTicks& timestamp); | 90 void OnDidFillAutofillFormData(const base::TimeTicks& timestamp); |
| 91 void OnShowAutofillDialog(); | 91 void OnShowAutofillDialog(); |
| 92 void OnDidPreviewAutofillFormData(); | 92 void OnDidPreviewAutofillFormData(); |
| 93 void OnShowPasswordGenerationPopup(const gfx::Rect& bounds); | 93 void OnShowPasswordGenerationPopup(const gfx::Rect& bounds); |
| 94 | 94 |
| 95 // Remove the credit card or Autofill profile that matches |unique_id| |
| 96 // from the database. |
| 97 void RemoveAutofillProfileOrCreditCard(int unique_id); |
| 98 |
| 95 protected: | 99 protected: |
| 96 // Only test code should subclass AutofillManager. | 100 // Only test code should subclass AutofillManager. |
| 97 friend class base::RefCounted<AutofillManager>; | 101 friend class base::RefCounted<AutofillManager>; |
| 98 virtual ~AutofillManager(); | 102 virtual ~AutofillManager(); |
| 99 | 103 |
| 100 // The string/int pair is composed of the guid string and variant index | 104 // The string/int pair is composed of the guid string and variant index |
| 101 // respectively. The variant index is an index into the multi-valued item | 105 // respectively. The variant index is an index into the multi-valued item |
| 102 // (where applicable). | 106 // (where applicable). |
| 103 typedef std::pair<std::string, size_t> GUIDPair; | 107 typedef std::pair<std::string, size_t> GUIDPair; |
| 104 | 108 |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 TestTabContentsWithExternalDelegate); | 379 TestTabContentsWithExternalDelegate); |
| 376 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, | 380 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, |
| 377 UserHappinessFormLoadAndSubmission); | 381 UserHappinessFormLoadAndSubmission); |
| 378 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 382 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
| 379 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration); | 383 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration); |
| 380 | 384 |
| 381 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 385 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 382 }; | 386 }; |
| 383 | 387 |
| 384 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 388 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
| OLD | NEW |