diff options
author | skrul@chromium.org <skrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-23 17:36:34 +0000 |
---|---|---|
committer | skrul@chromium.org <skrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-23 17:36:34 +0000 |
commit | b30cc9b857649093b7a64580fb148e5f33e4d9ed (patch) | |
tree | bc37e6ec0cc18e3077ba38d33f9043c223eb4daf /chrome/browser/webdata/autofill_entry.h | |
parent | 0d042152a8807390262609f20c04ba26773f1d7c (diff) | |
download | chromium_src-b30cc9b857649093b7a64580fb148e5f33e4d9ed.zip chromium_src-b30cc9b857649093b7a64580fb148e5f33e4d9ed.tar.gz chromium_src-b30cc9b857649093b7a64580fb148e5f33e4d9ed.tar.bz2 |
Landing this patch on behalf of Mark Hahnenberg <mhahnenb(at)gmail.com>
Added a vector of Time objects to the AutofillEntry object for storingthe results retrieved from the date_created field of the autofill_datestable corresponding to the AutofillKey retrieved from the autofill table.
Also modified the old GetAllAutofillEntries test to account for this newlystored data.
BUG=35230
TEST=WebDatabaseTest.GetAllAutofillEntries
Review URL: http://codereview.chromium.org/600070
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39742 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/webdata/autofill_entry.h')
-rw-r--r-- | chrome/browser/webdata/autofill_entry.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/chrome/browser/webdata/autofill_entry.h b/chrome/browser/webdata/autofill_entry.h index add7201..850f93b 100644 --- a/chrome/browser/webdata/autofill_entry.h +++ b/chrome/browser/webdata/autofill_entry.h @@ -5,7 +5,9 @@ #ifndef CHROME_BROWSER_WEBDATA_AUTOFILL_ENTRY_H__ #define CHROME_BROWSER_WEBDATA_AUTOFILL_ENTRY_H__ +#include <vector> #include "base/string16.h" +#include "base/time.h" class AutofillKey { public: @@ -29,13 +31,19 @@ class AutofillKey { class AutofillEntry { public: - explicit AutofillEntry(const AutofillKey& key) : key_(key) {} + AutofillEntry(const AutofillKey& key, + const std::vector<base::Time>& timestamps) + : key_(key), + timestamps_(timestamps) {} const AutofillKey& key() const { return key_; } + const std::vector<base::Time>& timestamps() const { return timestamps_; } bool operator==(const AutofillEntry& entry) const; + private: AutofillKey key_; + std::vector<base::Time> timestamps_; }; #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_ENTRY_H__ |