| 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> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/callback_forward.h" | 14 #include "base/callback_forward.h" |
| 15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
| 16 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
| 17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
| 18 #include "base/memory/scoped_vector.h" | 18 #include "base/memory/scoped_vector.h" |
| 19 #include "base/memory/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
| 20 #include "base/strings/string16.h" | 20 #include "base/strings/string16.h" |
| 21 #include "base/time/time.h" | 21 #include "base/time/time.h" |
| 22 #include "components/autofill/core/browser/autocomplete_history_manager.h" | 22 #include "components/autofill/core/browser/autocomplete_history_manager.h" |
| 23 #include "components/autofill/core/browser/autofill_client.h" | 23 #include "components/autofill/core/browser/autofill_client.h" |
| 24 #include "components/autofill/core/browser/autofill_download_manager.h" | 24 #include "components/autofill/core/browser/autofill_download_manager.h" |
| 25 #include "components/autofill/core/browser/autofill_driver.h" | 25 #include "components/autofill/core/browser/autofill_driver.h" |
| 26 #include "components/autofill/core/browser/form_structure.h" | 26 #include "components/autofill/core/browser/form_structure.h" |
| 27 #include "components/autofill/core/browser/personal_data_manager.h" | 27 #include "components/autofill/core/browser/personal_data_manager.h" |
| 28 #include "components/autofill/core/common/form_data.h" | 28 #include "components/autofill/core/common/form_data.h" |
| 29 | 29 |
| 30 class GURL; | |
| 31 | |
| 32 namespace content { | |
| 33 class RenderViewHost; | |
| 34 class WebContents; | |
| 35 } | |
| 36 | |
| 37 namespace gfx { | 30 namespace gfx { |
| 38 class Rect; | 31 class Rect; |
| 39 class RectF; | 32 class RectF; |
| 40 } | 33 } |
| 41 | 34 |
| 42 namespace user_prefs { | 35 namespace user_prefs { |
| 43 class PrefRegistrySyncable; | 36 class PrefRegistrySyncable; |
| 44 } | 37 } |
| 45 | 38 |
| 46 namespace autofill { | 39 namespace autofill { |
| 47 | 40 |
| 48 class AutofillDataModel; | 41 class AutofillDataModel; |
| 49 class AutofillDownloadManager; | 42 class AutofillDownloadManager; |
| 50 class AutofillExternalDelegate; | 43 class AutofillExternalDelegate; |
| 51 class AutofillField; | 44 class AutofillField; |
| 52 class AutofillClient; | 45 class AutofillClient; |
| 53 class AutofillManagerTestDelegate; | 46 class AutofillManagerTestDelegate; |
| 54 class AutofillMetrics; | 47 class AutofillMetrics; |
| 55 class AutofillProfile; | 48 class AutofillProfile; |
| 56 class AutofillType; | 49 class AutofillType; |
| 57 class CreditCard; | 50 class CreditCard; |
| 58 class FormStructureBrowserTest; | 51 class FormStructureBrowserTest; |
| 59 | 52 |
| 60 struct FormData; | 53 struct FormData; |
| 61 struct FormFieldData; | 54 struct FormFieldData; |
| 62 struct PasswordFormFillData; | |
| 63 | 55 |
| 64 // Manages saving and restoring the user's personal information entered into web | 56 // Manages saving and restoring the user's personal information entered into web |
| 65 // forms. | 57 // forms. |
| 66 class AutofillManager : public AutofillDownloadManager::Observer { | 58 class AutofillManager : public AutofillDownloadManager::Observer { |
| 67 public: | 59 public: |
| 68 enum AutofillDownloadManagerState { | 60 enum AutofillDownloadManagerState { |
| 69 ENABLE_AUTOFILL_DOWNLOAD_MANAGER, | 61 ENABLE_AUTOFILL_DOWNLOAD_MANAGER, |
| 70 DISABLE_AUTOFILL_DOWNLOAD_MANAGER, | 62 DISABLE_AUTOFILL_DOWNLOAD_MANAGER, |
| 71 }; | 63 }; |
| 72 | 64 |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 UserHappinessFormLoadAndSubmission); | 372 UserHappinessFormLoadAndSubmission); |
| 381 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 373 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
| 382 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 374 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 383 FormSubmittedAutocompleteEnabled); | 375 FormSubmittedAutocompleteEnabled); |
| 384 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 376 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 385 }; | 377 }; |
| 386 | 378 |
| 387 } // namespace autofill | 379 } // namespace autofill |
| 388 | 380 |
| 389 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 381 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| OLD | NEW |