| 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_WEBDATA_AUTOFILL_CHANGE_H__ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_CHANGE_H__ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_CHANGE_H__ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_CHANGE_H__ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "components/autofill/core/browser/webdata/autofill_entry.h" | 10 #include "components/autofill/core/browser/webdata/autofill_entry.h" |
| 11 | 11 |
| 12 namespace autofill { | 12 namespace autofill { |
| 13 | 13 |
| 14 class AutofillProfile; | 14 class AutofillProfile; |
| 15 class CreditCard; | |
| 16 | 15 |
| 17 // For classic Autofill form fields, the KeyType is AutofillKey. | 16 // For classic Autofill form fields, the KeyType is AutofillKey. |
| 18 // Autofill++ types such as AutofillProfile and CreditCard simply use an int. | 17 // Autofill++ types such as AutofillProfile and CreditCard simply use an int. |
| 19 template <typename KeyType> | 18 template <typename KeyType> |
| 20 class GenericAutofillChange { | 19 class GenericAutofillChange { |
| 21 public: | 20 public: |
| 22 enum Type { | 21 enum Type { |
| 23 ADD, | 22 ADD, |
| 24 UPDATE, | 23 UPDATE, |
| 25 REMOVE | 24 REMOVE |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 bool operator==(const AutofillProfileChange& change) const; | 66 bool operator==(const AutofillProfileChange& change) const; |
| 68 | 67 |
| 69 private: | 68 private: |
| 70 // Weak reference, can be NULL. | 69 // Weak reference, can be NULL. |
| 71 const AutofillProfile* profile_; | 70 const AutofillProfile* profile_; |
| 72 }; | 71 }; |
| 73 | 72 |
| 74 } // namespace autofill | 73 } // namespace autofill |
| 75 | 74 |
| 76 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_CHANGE_H__ | 75 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_CHANGE_H__ |
| OLD | NEW |