| 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_WEB_DATA_SERVICE_H__ | 5 #ifndef CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ |
| 6 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ | 6 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 // OnWebDataServiceRequestDone of |consumer| gets called when the request is | 497 // OnWebDataServiceRequestDone of |consumer| gets called when the request is |
| 498 // finished, with the credit cards included in the argument |result|. The | 498 // finished, with the credit cards included in the argument |result|. The |
| 499 // consumer owns the credit cards. | 499 // consumer owns the credit cards. |
| 500 Handle GetCreditCards(WebDataServiceConsumer* consumer); | 500 Handle GetCreditCards(WebDataServiceConsumer* consumer); |
| 501 | 501 |
| 502 // Removes Autofill records from the database. | 502 // Removes Autofill records from the database. |
| 503 void RemoveAutofillProfilesAndCreditCardsModifiedBetween( | 503 void RemoveAutofillProfilesAndCreditCardsModifiedBetween( |
| 504 const base::Time& delete_begin, | 504 const base::Time& delete_begin, |
| 505 const base::Time& delete_end); | 505 const base::Time& delete_end); |
| 506 | 506 |
| 507 // Notifies listeners on the UI thread that multiple changes have been made to |
| 508 // to Autofill records of the database. |
| 509 // NOTE: This method is intended to be called from the DB thread. It |
| 510 // it asynchronously notifies listeners on the UI thread. |
| 511 void NotifyOfMultipleAutofillChanges(); |
| 512 |
| 507 // Testing | 513 // Testing |
| 508 #ifdef UNIT_TEST | 514 #ifdef UNIT_TEST |
| 509 void set_failed_init(bool value) { failed_init_ = value; } | 515 void set_failed_init(bool value) { failed_init_ = value; } |
| 510 #endif | 516 #endif |
| 511 | 517 |
| 512 protected: | 518 protected: |
| 513 friend class TemplateURLServiceTest; | 519 friend class TemplateURLServiceTest; |
| 514 friend class TemplateURLServiceTestingProfile; | 520 friend class TemplateURLServiceTestingProfile; |
| 515 friend class WebDataServiceTest; | 521 friend class WebDataServiceTest; |
| 516 friend class WebDataRequest; | 522 friend class WebDataRequest; |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 // result can be NULL, if no result is expected or if the database could | 703 // result can be NULL, if no result is expected or if the database could |
| 698 // not be opened. The result object is destroyed after this call. | 704 // not be opened. The result object is destroyed after this call. |
| 699 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, | 705 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, |
| 700 const WDTypedResult* result) = 0; | 706 const WDTypedResult* result) = 0; |
| 701 | 707 |
| 702 protected: | 708 protected: |
| 703 virtual ~WebDataServiceConsumer() {} | 709 virtual ~WebDataServiceConsumer() {} |
| 704 }; | 710 }; |
| 705 | 711 |
| 706 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ | 712 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ |
| OLD | NEW |