Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: chrome/browser/webdata/web_data_service.h

Issue 9585020: Cull autofill entries older than 60 days. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed clang Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 // |consumer| gets called back when the request is finished, with the vector 501 // |consumer| gets called back when the request is finished, with the vector
502 // included in the argument |result|. 502 // included in the argument |result|.
503 Handle GetFormValuesForElementName(const string16& name, 503 Handle GetFormValuesForElementName(const string16& name,
504 const string16& prefix, 504 const string16& prefix,
505 int limit, 505 int limit,
506 WebDataServiceConsumer* consumer); 506 WebDataServiceConsumer* consumer);
507 507
508 // Removes form elements recorded for Autocomplete from the database. 508 // Removes form elements recorded for Autocomplete from the database.
509 void RemoveFormElementsAddedBetween(const base::Time& delete_begin, 509 void RemoveFormElementsAddedBetween(const base::Time& delete_begin,
510 const base::Time& delete_end); 510 const base::Time& delete_end);
511 void RemoveFormElementsAccessedBefore(const base::Time& delete_end);
511 void RemoveFormValueForElementName(const string16& name, 512 void RemoveFormValueForElementName(const string16& name,
512 const string16& value); 513 const string16& value);
513 514
514 // Schedules a task to add an Autofill profile to the web database. 515 // Schedules a task to add an Autofill profile to the web database.
515 void AddAutofillProfile(const AutofillProfile& profile); 516 void AddAutofillProfile(const AutofillProfile& profile);
516 517
517 // Schedules a task to update an Autofill profile in the web database. 518 // Schedules a task to update an Autofill profile in the web database.
518 void UpdateAutofillProfile(const AutofillProfile& profile); 519 void UpdateAutofillProfile(const AutofillProfile& profile);
519 520
520 // Schedules a task to remove an Autofill profile from the web database. 521 // Schedules a task to remove an Autofill profile from the web database.
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 // 705 //
705 // Autofill. 706 // Autofill.
706 // 707 //
707 ////////////////////////////////////////////////////////////////////////////// 708 //////////////////////////////////////////////////////////////////////////////
708 void AddFormElementsImpl( 709 void AddFormElementsImpl(
709 GenericRequest<std::vector<webkit::forms::FormField> >* request); 710 GenericRequest<std::vector<webkit::forms::FormField> >* request);
710 void GetFormValuesForElementNameImpl(WebDataRequest* request, 711 void GetFormValuesForElementNameImpl(WebDataRequest* request,
711 const string16& name, const string16& prefix, int limit); 712 const string16& name, const string16& prefix, int limit);
712 void RemoveFormElementsAddedBetweenImpl( 713 void RemoveFormElementsAddedBetweenImpl(
713 GenericRequest2<base::Time, base::Time>* request); 714 GenericRequest2<base::Time, base::Time>* request);
715 void RemoveFormElementsAccessedBeforeImpl(
716 GenericRequest<base::Time>* request);
714 void RemoveFormValueForElementNameImpl( 717 void RemoveFormValueForElementNameImpl(
715 GenericRequest2<string16, string16>* request); 718 GenericRequest2<string16, string16>* request);
716 void AddAutofillProfileImpl(GenericRequest<AutofillProfile>* request); 719 void AddAutofillProfileImpl(GenericRequest<AutofillProfile>* request);
717 void UpdateAutofillProfileImpl(GenericRequest<AutofillProfile>* request); 720 void UpdateAutofillProfileImpl(GenericRequest<AutofillProfile>* request);
718 void RemoveAutofillProfileImpl(GenericRequest<std::string>* request); 721 void RemoveAutofillProfileImpl(GenericRequest<std::string>* request);
719 void GetAutofillProfilesImpl(WebDataRequest* request); 722 void GetAutofillProfilesImpl(WebDataRequest* request);
720 void EmptyMigrationTrashImpl(GenericRequest<bool>* request); 723 void EmptyMigrationTrashImpl(GenericRequest<bool>* request);
721 void AddCreditCardImpl(GenericRequest<CreditCard>* request); 724 void AddCreditCardImpl(GenericRequest<CreditCard>* request);
722 void UpdateCreditCardImpl(GenericRequest<CreditCard>* request); 725 void UpdateCreditCardImpl(GenericRequest<CreditCard>* request);
723 void RemoveCreditCardImpl(GenericRequest<std::string>* request); 726 void RemoveCreditCardImpl(GenericRequest<std::string>* request);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 // result can be NULL, if no result is expected or if the database could 784 // result can be NULL, if no result is expected or if the database could
782 // not be opened. The result object is destroyed after this call. 785 // not be opened. The result object is destroyed after this call.
783 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, 786 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h,
784 const WDTypedResult* result) = 0; 787 const WDTypedResult* result) = 0;
785 788
786 protected: 789 protected:
787 virtual ~WebDataServiceConsumer() {} 790 virtual ~WebDataServiceConsumer() {}
788 }; 791 };
789 792
790 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ 793 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698