| OLD | NEW |
| 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 CHROME_BROWSER_UI_AUTOFILL_DATA_MODEL_WRAPPER_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_DATA_MODEL_WRAPPER_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_DATA_MODEL_WRAPPER_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_DATA_MODEL_WRAPPER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" | 10 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 DISALLOW_COPY_AND_ASSIGN(WalletInstrumentWrapper); | 150 DISALLOW_COPY_AND_ASSIGN(WalletInstrumentWrapper); |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 // A DataModelWrapper for FullWallets billing data. | 153 // A DataModelWrapper for FullWallets billing data. |
| 154 class FullWalletBillingWrapper : public DataModelWrapper { | 154 class FullWalletBillingWrapper : public DataModelWrapper { |
| 155 public: | 155 public: |
| 156 explicit FullWalletBillingWrapper(wallet::FullWallet* full_wallet); | 156 explicit FullWalletBillingWrapper(wallet::FullWallet* full_wallet); |
| 157 virtual ~FullWalletBillingWrapper(); | 157 virtual ~FullWalletBillingWrapper(); |
| 158 | 158 |
| 159 virtual string16 GetInfo(AutofillFieldType type) OVERRIDE; | 159 virtual string16 GetInfo(AutofillFieldType type) OVERRIDE; |
| 160 virtual string16 GetDisplayText() OVERRIDE; |
| 160 | 161 |
| 161 private: | 162 private: |
| 162 wallet::FullWallet* full_wallet_; | 163 wallet::FullWallet* full_wallet_; |
| 163 | 164 |
| 164 DISALLOW_COPY_AND_ASSIGN(FullWalletBillingWrapper); | 165 DISALLOW_COPY_AND_ASSIGN(FullWalletBillingWrapper); |
| 165 }; | 166 }; |
| 166 | 167 |
| 167 // A DataModelWrapper for FullWallets shipping data. | 168 // A DataModelWrapper for FullWallets shipping data. |
| 168 class FullWalletShippingWrapper : public DataModelWrapper { | 169 class FullWalletShippingWrapper : public DataModelWrapper { |
| 169 public: | 170 public: |
| 170 explicit FullWalletShippingWrapper(wallet::FullWallet* full_wallet); | 171 explicit FullWalletShippingWrapper(wallet::FullWallet* full_wallet); |
| 171 virtual ~FullWalletShippingWrapper(); | 172 virtual ~FullWalletShippingWrapper(); |
| 172 | 173 |
| 173 virtual string16 GetInfo(AutofillFieldType type) OVERRIDE; | 174 virtual string16 GetInfo(AutofillFieldType type) OVERRIDE; |
| 174 | 175 |
| 175 private: | 176 private: |
| 176 wallet::FullWallet* full_wallet_; | 177 wallet::FullWallet* full_wallet_; |
| 177 | 178 |
| 178 DISALLOW_COPY_AND_ASSIGN(FullWalletShippingWrapper); | 179 DISALLOW_COPY_AND_ASSIGN(FullWalletShippingWrapper); |
| 179 }; | 180 }; |
| 180 | 181 |
| 181 } // namespace autofill | 182 } // namespace autofill |
| 182 | 183 |
| 183 #endif // CHROME_BROWSER_UI_AUTOFILL_DATA_MODEL_WRAPPER_H_ | 184 #endif // CHROME_BROWSER_UI_AUTOFILL_DATA_MODEL_WRAPPER_H_ |
| OLD | NEW |