Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 | |
|
dhollowa
2013/03/25 21:50:38
Remove empty line.
Cait (Slow)
2013/03/26 14:29:23
Done.
| |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 // 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 | 3 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 4 | 5 |
| 5 #ifndef CHROME_BROWSER_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_IMPL_H_ | 6 #ifndef CHROME_BROWSER_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_IMPL_H_ |
| 6 #define CHROME_BROWSER_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_IMPL_H_ | 7 #define CHROME_BROWSER_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_IMPL_H_ |
| 7 | 8 |
| 8 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 9 #include "chrome/browser/api/webdata/autofill_web_data_service.h" | 10 #include "chrome/browser/api/webdata/autofill_web_data_service.h" |
| 10 #include "chrome/browser/api/webdata/web_data_results.h" | 11 #include "chrome/browser/api/webdata/web_data_results.h" |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 39 virtual void AddAutofillProfile(const AutofillProfile& profile) OVERRIDE; | 40 virtual void AddAutofillProfile(const AutofillProfile& profile) OVERRIDE; |
| 40 virtual void UpdateAutofillProfile(const AutofillProfile& profile) OVERRIDE; | 41 virtual void UpdateAutofillProfile(const AutofillProfile& profile) OVERRIDE; |
| 41 virtual void RemoveAutofillProfile(const std::string& guid) OVERRIDE; | 42 virtual void RemoveAutofillProfile(const std::string& guid) OVERRIDE; |
| 42 virtual WebDataServiceBase::Handle GetAutofillProfiles( | 43 virtual WebDataServiceBase::Handle GetAutofillProfiles( |
| 43 WebDataServiceConsumer* consumer) OVERRIDE; | 44 WebDataServiceConsumer* consumer) OVERRIDE; |
| 44 virtual void AddCreditCard(const CreditCard& credit_card) OVERRIDE; | 45 virtual void AddCreditCard(const CreditCard& credit_card) OVERRIDE; |
| 45 virtual void UpdateCreditCard(const CreditCard& credit_card) OVERRIDE; | 46 virtual void UpdateCreditCard(const CreditCard& credit_card) OVERRIDE; |
| 46 virtual void RemoveCreditCard(const std::string& guid) OVERRIDE; | 47 virtual void RemoveCreditCard(const std::string& guid) OVERRIDE; |
| 47 virtual WebDataServiceBase::Handle | 48 virtual WebDataServiceBase::Handle |
| 48 GetCreditCards(WebDataServiceConsumer* consumer) OVERRIDE; | 49 GetCreditCards(WebDataServiceConsumer* consumer) OVERRIDE; |
| 50 virtual void RemoveAutofillProfilesAndCreditCardsModifiedBetween( | |
| 51 const base::Time& delete_begin, const base::Time& delete_end) OVERRIDE; | |
| 52 virtual void RemoveFormElementsAddedBetween( | |
|
dhollowa
2013/03/25 21:50:38
ditto: grouping up top.
Cait (Slow)
2013/03/26 14:29:23
Done.
| |
| 53 const base::Time& delete_begin, const base::Time& delete_end) OVERRIDE; | |
| 49 | 54 |
| 50 protected: | 55 protected: |
| 51 virtual ~AutofillWebDataServiceImpl(); | 56 virtual ~AutofillWebDataServiceImpl(); |
| 52 | 57 |
| 53 private: | 58 private: |
| 54 WebDatabase::State AddFormElementsImpl( | 59 WebDatabase::State AddFormElementsImpl( |
| 55 const std::vector<FormFieldData>& fields, WebDatabase* db); | 60 const std::vector<FormFieldData>& fields, WebDatabase* db); |
| 56 scoped_ptr<WDTypedResult> GetFormValuesForElementNameImpl( | 61 scoped_ptr<WDTypedResult> GetFormValuesForElementNameImpl( |
| 57 const string16& name, const string16& prefix, int limit, WebDatabase* db); | 62 const string16& name, const string16& prefix, int limit, WebDatabase* db); |
| 58 WebDatabase::State RemoveFormElementsAddedBetweenImpl( | 63 WebDatabase::State RemoveFormElementsAddedBetweenImpl( |
| 59 const base::Time& delete_begin, const base::Time& delete_end, | 64 const base::Time& delete_begin, const base::Time& delete_end, |
| 60 WebDatabase* db); | 65 WebDatabase* db); |
| 61 WebDatabase::State RemoveExpiredFormElementsImpl(WebDatabase* db); | 66 WebDatabase::State RemoveExpiredFormElementsImpl(WebDatabase* db); |
| 62 WebDatabase::State RemoveFormValueForElementNameImpl( | 67 WebDatabase::State RemoveFormValueForElementNameImpl( |
| 63 const string16& name, const string16& value, WebDatabase* db); | 68 const string16& name, const string16& value, WebDatabase* db); |
| 64 WebDatabase::State AddAutofillProfileImpl( | 69 WebDatabase::State AddAutofillProfileImpl( |
| 65 const AutofillProfile& profile, WebDatabase* db); | 70 const AutofillProfile& profile, WebDatabase* db); |
| 66 WebDatabase::State UpdateAutofillProfileImpl( | 71 WebDatabase::State UpdateAutofillProfileImpl( |
| 67 const AutofillProfile& profile, WebDatabase* db); | 72 const AutofillProfile& profile, WebDatabase* db); |
| 68 WebDatabase::State RemoveAutofillProfileImpl( | 73 WebDatabase::State RemoveAutofillProfileImpl( |
| 69 const std::string& guid, WebDatabase* db); | 74 const std::string& guid, WebDatabase* db); |
| 70 scoped_ptr<WDTypedResult> GetAutofillProfilesImpl(WebDatabase* db); | 75 scoped_ptr<WDTypedResult> GetAutofillProfilesImpl(WebDatabase* db); |
| 71 WebDatabase::State AddCreditCardImpl( | 76 WebDatabase::State AddCreditCardImpl( |
| 72 const CreditCard& credit_card, WebDatabase* db); | 77 const CreditCard& credit_card, WebDatabase* db); |
| 73 WebDatabase::State UpdateCreditCardImpl( | 78 WebDatabase::State UpdateCreditCardImpl( |
| 74 const CreditCard& credit_card, WebDatabase* db); | 79 const CreditCard& credit_card, WebDatabase* db); |
| 75 WebDatabase::State RemoveCreditCardImpl( | 80 WebDatabase::State RemoveCreditCardImpl( |
| 76 const std::string& guid, WebDatabase* db); | 81 const std::string& guid, WebDatabase* db); |
| 77 scoped_ptr<WDTypedResult> GetCreditCardsImpl(WebDatabase* db); | 82 scoped_ptr<WDTypedResult> GetCreditCardsImpl(WebDatabase* db); |
| 83 WebDatabase::State RemoveAutofillProfilesAndCreditCardsModifiedBetweenImpl( | |
| 84 const base::Time& delete_begin, const base::Time& delete_end, | |
| 85 WebDatabase* db); | |
| 78 | 86 |
| 79 // Callbacks to ensure that sensitive info is destroyed if request is | 87 // Callbacks to ensure that sensitive info is destroyed if request is |
| 80 // cancelled. | 88 // cancelled. |
| 81 void DestroyAutofillProfileResult(const WDTypedResult* result); | 89 void DestroyAutofillProfileResult(const WDTypedResult* result); |
| 82 void DestroyAutofillCreditCardResult(const WDTypedResult* result); | 90 void DestroyAutofillCreditCardResult(const WDTypedResult* result); |
| 83 | 91 |
| 84 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataServiceImpl); | 92 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataServiceImpl); |
| 85 }; | 93 }; |
| 86 | 94 |
| 87 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_IMPL_H_ | 95 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_IMPL_H_ |
| OLD | NEW |