Home
last modified time | relevance | path

Searched refs:CreditCard (Results 1 – 25 of 60) sorted by relevance

123

/external/chromium_org/components/autofill/core/browser/
Dcredit_card.cc113 CreditCard::CreditCard(const std::string& guid, const std::string& origin) in CreditCard() function in autofill::CreditCard
120 CreditCard::CreditCard() in CreditCard() function in autofill::CreditCard
127 CreditCard::CreditCard(const CreditCard& credit_card) in CreditCard() function in autofill::CreditCard
132 CreditCard::~CreditCard() {} in ~CreditCard()
135 const base::string16 CreditCard::StripSeparators(const base::string16& number) { in StripSeparators()
142 base::string16 CreditCard::TypeForDisplay(const std::string& type) { in TypeForDisplay()
165 int CreditCard::IconResourceId(const std::string& type) { in IconResourceId()
188 const char* CreditCard::GetCreditCardType(const base::string16& number) { in GetCreditCardType()
278 base::string16 CreditCard::GetRawInfo(ServerFieldType type) const { in GetRawInfo()
325 void CreditCard::SetRawInfo(ServerFieldType type, in SetRawInfo()
[all …]
Dcredit_card.h21 class CreditCard : public AutofillDataModel {
23 CreditCard(const std::string& guid, const std::string& origin);
26 CreditCard();
27 CreditCard(const CreditCard& credit_card);
28 virtual ~CreditCard();
83 void operator=(const CreditCard& credit_card);
89 bool UpdateFromImportedCard(const CreditCard& imported_card,
98 int Compare(const CreditCard& credit_card) const;
101 bool operator==(const CreditCard& credit_card) const;
102 bool operator!=(const CreditCard& credit_card) const;
[all …]
Dcredit_card_unittest.cc58 CreditCard credit_card0(base::GenerateGUID(), "https://www.example.com/"); in TEST()
65 CreditCard credit_card00(base::GenerateGUID(), "https://www.example.com/"); in TEST()
73 CreditCard credit_card1(base::GenerateGUID(), "https://www.example.com/"); in TEST()
81 CreditCard credit_card2(base::GenerateGUID(), "https://www.example.com/"); in TEST()
90 CreditCard credit_card3(base::GenerateGUID(), "https://www.example.com/"); in TEST()
99 CreditCard credit_card4(base::GenerateGUID(), "https://www.example.com/"); in TEST()
108 CreditCard credit_card5(base::GenerateGUID(), "https://www.example.com/"); in TEST()
120 CreditCard a(base::GenerateGUID(), "some origin"); in TEST()
124 CreditCard b(base::GenerateGUID(), "some other origin"); in TEST()
134 CreditCard a(base::GenerateGUID(), "https://www.example.com"); in TEST()
[all …]
Dautofill_test_utils.h15 class CreditCard; variable
54 CreditCard GetCreditCard();
57 CreditCard GetCreditCard2();
60 CreditCard GetVerifiedCreditCard();
63 CreditCard GetVerifiedCreditCard2();
85 void SetCreditCardInfo(CreditCard* credit_card,
Dtest_personal_data_manager.h27 void AddTestingCreditCard(CreditCard* credit_card);
31 virtual const std::vector<CreditCard*>& GetCreditCards() const OVERRIDE;
36 const CreditCard& imported_credit_card) OVERRIDE;
50 const CreditCard& imported_credit_card() { return imported_credit_card_; } in imported_credit_card()
54 std::vector<CreditCard*> credit_cards_;
56 CreditCard imported_credit_card_;
Dpersonal_data_manager.cc235 scoped_ptr<CreditCard>* imported_credit_card) { in ImportFormData()
237 scoped_ptr<CreditCard> local_imported_credit_card(new CreditCard); in ImportFormData()
346 for (std::vector<CreditCard*>::const_iterator iter = credit_cards_.begin(); in ImportFormData()
351 CreditCard card = **iter; in ImportFormData()
436 void PersonalDataManager::AddCreditCard(const CreditCard& credit_card) { in AddCreditCard()
443 if (FindByGUID<CreditCard>(credit_cards_, credit_card.guid())) in AddCreditCard()
460 void PersonalDataManager::UpdateCreditCard(const CreditCard& credit_card) { in UpdateCreditCard()
464 CreditCard* existing_credit_card = GetCreditCardByGUID(credit_card.guid()); in UpdateCreditCard()
491 bool is_credit_card = FindByGUID<CreditCard>(credit_cards_, guid); in RemoveByGUID()
509 CreditCard* PersonalDataManager::GetCreditCardByGUID(const std::string& guid) { in GetCreditCardByGUID()
[all …]
Dautofill_test_utils.cc136 CreditCard GetCreditCard() { in GetCreditCard()
137 CreditCard credit_card(base::GenerateGUID(), "http://www.example.com"); in GetCreditCard()
143 CreditCard GetCreditCard2() { in GetCreditCard2()
144 CreditCard credit_card(base::GenerateGUID(), "https://www.example.com"); in GetCreditCard2()
150 CreditCard GetVerifiedCreditCard() { in GetVerifiedCreditCard()
151 CreditCard credit_card(GetCreditCard()); in GetVerifiedCreditCard()
156 CreditCard GetVerifiedCreditCard2() { in GetVerifiedCreditCard2()
157 CreditCard credit_card(GetCreditCard2()); in GetVerifiedCreditCard2()
195 void SetCreditCardInfo(CreditCard* credit_card, in SetCreditCardInfo()
Dpersonal_data_manager.h39 void SetCreditCards(int, std::vector<autofill::CreditCard>*);
86 scoped_ptr<CreditCard>* credit_card);
96 const CreditCard& imported_credit_card);
113 void AddCreditCard(const CreditCard& credit_card);
116 void UpdateCreditCard(const CreditCard& credit_card);
120 CreditCard* GetCreditCardByGUID(const std::string& guid);
137 virtual const std::vector<CreditCard*>& GetCreditCards() const;
244 int, std::vector<autofill::CreditCard>*);
260 void SetCreditCards(std::vector<CreditCard>* credit_cards);
330 ScopedVector<CreditCard> credit_cards_;
Dpersonal_data_manager_unittest.cc251 CreditCard credit_card0(base::GenerateGUID(), "https://www.example.com"); in TEST_F()
255 CreditCard credit_card1(base::GenerateGUID(), "https://www.example.com"); in TEST_F()
259 CreditCard credit_card2(base::GenerateGUID(), "https://www.example.com"); in TEST_F()
272 std::vector<CreditCard*> cards; in TEST_F()
314 CreditCard credit_card(base::GenerateGUID(), "https://www.example.com/"); in TEST_F()
330 const std::vector<CreditCard*>& cards1 = personal_data_->GetCreditCards(); in TEST_F()
338 CreditCard original_credit_card(credit_card); in TEST_F()
352 const std::vector<CreditCard*>& cards2 = personal_data_->GetCreditCards(); in TEST_F()
374 const std::vector<CreditCard*>& cards3 = personal_data_->GetCreditCards(); in TEST_F()
396 CreditCard credit_card0(base::GenerateGUID(), "https://www.example.com"); in TEST_F()
[all …]
Dtest_personal_data_manager.cc21 void TestPersonalDataManager::AddTestingCreditCard(CreditCard* credit_card) { in AddTestingCreditCard()
36 const std::vector<CreditCard*>& TestPersonalDataManager::
48 const CreditCard& imported_credit_card) { in SaveImportedCreditCard()
Dautofill_ie_toolbar_import_win.cc37 std::vector<CreditCard>* credit_cards);
224 for (std::vector<CreditCard>::const_iterator iter = credit_cards_.begin(); in OnPersonalDataChanged()
238 std::vector<CreditCard> credit_cards_;
248 std::vector<CreditCard>* credit_cards) { in ImportCurrentUserProfiles()
290 CreditCard credit_card; in ImportCurrentUserProfiles()
/external/chromium_org/chrome/browser/ui/autofill/
Dmock_new_credit_card_bubble_controller.h14 class CreditCard; variable
22 void Show(scoped_ptr<CreditCard> new_card,
25 const CreditCard* new_card() const { return new_card_.get(); } in new_card()
34 scoped_ptr<CreditCard> new_card_;
Dnew_credit_card_bubble_controller.h25 class CreditCard; variable
66 scoped_ptr<CreditCard> new_card,
102 virtual void SetupAndShow(scoped_ptr<CreditCard> new_card,
119 scoped_ptr<CreditCard> new_card_;
Dnew_credit_card_bubble_controller.cc39 scoped_ptr<CreditCard> new_card, in Show()
89 scoped_ptr<CreditCard> new_card, in SetupAndShow()
101 CreditCard::IconResourceId(CreditCard::GetCreditCardType(card_number))); in SetupAndShow()
Dautofill_dialog_i18n_input.h19 class CreditCard; variable
40 bool CardHasCompleteAndVerifiedData(const CreditCard& card);
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/autofill/
DPersonalDataManager.java228 public static class CreditCard { class in PersonalDataManager
240 public static CreditCard create(String guid, String origin, String name, String number, in create()
242 return new CreditCard(guid, origin, name, number, obfuscatedNumber, month, year); in create()
245 public CreditCard(String guid, String origin, String name, String number, in CreditCard() method in PersonalDataManager.CreditCard
400 public List<CreditCard> getCreditCards() { in getCreditCards()
403 List<CreditCard> cards = new ArrayList<CreditCard>(count); in getCreditCards()
410 public CreditCard getCreditCard(String guid) { in getCreditCard()
415 public String setCreditCard(CreditCard card) { in setCreditCard()
457 private native CreditCard nativeGetCreditCardByIndex(long nativePersonalDataManagerAndroid, in nativeGetCreditCardByIndex()
459 private native CreditCard nativeGetCreditCardByGUID(long nativePersonalDataManagerAndroid, in nativeGetCreditCardByGUID()
[all …]
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/autofill/
DAutofillTestHelper.java9 import org.chromium.chrome.browser.autofill.PersonalDataManager.CreditCard;
76 CreditCard getCreditCard(final String guid) throws ExecutionException {
77 return ThreadUtils.runOnUiThreadBlocking(new Callable<CreditCard>() {
79 public CreditCard call() {
94 String setCreditCard(final CreditCard card) throws InterruptedException, ExecutionException {
DPersonalDataManagerTest.java11 import org.chromium.chrome.browser.autofill.PersonalDataManager.CreditCard;
118 CreditCard card = new CreditCard( in testAddAndEditCreditCards()
124 CreditCard card2 = new CreditCard( in testAddAndEditCreditCards()
136 CreditCard storedCard = mHelper.getCreditCard(cardOneGUID); in testAddAndEditCreditCards()
149 CreditCard card = new CreditCard( in testAddAndDeleteCreditCard()
/external/chromium_org/components/autofill/core/browser/webdata/
Dautofill_table.h28 class CreditCard; variable
216 bool AddCreditCard(const CreditCard& credit_card);
219 bool UpdateCreditCard(const CreditCard& credit_card);
227 bool GetCreditCard(const std::string& guid, CreditCard** credit_card);
231 virtual bool GetCreditCards(std::vector<CreditCard*>* credit_cards);
320 FRIEND_TEST_ALL_PREFIXES(AutofillTableTest, CreditCard);
Dweb_data_service_unittest.cc402 CreditCard card; in TEST_F()
407 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > consumer; in TEST_F()
417 CreditCard credit_card; in TEST_F()
424 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > consumer; in TEST_F()
437 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > consumer2; in TEST_F()
445 CreditCard card1("B9C52112-BD5F-4080-84E1-C651D2CB90E2", in TEST_F()
448 CreditCard card2("E4D2662E-5E16-44F3-AF5A-5A77FAE4A6F3", in TEST_F()
457 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > consumer; in TEST_F()
466 CreditCard card1_changed(card1); in TEST_F()
473 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > consumer2; in TEST_F()
[all …]
Dautofill_webdata_backend_impl.cc260 const CreditCard& credit_card, WebDatabase* db) { in AddCreditCard()
271 const CreditCard& credit_card, WebDatabase* db) { in UpdateCreditCard()
275 CreditCard* original_credit_card = NULL; in UpdateCreditCard()
280 scoped_ptr<CreditCard> scoped_credit_card(original_credit_card); in UpdateCreditCard()
302 std::vector<CreditCard*> credit_cards; in GetCreditCards()
305 new WDDestroyableResult<std::vector<CreditCard*> >( in GetCreditCards()
393 const WDResult<std::vector<CreditCard*> >* r = in DestroyAutofillCreditCardResult()
394 static_cast<const WDResult<std::vector<CreditCard*> >*>(result); in DestroyAutofillCreditCardResult()
396 std::vector<CreditCard*> credit_cards = r->GetValue(); in DestroyAutofillCreditCardResult()
Dautofill_webdata.h28 class CreditCard; variable
84 virtual void AddCreditCard(const CreditCard& credit_card) = 0;
87 virtual void UpdateCreditCard(const CreditCard& credit_card) = 0;
Dautofill_webdata_service.h36 class CreditCard; variable
75 virtual void AddCreditCard(const CreditCard& credit_card) OVERRIDE;
76 virtual void UpdateCreditCard(const CreditCard& credit_card) OVERRIDE;
Dautofill_webdata_backend_impl.h32 class CreditCard; variable
122 WebDatabase::State AddCreditCard(const CreditCard& credit_card,
126 WebDatabase::State UpdateCreditCard(const CreditCard& credit_card,
/external/chromium_org/components/autofill/content/browser/wallet/
Dinstrument.h20 class CreditCard; variable
41 Instrument(const CreditCard& card,

123