| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WEBDATA_AUTOFILL_CHANGE_H__ | 5 #ifndef COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_CHANGE_H__ |
| 6 #define CHROME_BROWSER_WEBDATA_AUTOFILL_CHANGE_H__ | 6 #define COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_CHANGE_H__ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "chrome/browser/webdata/autofill_entry.h" | 10 #include "components/webdata/autofill/autofill_entry.h" |
| 11 | 11 |
| 12 class AutofillProfile; | 12 class AutofillProfile; |
| 13 class CreditCard; | 13 class CreditCard; |
| 14 | 14 |
| 15 // For classic Autofill form fields, the KeyType is AutofillKey. | 15 // For classic Autofill form fields, the KeyType is AutofillKey. |
| 16 // Autofill++ types such as AutofillProfile and CreditCard simply use an int. | 16 // Autofill++ types such as AutofillProfile and CreditCard simply use an int. |
| 17 template <typename KeyType> | 17 template <typename KeyType> |
| 18 class GenericAutofillChange { | 18 class GenericAutofillChange { |
| 19 public: | 19 public: |
| 20 typedef enum { | 20 typedef enum { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 virtual ~AutofillProfileChange(); | 62 virtual ~AutofillProfileChange(); |
| 63 | 63 |
| 64 const AutofillProfile* profile() const { return profile_; } | 64 const AutofillProfile* profile() const { return profile_; } |
| 65 bool operator==(const AutofillProfileChange& change) const; | 65 bool operator==(const AutofillProfileChange& change) const; |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 // Weak reference, can be NULL. | 68 // Weak reference, can be NULL. |
| 69 const AutofillProfile* profile_; | 69 const AutofillProfile* profile_; |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_CHANGE_H__ | 72 #endif // COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_CHANGE_H__ |
| OLD | NEW |