OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 21 matching lines...) Expand all Loading... |
32 #define JSONValues_h | 32 #define JSONValues_h |
33 | 33 |
34 #include "platform/PlatformExport.h" | 34 #include "platform/PlatformExport.h" |
35 #include "wtf/Forward.h" | 35 #include "wtf/Forward.h" |
36 #include "wtf/HashMap.h" | 36 #include "wtf/HashMap.h" |
37 #include "wtf/RefCounted.h" | 37 #include "wtf/RefCounted.h" |
38 #include "wtf/Vector.h" | 38 #include "wtf/Vector.h" |
39 #include "wtf/text/StringHash.h" | 39 #include "wtf/text/StringHash.h" |
40 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
41 | 41 |
42 namespace WebCore { | 42 namespace blink { |
43 | 43 |
44 class JSONArray; | 44 class JSONArray; |
45 class JSONObject; | 45 class JSONObject; |
46 | 46 |
47 class PLATFORM_EXPORT JSONValue : public RefCounted<JSONValue> { | 47 class PLATFORM_EXPORT JSONValue : public RefCounted<JSONValue> { |
48 public: | 48 public: |
49 static const int maxDepth = 1000; | 49 static const int maxDepth = 1000; |
50 | 50 |
51 JSONValue() : m_type(TypeNull) { } | 51 JSONValue() : m_type(TypeNull) { } |
52 virtual ~JSONValue() { } | 52 virtual ~JSONValue() { } |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 using JSONArrayBase::pushValue; | 307 using JSONArrayBase::pushValue; |
308 using JSONArrayBase::pushObject; | 308 using JSONArrayBase::pushObject; |
309 using JSONArrayBase::pushArray; | 309 using JSONArrayBase::pushArray; |
310 | 310 |
311 using JSONArrayBase::get; | 311 using JSONArrayBase::get; |
312 | 312 |
313 using JSONArrayBase::begin; | 313 using JSONArrayBase::begin; |
314 using JSONArrayBase::end; | 314 using JSONArrayBase::end; |
315 }; | 315 }; |
316 | 316 |
317 } // namespace WebCore | 317 } // namespace blink |
318 | 318 |
319 #endif // !defined(JSONValues_h) | 319 #endif // !defined(JSONValues_h) |
OLD | NEW |