Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Side by Side Diff: components/autofill/core/browser/webdata/autofill_entry.h

Issue 2624883002: [Sync] ApplySyncChanges autofill implementation. (Closed)
Patch Set: More updates for Max's comments. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698