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

Side by Side Diff: components/autofill/core/browser/webdata/autofill_webdata_service.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_WEBDATA_SERVICE_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 const base::string16& value) override; 65 const base::string16& value) override;
66 66
67 // Profiles. 67 // Profiles.
68 void AddAutofillProfile(const AutofillProfile& profile) override; 68 void AddAutofillProfile(const AutofillProfile& profile) override;
69 void UpdateAutofillProfile(const AutofillProfile& profile) override; 69 void UpdateAutofillProfile(const AutofillProfile& profile) override;
70 void RemoveAutofillProfile(const std::string& guid) override; 70 void RemoveAutofillProfile(const std::string& guid) override;
71 WebDataServiceBase::Handle GetAutofillProfiles( 71 WebDataServiceBase::Handle GetAutofillProfiles(
72 WebDataServiceConsumer* consumer) override; 72 WebDataServiceConsumer* consumer) override;
73 73
74 // Server profiles. 74 // Server profiles.
75 WebDataServiceBase::Handle GetAutofillServerProfiles( 75 WebDataServiceBase::Handle GetServerProfiles(
76 WebDataServiceConsumer* consumer) override; 76 WebDataServiceConsumer* consumer) override;
77 77
78 void UpdateAutofillEntries( 78 void UpdateAutofillEntries(
79 const std::vector<AutofillEntry>& autofill_entries) override; 79 const std::vector<AutofillEntry>& autofill_entries) override;
80 80
81 // Credit cards. 81 // Credit cards.
82 void AddCreditCard(const CreditCard& credit_card) override; 82 void AddCreditCard(const CreditCard& credit_card) override;
83 void UpdateCreditCard(const CreditCard& credit_card) override; 83 void UpdateCreditCard(const CreditCard& credit_card) override;
84 void RemoveCreditCard(const std::string& guid) override; 84 void RemoveCreditCard(const std::string& guid) override;
85 WebDataServiceBase::Handle GetCreditCards( 85 WebDataServiceBase::Handle GetCreditCards(
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // This factory is used on the UI thread. All vended weak pointers are 139 // This factory is used on the UI thread. All vended weak pointers are
140 // invalidated in ShutdownOnUIThread(). 140 // invalidated in ShutdownOnUIThread().
141 base::WeakPtrFactory<AutofillWebDataService> weak_ptr_factory_; 141 base::WeakPtrFactory<AutofillWebDataService> weak_ptr_factory_;
142 142
143 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataService); 143 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataService);
144 }; 144 };
145 145
146 } // namespace autofill 146 } // namespace autofill
147 147
148 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ 148 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698