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

Unified Diff: runtime/platform/json.h

Issue 12035086: Verify integrity of JSOM messages sent to debugger client (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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
Index: runtime/platform/json.h
===================================================================
--- runtime/platform/json.h (revision 17486)
+++ runtime/platform/json.h (working copy)
@@ -102,7 +102,14 @@
return scanner_.CurrentToken() == JSONScanner::TokenNull;
}
+ // Debugging method to check for validity of a JSON message.
+ bool CheckMessage();
+
private:
+ void CheckObject();
+ void CheckArray();
+ void CheckValue();
+
JSONScanner scanner_;
const char* json_object_;
bool error_;

Powered by Google App Engine
This is Rietveld 408576698