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 std::string 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.cc228 scoped_ptr<CreditCard>* imported_credit_card) { in ImportFormData()
230 scoped_ptr<CreditCard> local_imported_credit_card(new CreditCard); in ImportFormData()
339 for (std::vector<CreditCard*>::const_iterator iter = credit_cards_.begin(); in ImportFormData()
344 CreditCard card = **iter; in ImportFormData()
429 void PersonalDataManager::AddCreditCard(const CreditCard& credit_card) { in AddCreditCard()
436 if (FindByGUID<CreditCard>(credit_cards_, credit_card.guid())) in AddCreditCard()
453 void PersonalDataManager::UpdateCreditCard(const CreditCard& credit_card) { in UpdateCreditCard()
457 CreditCard* existing_credit_card = GetCreditCardByGUID(credit_card.guid()); in UpdateCreditCard()
484 bool is_credit_card = FindByGUID<CreditCard>(credit_cards_, guid); in RemoveByGUID()
502 CreditCard* PersonalDataManager::GetCreditCardByGUID(const std::string& guid) { in GetCreditCardByGUID()
[all …]
Dpersonal_data_manager_unittest.cc227 CreditCard credit_card0(base::GenerateGUID(), "https://www.example.com"); in TEST_F()
231 CreditCard credit_card1(base::GenerateGUID(), "https://www.example.com"); in TEST_F()
235 CreditCard credit_card2(base::GenerateGUID(), "https://www.example.com"); in TEST_F()
248 const std::vector<CreditCard*>& results1 = personal_data_->GetCreditCards(); in TEST_F()
264 const std::vector<CreditCard*>& results2 = personal_data_->GetCreditCards(); in TEST_F()
275 const std::vector<CreditCard*>& results3 = personal_data_->GetCreditCards(); in TEST_F()
290 CreditCard credit_card(base::GenerateGUID(), "https://www.example.com/"); in TEST_F()
306 const std::vector<CreditCard*>& cards1 = personal_data_->GetCreditCards(); in TEST_F()
314 CreditCard original_credit_card(credit_card); in TEST_F()
328 const std::vector<CreditCard*>& cards2 = personal_data_->GetCreditCards(); in TEST_F()
[all …]
Dautofill_test_utils.cc137 CreditCard GetCreditCard() { in GetCreditCard()
138 CreditCard credit_card(base::GenerateGUID(), "http://www.example.com"); in GetCreditCard()
144 CreditCard GetCreditCard2() { in GetCreditCard2()
145 CreditCard credit_card(base::GenerateGUID(), "https://www.example.com"); in GetCreditCard2()
151 CreditCard GetVerifiedCreditCard() { in GetVerifiedCreditCard()
152 CreditCard credit_card(GetCreditCard()); in GetVerifiedCreditCard()
157 CreditCard GetVerifiedCreditCard2() { in GetVerifiedCreditCard2()
158 CreditCard credit_card(GetCreditCard2()); in GetVerifiedCreditCard2()
196 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;
238 int, std::vector<autofill::CreditCard>*);
254 void SetCreditCards(std::vector<CreditCard>* credit_cards);
324 ScopedVector<CreditCard> credit_cards_;
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.cc40 scoped_ptr<CreditCard> new_card, in Show()
90 scoped_ptr<CreditCard> new_card, in SetupAndShow()
102 CreditCard::IconResourceId(CreditCard::GetCreditCardType(card_number))); in SetupAndShow()
Dautofill_dialog_i18n_input.h26 class CreditCard; variable
47 bool CardHasCompleteAndVerifiedData(const CreditCard& card);
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/autofill/
DPersonalDataManager.java223 public static class CreditCard { class in PersonalDataManager
235 public static CreditCard create(String guid, String origin, String name, String number, in create()
237 return new CreditCard(guid, origin, name, number, obfuscatedNumber, month, year); in create()
240 public CreditCard(String guid, String origin, String name, String number, in CreditCard() method in PersonalDataManager.CreditCard
389 public List<CreditCard> getCreditCards() { in getCreditCards()
392 List<CreditCard> cards = new ArrayList<CreditCard>(count); in getCreditCards()
399 public CreditCard getCreditCard(String guid) { in getCreditCard()
404 public String setCreditCard(CreditCard card) { in setCreditCard()
445 private native CreditCard nativeGetCreditCardByIndex(long nativePersonalDataManagerAndroid, in nativeGetCreditCardByIndex()
447 private native CreditCard nativeGetCreditCardByGUID(long nativePersonalDataManagerAndroid, in nativeGetCreditCardByGUID()
[all …]
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/autofill/
DPersonalDataManagerTest.java11 import org.chromium.chrome.browser.autofill.PersonalDataManager.CreditCard;
116 CreditCard card = new CreditCard( in testAddAndEditCreditCards()
122 CreditCard card2 = new CreditCard( in testAddAndEditCreditCards()
134 CreditCard storedCard = mHelper.getCreditCard(cardOneGUID); in testAddAndEditCreditCards()
147 CreditCard card = new CreditCard( in testAddAndDeleteCreditCard()
DAutofillTestHelper.java9 import org.chromium.chrome.browser.autofill.PersonalDataManager.CreditCard;
66 CreditCard getCreditCard(final String guid) throws ExecutionException {
67 return ThreadUtils.runOnUiThreadBlocking(new Callable<CreditCard>() {
69 public CreditCard call() {
84 String setCreditCard(final CreditCard card) throws InterruptedException, ExecutionException {
/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.cc399 CreditCard card; in TEST_F()
404 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > consumer; in TEST_F()
414 CreditCard credit_card; in TEST_F()
421 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > consumer; in TEST_F()
434 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > consumer2; in TEST_F()
442 CreditCard card1; in TEST_F()
444 CreditCard card2; in TEST_F()
452 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > consumer; in TEST_F()
461 CreditCard card1_changed(card1); in TEST_F()
468 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > consumer2; in TEST_F()
[all …]
Dautofill_webdata_backend_impl.cc249 const CreditCard& credit_card, WebDatabase* db) { in AddCreditCard()
260 const CreditCard& credit_card, WebDatabase* db) { in UpdateCreditCard()
264 CreditCard* original_credit_card = NULL; in UpdateCreditCard()
269 scoped_ptr<CreditCard> scoped_credit_card(original_credit_card); in UpdateCreditCard()
291 std::vector<CreditCard*> credit_cards; in GetCreditCards()
294 new WDDestroyableResult<std::vector<CreditCard*> >( in GetCreditCards()
382 const WDResult<std::vector<CreditCard*> >* r = in DestroyAutofillCreditCardResult()
383 static_cast<const WDResult<std::vector<CreditCard*> >*>(result); in DestroyAutofillCreditCardResult()
385 std::vector<CreditCard*> credit_cards = r->GetValue(); in DestroyAutofillCreditCardResult()
Dautofill_webdata.h27 class CreditCard; variable
79 virtual void AddCreditCard(const CreditCard& credit_card) = 0;
82 virtual void UpdateCreditCard(const CreditCard& credit_card) = 0;
Dautofill_webdata_service.h35 class CreditCard; variable
72 virtual void AddCreditCard(const CreditCard& credit_card) OVERRIDE;
73 virtual void UpdateCreditCard(const CreditCard& credit_card) OVERRIDE;
Dautofill_webdata_backend_impl.h32 class CreditCard; variable
117 WebDatabase::State AddCreditCard(const CreditCard& credit_card,
121 WebDatabase::State UpdateCreditCard(const CreditCard& credit_card,
/external/chromium_org/chrome/browser/autofill/
Dautofill_browsertest.cc148 void SetCards(std::vector<CreditCard>* cards) { in SetCards()
154 void SetCard(const CreditCard& card) { in SetCard()
155 std::vector<CreditCard> cards; in SetCard()
384 std::vector<CreditCard> cards; in IN_PROC_BROWSER_TEST_F()
385 CreditCard card1; in IN_PROC_BROWSER_TEST_F()
394 CreditCard card2; in IN_PROC_BROWSER_TEST_F()
401 CreditCard card3; in IN_PROC_BROWSER_TEST_F()
417 CreditCard card4; in IN_PROC_BROWSER_TEST_F()
465 CreditCard card; in IN_PROC_BROWSER_TEST_F()

123