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 "components/safe_json/safe_json_parser.h" | 5 #include "components/safe_json/safe_json_parser.h" |
6 | 6 |
| 7 #include "build/build_config.h" |
| 8 |
7 #if defined(OS_ANDROID) | 9 #if defined(OS_ANDROID) |
8 #include "components/safe_json/safe_json_parser_android.h" | 10 #include "components/safe_json/safe_json_parser_android.h" |
9 #else | 11 #else |
10 #include "components/safe_json/safe_json_parser_impl.h" | 12 #include "components/safe_json/safe_json_parser_impl.h" |
11 #endif | 13 #endif |
12 | 14 |
13 namespace safe_json { | 15 namespace safe_json { |
14 | 16 |
15 namespace { | 17 namespace { |
16 | 18 |
(...skipping 23 matching lines...) Expand all Loading... |
40 // static | 42 // static |
41 void SafeJsonParser::Parse(const std::string& unsafe_json, | 43 void SafeJsonParser::Parse(const std::string& unsafe_json, |
42 const SuccessCallback& success_callback, | 44 const SuccessCallback& success_callback, |
43 const ErrorCallback& error_callback) { | 45 const ErrorCallback& error_callback) { |
44 SafeJsonParser* parser = | 46 SafeJsonParser* parser = |
45 Create(unsafe_json, success_callback, error_callback); | 47 Create(unsafe_json, success_callback, error_callback); |
46 parser->Start(); | 48 parser->Start(); |
47 } | 49 } |
48 | 50 |
49 } // namespace safe_json | 51 } // namespace safe_json |
OLD | NEW |