| 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 BASE_JSON_JSON_VALUE_CONVERTER_H_ | 5 #ifndef BASE_JSON_JSON_VALUE_CONVERTER_H_ |
| 6 #define BASE_JSON_JSON_VALUE_CONVERTER_H_ | 6 #define BASE_JSON_JSON_VALUE_CONVERTER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 #include "base/base_export.h" | 13 #include "base/base_export.h" |
| 12 #include "base/basictypes.h" | |
| 13 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" |
| 14 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/memory/scoped_vector.h" | 17 #include "base/memory/scoped_vector.h" |
| 16 #include "base/stl_util.h" | 18 #include "base/stl_util.h" |
| 17 #include "base/strings/string16.h" | 19 #include "base/strings/string16.h" |
| 18 #include "base/strings/string_piece.h" | 20 #include "base/strings/string_piece.h" |
| 19 #include "base/values.h" | 21 #include "base/values.h" |
| 20 | 22 |
| 21 // JSONValueConverter converts a JSON value into a C++ struct in a | 23 // JSONValueConverter converts a JSON value into a C++ struct in a |
| 22 // lightweight way. | 24 // lightweight way. |
| 23 // | 25 // |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 | 507 |
| 506 private: | 508 private: |
| 507 ScopedVector<internal::FieldConverterBase<StructType> > fields_; | 509 ScopedVector<internal::FieldConverterBase<StructType> > fields_; |
| 508 | 510 |
| 509 DISALLOW_COPY_AND_ASSIGN(JSONValueConverter); | 511 DISALLOW_COPY_AND_ASSIGN(JSONValueConverter); |
| 510 }; | 512 }; |
| 511 | 513 |
| 512 } // namespace base | 514 } // namespace base |
| 513 | 515 |
| 514 #endif // BASE_JSON_JSON_VALUE_CONVERTER_H_ | 516 #endif // BASE_JSON_JSON_VALUE_CONVERTER_H_ |
| OLD | NEW |