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

Side by Side Diff: components/autofill/browser/wallet/wallet_items.h

Issue 13488009: Remove application locale cache in autofill code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_WALLET_WALLET_ITEMS_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 // Gets an image to display for this instrument. 80 // Gets an image to display for this instrument.
81 const gfx::Image& CardIcon() const; 81 const gfx::Image& CardIcon() const;
82 82
83 // Returns a pair of strings that summarizes this CC, 83 // Returns a pair of strings that summarizes this CC,
84 // suitable for display to the user. 84 // suitable for display to the user.
85 string16 DisplayName() const; 85 string16 DisplayName() const;
86 string16 DisplayNameDetail() const; 86 string16 DisplayNameDetail() const;
87 87
88 // Gets info that corresponds with |type|. 88 // Gets info that corresponds with |type|.
89 string16 GetInfo(AutofillFieldType type) const; 89 string16 GetInfo(AutofillFieldType type,
90 const std::string& app_locale) const;
90 91
91 // Returns the display type of the and last four digits (e.g. Visa - 4444). 92 // Returns the display type of the and last four digits (e.g. Visa - 4444).
92 string16 TypeAndLastFourDigits() const; 93 string16 TypeAndLastFourDigits() const;
93 94
94 const string16& descriptive_name() const { return descriptive_name_; } 95 const string16& descriptive_name() const { return descriptive_name_; }
95 const Type& type() const { return type_; } 96 const Type& type() const { return type_; }
96 const std::vector<string16>& supported_currencies() const { 97 const std::vector<string16>& supported_currencies() const {
97 return supported_currencies_; 98 return supported_currencies_;
98 } 99 }
99 const string16& last_four_digits() const { return last_four_digits_; } 100 const string16& last_four_digits() const { return last_four_digits_; }
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 // Legal documents the user must accept before using Online Wallet. 283 // Legal documents the user must accept before using Online Wallet.
283 ScopedVector<LegalDocument> legal_documents_; 284 ScopedVector<LegalDocument> legal_documents_;
284 285
285 DISALLOW_COPY_AND_ASSIGN(WalletItems); 286 DISALLOW_COPY_AND_ASSIGN(WalletItems);
286 }; 287 };
287 288
288 } // namespace wallet 289 } // namespace wallet
289 } // namespace autofill 290 } // namespace autofill
290 291
291 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ 292 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_
OLDNEW
« no previous file with comments | « components/autofill/browser/wallet/wallet_address.cc ('k') | components/autofill/browser/wallet/wallet_items.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698