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

Side by Side Diff: components/autofill/core/browser/personal_data_manager.h

Issue 2126213002: [Payments] Record use of profiles and credit cards in Payment Request. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed temp card bug + nits Created 4 years, 5 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
« no previous file with comments | « components/autofill/core/browser/autofill_data_model.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PERSONAL_DATA_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // inputting a new address. The value is calculated once and cached, so it 253 // inputting a new address. The value is calculated once and cached, so it
254 // will only update when Chrome is restarted. 254 // will only update when Chrome is restarted.
255 virtual const std::string& GetDefaultCountryCodeForNewAddress() const; 255 virtual const std::string& GetDefaultCountryCodeForNewAddress() const;
256 256
257 // De-dupe credit card to suggest. Full server cards are prefered over their 257 // De-dupe credit card to suggest. Full server cards are prefered over their
258 // local duplicates, and local cards are preferred over their masked server 258 // local duplicates, and local cards are preferred over their masked server
259 // card duplicate. 259 // card duplicate.
260 static void DedupeCreditCardToSuggest( 260 static void DedupeCreditCardToSuggest(
261 std::list<CreditCard*>* cards_to_suggest); 261 std::list<CreditCard*>* cards_to_suggest);
262 262
263 // Notifies test observers that personal data has changed.
264 void NotifyPersonalDataChangedForTest() {
265 NotifyPersonalDataChanged();
266 }
267
263 protected: 268 protected:
264 // Only PersonalDataManagerFactory and certain tests can create instances of 269 // Only PersonalDataManagerFactory and certain tests can create instances of
265 // PersonalDataManager. 270 // PersonalDataManager.
266 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FirstMiddleLast); 271 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FirstMiddleLast);
267 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, AutofillIsEnabledAtStartup); 272 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, AutofillIsEnabledAtStartup);
268 FRIEND_TEST_ALL_PREFIXES(PersonalDataManagerTest, 273 FRIEND_TEST_ALL_PREFIXES(PersonalDataManagerTest,
269 DedupeProfiles_ProfilesToDelete); 274 DedupeProfiles_ProfilesToDelete);
270 FRIEND_TEST_ALL_PREFIXES(PersonalDataManagerTest, ApplyProfileUseDatesFix); 275 FRIEND_TEST_ALL_PREFIXES(PersonalDataManagerTest, ApplyProfileUseDatesFix);
271 FRIEND_TEST_ALL_PREFIXES(PersonalDataManagerTest, 276 FRIEND_TEST_ALL_PREFIXES(PersonalDataManagerTest,
272 ApplyProfileUseDatesFix_NotAppliedTwice); 277 ApplyProfileUseDatesFix_NotAppliedTwice);
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 // Set to true if autofill profile deduplication is enabled and needs to be 501 // Set to true if autofill profile deduplication is enabled and needs to be
497 // performed on the next data refresh. 502 // performed on the next data refresh.
498 bool is_autofill_profile_dedupe_pending_ = false; 503 bool is_autofill_profile_dedupe_pending_ = false;
499 504
500 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); 505 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager);
501 }; 506 };
502 507
503 } // namespace autofill 508 } // namespace autofill
504 509
505 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ 510 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_data_model.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698