| 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 // A JSON parser.  Converts strings of JSON into a Value object (see | 5 // A JSON parser.  Converts strings of JSON into a Value object (see | 
| 6 // base/values.h). | 6 // base/values.h). | 
| 7 // http://www.ietf.org/rfc/rfc4627.txt?number=4627 | 7 // http://www.ietf.org/rfc/rfc4627.txt?number=4627 | 
| 8 // | 8 // | 
| 9 // Known limitations/deviations from the RFC: | 9 // Known limitations/deviations from the RFC: | 
| 10 // - Only knows how to parse ints within the range of a signed 32 bit int and | 10 // - Only knows how to parse ints within the range of a signed 32 bit int and | 
| (...skipping 15 matching lines...) Expand all  Loading... | 
| 26 // TODO(tc): Add an option to disable comment stripping | 26 // TODO(tc): Add an option to disable comment stripping | 
| 27 | 27 | 
| 28 #ifndef BASE_JSON_JSON_READER_H_ | 28 #ifndef BASE_JSON_JSON_READER_H_ | 
| 29 #define BASE_JSON_JSON_READER_H_ | 29 #define BASE_JSON_JSON_READER_H_ | 
| 30 | 30 | 
| 31 #include <string> | 31 #include <string> | 
| 32 | 32 | 
| 33 #include "base/base_export.h" | 33 #include "base/base_export.h" | 
| 34 #include "base/basictypes.h" | 34 #include "base/basictypes.h" | 
| 35 #include "base/memory/scoped_ptr.h" | 35 #include "base/memory/scoped_ptr.h" | 
| 36 #include "base/string_piece.h" | 36 #include "base/strings/string_piece.h" | 
| 37 | 37 | 
| 38 namespace base { | 38 namespace base { | 
| 39 class Value; | 39 class Value; | 
| 40 | 40 | 
| 41 namespace internal { | 41 namespace internal { | 
| 42 class JSONParser; | 42 class JSONParser; | 
| 43 } | 43 } | 
| 44 } | 44 } | 
| 45 | 45 | 
| 46 namespace base { | 46 namespace base { | 
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 126   // numbers if appropriate. | 126   // numbers if appropriate. | 
| 127   std::string GetErrorMessage() const; | 127   std::string GetErrorMessage() const; | 
| 128 | 128 | 
| 129  private: | 129  private: | 
| 130   scoped_ptr<internal::JSONParser> parser_; | 130   scoped_ptr<internal::JSONParser> parser_; | 
| 131 }; | 131 }; | 
| 132 | 132 | 
| 133 }  // namespace base | 133 }  // namespace base | 
| 134 | 134 | 
| 135 #endif  // BASE_JSON_JSON_READER_H_ | 135 #endif  // BASE_JSON_JSON_READER_H_ | 
| OLD | NEW | 
|---|