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

Side by Side Diff: components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h

Issue 480953002: Implement "Autofill form data" import for Firefox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback (simplify Read method) Created 6 years, 3 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_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_IMPL_H _ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_IMPL_H _
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_IMPL_H _ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_IMPL_H _
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/ref_counted_delete_on_message_loop.h" 9 #include "base/memory/ref_counted_delete_on_message_loop.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 WebDatabase::State UpdateAutofillProfile(const AutofillProfile& profile, 106 WebDatabase::State UpdateAutofillProfile(const AutofillProfile& profile,
107 WebDatabase* db); 107 WebDatabase* db);
108 108
109 // Removes an Autofill profile from the web database. 109 // Removes an Autofill profile from the web database.
110 WebDatabase::State RemoveAutofillProfile(const std::string& guid, 110 WebDatabase::State RemoveAutofillProfile(const std::string& guid,
111 WebDatabase* db); 111 WebDatabase* db);
112 112
113 // Returns all Autofill profiles from the web database. 113 // Returns all Autofill profiles from the web database.
114 scoped_ptr<WDTypedResult> GetAutofillProfiles(WebDatabase* db); 114 scoped_ptr<WDTypedResult> GetAutofillProfiles(WebDatabase* db);
115 115
116 // Updates Autofill entries in the web database.
117 WebDatabase::State UpdateAutofillEntries(
118 const std::vector<autofill::AutofillEntry>& autofill_entries,
119 WebDatabase* db);
120
116 // Adds a credit card to the web database. 121 // Adds a credit card to the web database.
117 WebDatabase::State AddCreditCard(const CreditCard& credit_card, 122 WebDatabase::State AddCreditCard(const CreditCard& credit_card,
118 WebDatabase* db); 123 WebDatabase* db);
119 124
120 // Updates a credit card in the web database. 125 // Updates a credit card in the web database.
121 WebDatabase::State UpdateCreditCard(const CreditCard& credit_card, 126 WebDatabase::State UpdateCreditCard(const CreditCard& credit_card,
122 WebDatabase* db); 127 WebDatabase* db);
123 128
124 // Removes a credit card from the web database. 129 // Removes a credit card from the web database.
125 WebDatabase::State RemoveCreditCard(const std::string& guid, 130 WebDatabase::State RemoveCreditCard(const std::string& guid,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 scoped_refptr<WebDataServiceBackend> web_database_backend_; 190 scoped_refptr<WebDataServiceBackend> web_database_backend_;
186 191
187 base::Closure on_changed_callback_; 192 base::Closure on_changed_callback_;
188 193
189 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataBackendImpl); 194 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataBackendImpl);
190 }; 195 };
191 196
192 } // namespace autofill 197 } // namespace autofill
193 198
194 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_IMP L_H_ 199 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_IMP L_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698