| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 5 #ifndef CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
| 6 #define CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 6 #define CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 // Retrieves all credit cards in the database. Caller owns the returned | 259 // Retrieves all credit cards in the database. Caller owns the returned |
| 260 // credit cards. | 260 // credit cards. |
| 261 virtual bool GetCreditCards(std::vector<CreditCard*>* credit_cards); | 261 virtual bool GetCreditCards(std::vector<CreditCard*>* credit_cards); |
| 262 | 262 |
| 263 // Removes rows from autofill_profiles and credit_cards if they were created | 263 // Removes rows from autofill_profiles and credit_cards if they were created |
| 264 // on or after |delete_begin| and strictly before |delete_end|. Returns lists | 264 // on or after |delete_begin| and strictly before |delete_end|. Returns lists |
| 265 // of deleted guids in |profile_guids| and |credit_card_guids|. Return value | 265 // of deleted guids in |profile_guids| and |credit_card_guids|. Return value |
| 266 // is true if all rows were successfully removed. Returns false on database | 266 // is true if all rows were successfully removed. Returns false on database |
| 267 // error. In that case, the output vector state is undefined, and may be | 267 // error. In that case, the output vector state is undefined, and may be |
| 268 // partially filled. | 268 // partially filled. |
| 269 bool RemoveAutofillProfilesAndCreditCardsModifiedBetween( | 269 bool RemoveAutofillDataModifiedBetween( |
| 270 const base::Time& delete_begin, | 270 const base::Time& delete_begin, |
| 271 const base::Time& delete_end, | 271 const base::Time& delete_end, |
| 272 std::vector<std::string>* profile_guids, | 272 std::vector<std::string>* profile_guids, |
| 273 std::vector<std::string>* credit_card_guids); | 273 std::vector<std::string>* credit_card_guids); |
| 274 | 274 |
| 275 // Retrieves all profiles in the database that have been deleted since last | 275 // Retrieves all profiles in the database that have been deleted since last |
| 276 // "empty" of the trash. | 276 // "empty" of the trash. |
| 277 bool GetAutofillProfilesInTrash(std::vector<std::string>* guids); | 277 bool GetAutofillProfilesInTrash(std::vector<std::string>* guids); |
| 278 | 278 |
| 279 // Empties the Autofill profiles "trash can". | 279 // Empties the Autofill profiles "trash can". |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddChanges); | 311 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddChanges); |
| 312 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_RemoveBetweenChanges); | 312 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_RemoveBetweenChanges); |
| 313 | 313 |
| 314 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_UpdateDontReplace); | 314 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_UpdateDontReplace); |
| 315 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddFormFieldValues); | 315 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, Autofill_AddFormFieldValues); |
| 316 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, AutofillProfile); | 316 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, AutofillProfile); |
| 317 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, UpdateAutofillProfile); | 317 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, UpdateAutofillProfile); |
| 318 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, AutofillProfileTrash); | 318 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, AutofillProfileTrash); |
| 319 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, AutofillProfileTrashInteraction); | 319 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, AutofillProfileTrashInteraction); |
| 320 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, | 320 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, |
| 321 RemoveAutofillProfilesAndCreditCardsModifiedBetween); | 321 RemoveAutofillDataModifiedBetween); |
| 322 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, CreditCard); | 322 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, CreditCard); |
| 323 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, UpdateCreditCard); | 323 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, UpdateCreditCard); |
| 324 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, | 324 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, |
| 325 Autofill_GetAllAutofillEntries_OneResult); | 325 Autofill_GetAllAutofillEntries_OneResult); |
| 326 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, | 326 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, |
| 327 Autofill_GetAllAutofillEntries_TwoDistinct); | 327 Autofill_GetAllAutofillEntries_TwoDistinct); |
| 328 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, | 328 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, |
| 329 Autofill_GetAllAutofillEntries_TwoSame); | 329 Autofill_GetAllAutofillEntries_TwoSame); |
| 330 | 330 |
| 331 // Methods for adding autofill entries at a specified time. For | 331 // Methods for adding autofill entries at a specified time. For |
| (...skipping 21 matching lines...) Expand all Loading... |
| 353 bool InitProfilesTable(); | 353 bool InitProfilesTable(); |
| 354 bool InitProfileNamesTable(); | 354 bool InitProfileNamesTable(); |
| 355 bool InitProfileEmailsTable(); | 355 bool InitProfileEmailsTable(); |
| 356 bool InitProfilePhonesTable(); | 356 bool InitProfilePhonesTable(); |
| 357 bool InitProfileTrashTable(); | 357 bool InitProfileTrashTable(); |
| 358 | 358 |
| 359 DISALLOW_COPY_AND_ASSIGN(AutofillTable); | 359 DISALLOW_COPY_AND_ASSIGN(AutofillTable); |
| 360 }; | 360 }; |
| 361 | 361 |
| 362 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 362 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
| OLD | NEW |