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 // Chromium settings and storage represent user-selected preferences and | 5 // Chromium settings and storage represent user-selected preferences and |
6 // information and MUST not be extracted, overwritten or modified except | 6 // information and MUST not be extracted, overwritten or modified except |
7 // through Chromium defined APIs. | 7 // through Chromium defined APIs. |
8 | 8 |
9 #ifndef CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ | 9 #ifndef CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ |
10 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ | 10 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 #endif // defined(OS_WIN) | 368 #endif // defined(OS_WIN) |
369 | 369 |
370 ////////////////////////////////////////////////////////////////////////////// | 370 ////////////////////////////////////////////////////////////////////////////// |
371 // | 371 // |
372 // Autofill. | 372 // Autofill. |
373 // | 373 // |
374 ////////////////////////////////////////////////////////////////////////////// | 374 ////////////////////////////////////////////////////////////////////////////// |
375 | 375 |
376 // AutofillWebData implementation. | 376 // AutofillWebData implementation. |
377 virtual void AddFormFields( | 377 virtual void AddFormFields( |
378 const std::vector<webkit::forms::FormField>& fields) OVERRIDE; | 378 const std::vector<FormFieldData>& fields) OVERRIDE; |
379 virtual Handle GetFormValuesForElementName( | 379 virtual Handle GetFormValuesForElementName( |
380 const string16& name, | 380 const string16& name, |
381 const string16& prefix, | 381 const string16& prefix, |
382 int limit, | 382 int limit, |
383 WebDataServiceConsumer* consumer) OVERRIDE; | 383 WebDataServiceConsumer* consumer) OVERRIDE; |
384 virtual void RemoveExpiredFormElements() OVERRIDE; | 384 virtual void RemoveExpiredFormElements() OVERRIDE; |
385 virtual void RemoveFormValueForElementName(const string16& name, | 385 virtual void RemoveFormValueForElementName(const string16& name, |
386 const string16& value) OVERRIDE; | 386 const string16& value) OVERRIDE; |
387 virtual void AddAutofillProfile(const AutofillProfile& profile) OVERRIDE; | 387 virtual void AddAutofillProfile(const AutofillProfile& profile) OVERRIDE; |
388 virtual void UpdateAutofillProfile(const AutofillProfile& profile) OVERRIDE; | 388 virtual void UpdateAutofillProfile(const AutofillProfile& profile) OVERRIDE; |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 void RemoveIE7LoginImpl(GenericRequest<IE7PasswordInfo>* request); | 543 void RemoveIE7LoginImpl(GenericRequest<IE7PasswordInfo>* request); |
544 void GetIE7LoginImpl(GenericRequest<IE7PasswordInfo>* request); | 544 void GetIE7LoginImpl(GenericRequest<IE7PasswordInfo>* request); |
545 #endif // defined(OS_WIN) | 545 #endif // defined(OS_WIN) |
546 | 546 |
547 ////////////////////////////////////////////////////////////////////////////// | 547 ////////////////////////////////////////////////////////////////////////////// |
548 // | 548 // |
549 // Autofill. | 549 // Autofill. |
550 // | 550 // |
551 ////////////////////////////////////////////////////////////////////////////// | 551 ////////////////////////////////////////////////////////////////////////////// |
552 void AddFormElementsImpl( | 552 void AddFormElementsImpl( |
553 GenericRequest<std::vector<webkit::forms::FormField> >* request); | 553 GenericRequest<std::vector<FormFieldData> >* request); |
554 void GetFormValuesForElementNameImpl(WebDataRequest* request, | 554 void GetFormValuesForElementNameImpl(WebDataRequest* request, |
555 const string16& name, const string16& prefix, int limit); | 555 const string16& name, const string16& prefix, int limit); |
556 void RemoveFormElementsAddedBetweenImpl( | 556 void RemoveFormElementsAddedBetweenImpl( |
557 GenericRequest2<base::Time, base::Time>* request); | 557 GenericRequest2<base::Time, base::Time>* request); |
558 void RemoveExpiredFormElementsImpl(WebDataRequest* request); | 558 void RemoveExpiredFormElementsImpl(WebDataRequest* request); |
559 void RemoveFormValueForElementNameImpl( | 559 void RemoveFormValueForElementNameImpl( |
560 GenericRequest2<string16, string16>* request); | 560 GenericRequest2<string16, string16>* request); |
561 void AddAutofillProfileImpl(GenericRequest<AutofillProfile>* request); | 561 void AddAutofillProfileImpl(GenericRequest<AutofillProfile>* request); |
562 void UpdateAutofillProfileImpl(GenericRequest<AutofillProfile>* request); | 562 void UpdateAutofillProfileImpl(GenericRequest<AutofillProfile>* request); |
563 void RemoveAutofillProfileImpl(GenericRequest<std::string>* request); | 563 void RemoveAutofillProfileImpl(GenericRequest<std::string>* request); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 typedef std::map<Handle, WebDataRequest*> RequestMap; | 604 typedef std::map<Handle, WebDataRequest*> RequestMap; |
605 RequestMap pending_requests_; | 605 RequestMap pending_requests_; |
606 | 606 |
607 // MessageLoop the WebDataService is created on. | 607 // MessageLoop the WebDataService is created on. |
608 MessageLoop* main_loop_; | 608 MessageLoop* main_loop_; |
609 | 609 |
610 DISALLOW_COPY_AND_ASSIGN(WebDataService); | 610 DISALLOW_COPY_AND_ASSIGN(WebDataService); |
611 }; | 611 }; |
612 | 612 |
613 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ | 613 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ |
OLD | NEW |