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

Unified Diff: chrome/browser/autofill/wallet/wallet_address.h

Issue 12208070: allow wallet items to appear in requestAutocomplete UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang fix Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/wallet/wallet_address.h
diff --git a/chrome/browser/autofill/wallet/wallet_address.h b/chrome/browser/autofill/wallet/wallet_address.h
index 7855a23f10f976e29a4647f24673d99072bfaa17..86f7b9a45b1ca7c66931470a967a775849f6c990 100644
--- a/chrome/browser/autofill/wallet/wallet_address.h
+++ b/chrome/browser/autofill/wallet/wallet_address.h
@@ -9,6 +9,8 @@
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
+#include "base/string16.h"
+#include "chrome/browser/autofill/field_types.h"
namespace base {
class DictionaryValue;
@@ -87,6 +89,13 @@ class Address {
// sent to the server in a slightly different format.
scoped_ptr<base::DictionaryValue> ToDictionaryWithoutID() const;
+ // Returns a string that summarizes this address, suitable for display to
+ // the user.
+ string16 DisplayName() const;
+
+ // Returns data appropriate for |type|.
+ string16 GetInfo(AutofillFieldType type) const;
+
// Returns an empty scoped_ptr if input is invalid or a valid address that is
// selectable for Google Wallet use.
static scoped_ptr<Address>

Powered by Google App Engine
This is Rietveld 408576698