OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef JSONValuesForV8_h |
| 6 #define JSONValuesForV8_h |
| 7 |
| 8 #include "core/CoreExport.h" |
| 9 #include "platform/JSONValues.h" |
| 10 #include "wtf/text/WTFString.h" |
| 11 #include <v8.h> |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 class ExceptionState; |
| 16 class ScriptState; |
| 17 |
| 18 CORE_EXPORT PassRefPtr<JSONValue> toJSONValue(v8::Local<v8::Context>, v8::Local<
v8::Value>, int maxDepth = JSONValue::maxDepth); |
| 19 |
| 20 CORE_EXPORT v8::Local<v8::Value> fromJSONString(ScriptState*, const String& stri
ngifiedJSON, ExceptionState&); |
| 21 |
| 22 } // namespace blink |
| 23 |
| 24 #endif // JSONValuesForV8_h |
OLD | NEW |