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

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

Issue 969103003: Don't save duplicates of wallet addresses to local Autofill. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make test work Created 5 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
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_TABLE_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 // Removes a row from the autofill_profiles table. |guid| is the identifier 274 // Removes a row from the autofill_profiles table. |guid| is the identifier
275 // of the profile to remove. 275 // of the profile to remove.
276 virtual bool RemoveAutofillProfile(const std::string& guid); 276 virtual bool RemoveAutofillProfile(const std::string& guid);
277 277
278 // Retrieves a profile with guid |guid|. The caller owns |profile|. 278 // Retrieves a profile with guid |guid|. The caller owns |profile|.
279 bool GetAutofillProfile(const std::string& guid, AutofillProfile** profile); 279 bool GetAutofillProfile(const std::string& guid, AutofillProfile** profile);
280 280
281 // Retrieves local/server profiles in the database. Caller owns the returned 281 // Retrieves local/server profiles in the database. Caller owns the returned
282 // profiles. 282 // profiles.
283 virtual bool GetAutofillProfiles(std::vector<AutofillProfile*>* profiles); 283 virtual bool GetAutofillProfiles(std::vector<AutofillProfile*>* profiles);
284 virtual bool GetAutofillServerProfiles( 284 virtual bool GetServerProfiles(std::vector<AutofillProfile*>* profiles);
285 std::vector<AutofillProfile*>* profiles);
286 285
287 // Sets the server profiles. All old profiles are deleted and replaced with 286 // Sets the server profiles. All old profiles are deleted and replaced with
288 // the given ones. 287 // the given ones.
289 void SetAutofillServerProfiles(const std::vector<AutofillProfile>& profiles); 288 void SetServerProfiles(const std::vector<AutofillProfile>& profiles);
290 289
291 // Records a single credit card in the credit_cards table. 290 // Records a single credit card in the credit_cards table.
292 bool AddCreditCard(const CreditCard& credit_card); 291 bool AddCreditCard(const CreditCard& credit_card);
293 292
294 // Updates the database values for the specified credit card. 293 // Updates the database values for the specified credit card.
295 bool UpdateCreditCard(const CreditCard& credit_card); 294 bool UpdateCreditCard(const CreditCard& credit_card);
296 295
297 // Removes a row from the credit_cards table. |guid| is the identifer of the 296 // Removes a row from the credit_cards table. |guid| is the identifer of the
298 // credit card to remove. 297 // credit card to remove.
299 bool RemoveCreditCard(const std::string& guid); 298 bool RemoveCreditCard(const std::string& guid);
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 // created (on the UI thread), and cached here so that it can be used for 442 // created (on the UI thread), and cached here so that it can be used for
444 // migrations (on the DB thread). 443 // migrations (on the DB thread).
445 std::string app_locale_; 444 std::string app_locale_;
446 445
447 DISALLOW_COPY_AND_ASSIGN(AutofillTable); 446 DISALLOW_COPY_AND_ASSIGN(AutofillTable);
448 }; 447 };
449 448
450 } // namespace autofill 449 } // namespace autofill
451 450
452 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_ 451 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_TABLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698