| 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_ENTRY_H__ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_ENTRY_H__ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_ENTRY_H__ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_ENTRY_H__ |
| 7 | 7 |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 bool operator==(const AutofillKey& key) const; | 24 bool operator==(const AutofillKey& key) const; |
| 25 bool operator<(const AutofillKey& key) const; | 25 bool operator<(const AutofillKey& key) const; |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 base::string16 name_; | 28 base::string16 name_; |
| 29 base::string16 value_; | 29 base::string16 value_; |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 class AutofillEntry { | 32 class AutofillEntry { |
| 33 public: | 33 public: |
| 34 AutofillEntry(); |
| 34 AutofillEntry(const AutofillKey& key, | 35 AutofillEntry(const AutofillKey& key, |
| 35 const base::Time& date_created, | 36 const base::Time& date_created, |
| 36 const base::Time& date_last_used); | 37 const base::Time& date_last_used); |
| 37 ~AutofillEntry(); | 38 ~AutofillEntry(); |
| 38 | 39 |
| 39 const AutofillKey& key() const { return key_; } | 40 const AutofillKey& key() const { return key_; } |
| 40 const base::Time& date_created() const { return date_created_; } | 41 const base::Time& date_created() const { return date_created_; } |
| 41 const base::Time& date_last_used() const { return date_last_used_; } | 42 const base::Time& date_last_used() const { return date_last_used_; } |
| 42 | 43 |
| 43 bool operator==(const AutofillEntry& entry) const; | 44 bool operator==(const AutofillEntry& entry) const; |
| 45 bool operator!=(const AutofillEntry& entry) const; |
| 44 bool operator<(const AutofillEntry& entry) const; | 46 bool operator<(const AutofillEntry& entry) const; |
| 45 | 47 |
| 46 private: | 48 private: |
| 47 AutofillKey key_; | 49 AutofillKey key_; |
| 48 base::Time date_created_; | 50 base::Time date_created_; |
| 49 base::Time date_last_used_; | 51 base::Time date_last_used_; |
| 50 }; | 52 }; |
| 51 | 53 |
| 52 } // namespace autofill | 54 } // namespace autofill |
| 53 | 55 |
| 54 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_ENTRY_H__ | 56 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_ENTRY_H__ |
| OLD | NEW |