| 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 COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ |
| 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ | 6 #define COMPONENTS_AUTOFILL_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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 class FormStructureBrowserTest; | 68 class FormStructureBrowserTest; |
| 69 class FormGroup; | 69 class FormGroup; |
| 70 class PasswordGenerator; | 70 class PasswordGenerator; |
| 71 | 71 |
| 72 struct FormData; | 72 struct FormData; |
| 73 struct FormFieldData; | 73 struct FormFieldData; |
| 74 struct PasswordFormFillData; | 74 struct PasswordFormFillData; |
| 75 | 75 |
| 76 // Manages saving and restoring the user's personal information entered into web | 76 // Manages saving and restoring the user's personal information entered into web |
| 77 // forms. | 77 // forms. |
| 78 class AutofillManager : public content::WebContentsObserver, | 78 class AUTOFILL_EXPORT AutofillManager |
| 79 public AutofillDownloadManager::Observer, | 79 : public content::WebContentsObserver, |
| 80 public base::SupportsUserData::Data { | 80 NON_EXPORTED_BASE(public AutofillDownloadManager::Observer), |
| 81 public base::SupportsUserData::Data { |
| 81 public: | 82 public: |
| 82 static void CreateForWebContentsAndDelegate( | 83 static void CreateForWebContentsAndDelegate( |
| 83 content::WebContents* contents, | 84 content::WebContents* contents, |
| 84 autofill::AutofillManagerDelegate* delegate, | 85 autofill::AutofillManagerDelegate* delegate, |
| 85 const std::string& app_locale); | 86 const std::string& app_locale); |
| 86 static AutofillManager* FromWebContents(content::WebContents* contents); | 87 static AutofillManager* FromWebContents(content::WebContents* contents); |
| 87 | 88 |
| 88 // Registers our Enable/Disable Autofill pref. | 89 // Registers our Enable/Disable Autofill pref. |
| 89 static void RegisterUserPrefs(PrefRegistrySyncable* registry); | 90 static void RegisterUserPrefs(PrefRegistrySyncable* registry); |
| 90 | 91 |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, | 462 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, |
| 462 UserHappinessFormLoadAndSubmission); | 463 UserHappinessFormLoadAndSubmission); |
| 463 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 464 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
| 464 | 465 |
| 465 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 466 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 466 }; | 467 }; |
| 467 | 468 |
| 468 } // namespace autofill | 469 } // namespace autofill |
| 469 | 470 |
| 470 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ | 471 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ |
| OLD | NEW |