Index: chrome/browser/webdata/autofill_table.h |
diff --git a/chrome/browser/webdata/autofill_table.h b/chrome/browser/webdata/autofill_table.h |
index ded8c012f612ec5eecacbb0a5cdc0f6f977d1ea3..6418d96c29f5e56b0ef3c31a1882f28374d79713 100644 |
--- a/chrome/browser/webdata/autofill_table.h |
+++ b/chrome/browser/webdata/autofill_table.h |
@@ -18,6 +18,10 @@ class AutofillProfile; |
class AutofillTableTest; |
class CreditCard; |
+namespace base { |
+class Time; |
groby-ooo-7-16
2011/08/09 18:17:33
Are these changes related to the check-in at all?
James Hawkins
2011/08/09 18:39:03
Indirectly. They were required by an iwyu change I
|
+} |
+ |
namespace webkit_glue { |
struct FormField; |
} |
@@ -142,15 +146,15 @@ class AutofillTable : public WebDatabaseTable { |
// removes those rows if the count goes to 0. A list of all changed |
// keys and whether each was updater or removed is returned in the |
// changes out parameter. |
- bool RemoveFormElementsAddedBetween(base::Time delete_begin, |
- base::Time delete_end, |
+ bool RemoveFormElementsAddedBetween(const base::Time& delete_begin, |
+ const base::Time& delete_end, |
std::vector<AutofillChange>* changes); |
// Removes from autofill_dates rows with given pair_id where date_created lies |
// between delte_begin and delte_end. |
bool RemoveFormElementForTimeRange(int64 pair_id, |
- base::Time delete_begin, |
- base::Time delete_end, |
+ const base::Time& delete_begin, |
+ const base::Time& delete_end, |
int* how_many); |
// Increments the count in the row corresponding to |pair_id| by |
@@ -176,7 +180,7 @@ class AutofillTable : public WebDatabaseTable { |
bool InsertFormElement(const webkit_glue::FormField& element, int64* pair_id); |
// Adds a new row to the autofill_dates table. |
- bool InsertPairIDAndDate(int64 pair_id, base::Time date_created); |
+ bool InsertPairIDAndDate(int64 pair_id, const base::Time& date_created); |
// Removes row from the autofill tables given |pair_id|. |
bool RemoveFormElementForID(int64 pair_id); |
@@ -189,8 +193,8 @@ class AutofillTable : public WebDatabaseTable { |
// Retrieves a single entry from the autofill table. |
virtual bool GetAutofillTimestamps(const string16& name, |
- const string16& value, |
- std::vector<base::Time>* timestamps); |
+ const string16& value, |
+ std::vector<base::Time>* timestamps); |
// Replaces existing autofill entries with the entries supplied in |
// the argument. If the entry does not already exist, it will be |
@@ -239,8 +243,8 @@ class AutofillTable : public WebDatabaseTable { |
// on or after |delete_begin| and strictly before |delete_end|. Returns lists |
// of deleted guids in |profile_guids| and |credit_card_guids|. |
bool RemoveAutofillProfilesAndCreditCardsModifiedBetween( |
- base::Time delete_begin, |
- base::Time delete_end, |
+ const base::Time& delete_begin, |
+ const base::Time& delete_end, |
std::vector<std::string>* profile_guids, |
std::vector<std::string>* credit_card_guids); |