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

Unified Diff: third_party/WebKit/Source/core/timing/PerformanceEntry.h

Issue 1780523005: Fix JSON serialization of PerformanceEntry subclasses (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: third_party/WebKit/Source/core/timing/PerformanceEntry.h
diff --git a/third_party/WebKit/Source/core/timing/PerformanceEntry.h b/third_party/WebKit/Source/core/timing/PerformanceEntry.h
index 0bc7107a91756c4b7ccb3ef591fc1026afe01e8f..8f0e542abd12397a79edf28f8751a5010f210455 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceEntry.h
+++ b/third_party/WebKit/Source/core/timing/PerformanceEntry.h
@@ -41,6 +41,7 @@ namespace blink {
class ScriptState;
class ScriptValue;
+class V8ObjectBuilder;
using PerformanceEntryType = unsigned char;
using PerformanceEntryTypeMask = unsigned char;
@@ -85,6 +86,7 @@ public:
protected:
PerformanceEntry(const String& name, const String& entryType, double startTime, double finishTime);
+ virtual void buildJSONValue(V8ObjectBuilder&) const;
private:
const String m_name;

Powered by Google App Engine
This is Rietveld 408576698