| 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 #ifndef COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_H_ | 5 #ifndef COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_H_ |
| 6 #define COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_H_ | 6 #define COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/callback.h" | 10 #include "base/callback.h" |
| 12 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 13 | 12 |
| 14 namespace base { | 13 namespace base { |
| 15 class Value; | 14 class Value; |
| 16 } | 15 } |
| 17 | 16 |
| 18 namespace safe_json { | 17 namespace safe_json { |
| 19 | 18 |
| 20 // SafeJsonParser parses a given JSON safely via a platform-dependent mechanism | 19 // SafeJsonParser parses a given JSON safely via a platform-dependent mechanism |
| (...skipping 21 matching lines...) Expand all Loading... |
| 42 protected: | 41 protected: |
| 43 virtual ~SafeJsonParser() {} | 42 virtual ~SafeJsonParser() {} |
| 44 | 43 |
| 45 private: | 44 private: |
| 46 virtual void Start() = 0; | 45 virtual void Start() = 0; |
| 47 }; | 46 }; |
| 48 | 47 |
| 49 } // namespace safe_json | 48 } // namespace safe_json |
| 50 | 49 |
| 51 #endif // COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_H_ | 50 #endif // COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_H_ |
| OLD | NEW |