Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: third_party/WebKit/Source/platform/JSONParser.h

Issue 2205933002: Add JSON parser to Source/platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Switch to unique_ptr version of JSONValue classes Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/JSONParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/JSONParser.h
diff --git a/third_party/WebKit/Source/platform/geometry/IntPoint.cpp b/third_party/WebKit/Source/platform/JSONParser.h
similarity index 52%
copy from third_party/WebKit/Source/platform/geometry/IntPoint.cpp
copy to third_party/WebKit/Source/platform/JSONParser.h
index 96b2add70b77a695436834267841ed42cab1fe4b..b208d91474c94d1b25a4948bc46356d9ccd4a9e9 100644
--- a/third_party/WebKit/Source/platform/geometry/IntPoint.cpp
+++ b/third_party/WebKit/Source/platform/JSONParser.h
@@ -2,17 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "platform/geometry/IntPoint.h"
+#ifndef JSONParser_h
+#define JSONParser_h
+#include "platform/PlatformExport.h"
#include "wtf/text/WTFString.h"
+#include <memory>
+
namespace blink {
-#ifndef NDEBUG
-String IntPoint::toString() const
-{
- return String::format("%d,%d", x(), y());
-}
-#endif
+class JSONValue;
+
+PLATFORM_EXPORT std::unique_ptr<JSONValue> parseJSON(const String& json);
} // namespace blink
+
+#endif // JSONParser_h
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/JSONParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698