| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_ANDROID_H_ | 5 #ifndef COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_ANDROID_H_ |
| 6 #define COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_ANDROID_H_ | 6 #define COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_ANDROID_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "components/safe_json/safe_json_parser.h" | 11 #include "components/safe_json/safe_json_parser.h" |
| 11 | 12 |
| 12 namespace safe_json { | 13 namespace safe_json { |
| 13 | 14 |
| 14 class JsonSanitizer; | 15 class JsonSanitizer; |
| 15 | 16 |
| 16 class SafeJsonParserAndroid : public SafeJsonParser { | 17 class SafeJsonParserAndroid : public SafeJsonParser { |
| 17 public: | 18 public: |
| 18 SafeJsonParserAndroid(const std::string& unsafe_json, | 19 SafeJsonParserAndroid(const std::string& unsafe_json, |
| 19 const SuccessCallback& success_callback, | 20 const SuccessCallback& success_callback, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 33 const std::string unsafe_json_; | 34 const std::string unsafe_json_; |
| 34 SuccessCallback success_callback_; | 35 SuccessCallback success_callback_; |
| 35 ErrorCallback error_callback_; | 36 ErrorCallback error_callback_; |
| 36 | 37 |
| 37 DISALLOW_COPY_AND_ASSIGN(SafeJsonParserAndroid); | 38 DISALLOW_COPY_AND_ASSIGN(SafeJsonParserAndroid); |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 } // namespace safe_json | 41 } // namespace safe_json |
| 41 | 42 |
| 42 #endif // COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_ANDROID_H_ | 43 #endif // COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_ANDROID_H_ |
| OLD | NEW |