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

Side by Side Diff: base/json/json_reader.h

Issue 1538743002: Switch to standard integer types in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DEPS roll too Created 4 years, 12 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 unified diff | Download patch
« no previous file with comments | « base/json/json_parser_unittest.cc ('k') | base/json/json_reader_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 13 matching lines...) Expand all
24 // TODO(tc): Add a parsing option to to relax object keys being wrapped in 24 // TODO(tc): Add a parsing option to to relax object keys being wrapped in
25 // double quotes 25 // double quotes
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"
35 #include "base/memory/scoped_ptr.h" 34 #include "base/memory/scoped_ptr.h"
36 #include "base/strings/string_piece.h" 35 #include "base/strings/string_piece.h"
37 36
38 namespace base { 37 namespace base {
39 38
40 class Value; 39 class Value;
41 40
42 namespace internal { 41 namespace internal {
43 class JSONParser; 42 class JSONParser;
44 } 43 }
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // numbers if appropriate. 124 // numbers if appropriate.
126 std::string GetErrorMessage() const; 125 std::string GetErrorMessage() const;
127 126
128 private: 127 private:
129 scoped_ptr<internal::JSONParser> parser_; 128 scoped_ptr<internal::JSONParser> parser_;
130 }; 129 };
131 130
132 } // namespace base 131 } // namespace base
133 132
134 #endif // BASE_JSON_JSON_READER_H_ 133 #endif // BASE_JSON_JSON_READER_H_
OLDNEW
« no previous file with comments | « base/json/json_parser_unittest.cc ('k') | base/json/json_reader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698