OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "third_party/libaddressinput/src/cpp/src/util/json.h" | 5 #include "third_party/libaddressinput/src/cpp/src/util/json.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
12 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 | 16 |
17 namespace i18n { | 17 namespace i18n { |
18 namespace addressinput { | 18 namespace addressinput { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 // Returns |json| parsed into a JSON dictionary. Sets |parser_error| to true if | 22 // Returns |json| parsed into a JSON dictionary. Sets |parser_error| to true if |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 bool Json::GetStringValueForKey(const std::string& key, | 102 bool Json::GetStringValueForKey(const std::string& key, |
103 std::string* value) const { | 103 std::string* value) const { |
104 return impl_->GetStringValueForKey(key, value); | 104 return impl_->GetStringValueForKey(key, value); |
105 } | 105 } |
106 | 106 |
107 Json::Json(JsonImpl* impl) : impl_(impl) {} | 107 Json::Json(JsonImpl* impl) : impl_(impl) {} |
108 | 108 |
109 } // namespace addressinput | 109 } // namespace addressinput |
110 } // namespace i18n | 110 } // namespace i18n |
OLD | NEW |