| 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 <string> |
| 9 |
| 8 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 9 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 10 | 12 |
| 11 namespace autofill { | 13 namespace autofill { |
| 12 | 14 |
| 13 class AutofillKey { | 15 class AutofillKey { |
| 14 public: | 16 public: |
| 15 AutofillKey(); | 17 AutofillKey(); |
| 16 AutofillKey(const base::string16& name, const base::string16& value); | 18 AutofillKey(const base::string16& name, const base::string16& value); |
| 17 AutofillKey(const char* name, const char* value); | 19 AutofillKey(const std::string& name, const std::string& value); |
| 18 AutofillKey(const AutofillKey& key); | 20 AutofillKey(const AutofillKey& key); |
| 19 virtual ~AutofillKey(); | 21 virtual ~AutofillKey(); |
| 20 | 22 |
| 21 const base::string16& name() const { return name_; } | 23 const base::string16& name() const { return name_; } |
| 22 const base::string16& value() const { return value_; } | 24 const base::string16& value() const { return value_; } |
| 23 | 25 |
| 24 bool operator==(const AutofillKey& key) const; | 26 bool operator==(const AutofillKey& key) const; |
| 25 bool operator<(const AutofillKey& key) const; | 27 bool operator<(const AutofillKey& key) const; |
| 26 | 28 |
| 27 private: | 29 private: |
| (...skipping 19 matching lines...) Expand all Loading... |
| 47 | 49 |
| 48 private: | 50 private: |
| 49 AutofillKey key_; | 51 AutofillKey key_; |
| 50 base::Time date_created_; | 52 base::Time date_created_; |
| 51 base::Time date_last_used_; | 53 base::Time date_last_used_; |
| 52 }; | 54 }; |
| 53 | 55 |
| 54 } // namespace autofill | 56 } // namespace autofill |
| 55 | 57 |
| 56 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_ENTRY_H__ | 58 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_ENTRY_H__ |
| OLD | NEW |