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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 virtual ~FullWalletShippingWrapper(); | 198 virtual ~FullWalletShippingWrapper(); |
199 | 199 |
200 virtual base::string16 GetInfo(const AutofillType& type) const OVERRIDE; | 200 virtual base::string16 GetInfo(const AutofillType& type) const OVERRIDE; |
201 | 201 |
202 private: | 202 private: |
203 wallet::FullWallet* full_wallet_; | 203 wallet::FullWallet* full_wallet_; |
204 | 204 |
205 DISALLOW_COPY_AND_ASSIGN(FullWalletShippingWrapper); | 205 DISALLOW_COPY_AND_ASSIGN(FullWalletShippingWrapper); |
206 }; | 206 }; |
207 | 207 |
208 // A DataModelWrapper to copy the output of one section to the input of another. | |
209 class FieldMapWrapper : public DataModelWrapper { | |
210 public: | |
211 explicit FieldMapWrapper(const FieldValueMap& field_map); | |
212 virtual ~FieldMapWrapper(); | |
213 | |
214 virtual base::string16 GetInfo(const AutofillType& type) const OVERRIDE; | |
215 | |
216 private: | |
217 const FieldValueMap& field_map_; | |
218 | |
219 DISALLOW_COPY_AND_ASSIGN(FieldMapWrapper); | |
220 }; | |
221 | |
222 } // namespace autofill | 208 } // namespace autofill |
223 | 209 |
224 #endif // CHROME_BROWSER_UI_AUTOFILL_DATA_MODEL_WRAPPER_H_ | 210 #endif // CHROME_BROWSER_UI_AUTOFILL_DATA_MODEL_WRAPPER_H_ |
OLD | NEW |