OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 // Retrieves a credit card with guid |guid|. The caller owns | 239 // Retrieves a credit card with guid |guid|. The caller owns |
240 // |credit_card_id|. | 240 // |credit_card_id|. |
241 bool GetCreditCard(const std::string& guid, CreditCard** credit_card); | 241 bool GetCreditCard(const std::string& guid, CreditCard** credit_card); |
242 | 242 |
243 // Retrieves all credit cards in the database. Caller owns the returned | 243 // Retrieves all credit cards in the database. Caller owns the returned |
244 // credit cards. | 244 // credit cards. |
245 virtual bool GetCreditCards(std::vector<CreditCard*>* credit_cards); | 245 virtual bool GetCreditCards(std::vector<CreditCard*>* credit_cards); |
246 | 246 |
247 // Removes rows from autofill_profiles and credit_cards if they were created | 247 // Removes rows from autofill_profiles and credit_cards if they were created |
248 // on or after |delete_begin| and strictly before |delete_end|. Returns lists | 248 // on or after |delete_begin| and strictly before |delete_end|. Returns lists |
249 // of deleted guids in |profile_guids| and |credit_card_guids|. | 249 // of deleted guids in |profile_guids| and |credit_card_guids|. Return value |
| 250 // is true if all rows were successfully removed. Returns false on database |
| 251 // error. In that case, the output vector state is undefined, and may be |
| 252 // partially filled. |
250 bool RemoveAutofillProfilesAndCreditCardsModifiedBetween( | 253 bool RemoveAutofillProfilesAndCreditCardsModifiedBetween( |
251 const base::Time& delete_begin, | 254 const base::Time& delete_begin, |
252 const base::Time& delete_end, | 255 const base::Time& delete_end, |
253 std::vector<std::string>* profile_guids, | 256 std::vector<std::string>* profile_guids, |
254 std::vector<std::string>* credit_card_guids); | 257 std::vector<std::string>* credit_card_guids); |
255 | 258 |
256 // Retrieves all profiles in the database that have been deleted since last | 259 // Retrieves all profiles in the database that have been deleted since last |
257 // "empty" of the trash. | 260 // "empty" of the trash. |
258 bool GetAutofillProfilesInTrash(std::vector<std::string>* guids); | 261 bool GetAutofillProfilesInTrash(std::vector<std::string>* guids); |
259 | 262 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 bool InitProfilesTable(); | 336 bool InitProfilesTable(); |
334 bool InitProfileNamesTable(); | 337 bool InitProfileNamesTable(); |
335 bool InitProfileEmailsTable(); | 338 bool InitProfileEmailsTable(); |
336 bool InitProfilePhonesTable(); | 339 bool InitProfilePhonesTable(); |
337 bool InitProfileTrashTable(); | 340 bool InitProfileTrashTable(); |
338 | 341 |
339 DISALLOW_COPY_AND_ASSIGN(AutofillTable); | 342 DISALLOW_COPY_AND_ASSIGN(AutofillTable); |
340 }; | 343 }; |
341 | 344 |
342 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ | 345 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ |
OLD | NEW |