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

Side by Side Diff: components/autofill/browser/webdata/autofill_webdata_backend.h

Issue 14503010: Implement WebViewDatabase's hasFormData API for chromium based webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address new code review Created 7 years, 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "components/autofill/browser/webdata/autofill_webdata.h" 10 #include "components/autofill/browser/webdata/autofill_webdata.h"
(...skipping 26 matching lines...) Expand all
37 WebDatabase* db); 37 WebDatabase* db);
38 38
39 // Returns a vector of values which have been entered in form input fields 39 // Returns a vector of values which have been entered in form input fields
40 // named |name|. 40 // named |name|.
41 scoped_ptr<WDTypedResult> GetFormValuesForElementName( 41 scoped_ptr<WDTypedResult> GetFormValuesForElementName(
42 const base::string16& name, 42 const base::string16& name,
43 const base::string16& prefix, 43 const base::string16& prefix,
44 int limit, 44 int limit,
45 WebDatabase* db); 45 WebDatabase* db);
46 46
47 // Returns true if there are any elements in the form.
48 scoped_ptr<WDTypedResult> HasFormElements(WebDatabase* db);
49
47 // Removes form elements recorded for Autocomplete from the database. 50 // Removes form elements recorded for Autocomplete from the database.
48 WebDatabase::State RemoveFormElementsAddedBetween( 51 WebDatabase::State RemoveFormElementsAddedBetween(
49 const base::Time& delete_begin, 52 const base::Time& delete_begin,
50 const base::Time& delete_end, 53 const base::Time& delete_end,
51 WebDatabase* db); 54 WebDatabase* db);
52 55
53 // Removes expired form elements recorded for Autocomplete from the database. 56 // Removes expired form elements recorded for Autocomplete from the database.
54 WebDatabase::State RemoveExpiredFormElements(WebDatabase* db); 57 WebDatabase::State RemoveExpiredFormElements(WebDatabase* db);
55 58
56 // Removes the Form-value |value| which has been entered in form input fields 59 // Removes the Form-value |value| which has been entered in form input fields
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 void DestroyAutofillCreditCardResult(const WDTypedResult* result); 122 void DestroyAutofillCreditCardResult(const WDTypedResult* result);
120 123
121 ObserverList<AutofillWebDataServiceObserverOnDBThread> db_observer_list_; 124 ObserverList<AutofillWebDataServiceObserverOnDBThread> db_observer_list_;
122 125
123 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataBackend); 126 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataBackend);
124 }; 127 };
125 128
126 } // namespace autofill 129 } // namespace autofill
127 130
128 #endif // COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_H_ 131 #endif // COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698