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

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

Issue 2422913002: Add serializers for window.performance. (Closed)
Patch Set: Add serializers for window.performance and window.performance.navigation. Created 4 years, 2 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/MemoryInfo.h
diff --git a/third_party/WebKit/Source/core/timing/MemoryInfo.h b/third_party/WebKit/Source/core/timing/MemoryInfo.h
index 47cc91732f150c3ace6025fab11530150f65c58f..a38589b0bf4e083c18f8e17b366da5a9b459c2ee 100644
--- a/third_party/WebKit/Source/core/timing/MemoryInfo.h
+++ b/third_party/WebKit/Source/core/timing/MemoryInfo.h
@@ -38,6 +38,9 @@
namespace blink {
+class ScriptState;
+class ScriptValue;
+
struct HeapInfo {
DISALLOW_NEW();
HeapInfo() : usedJSHeapSize(0), totalJSHeapSize(0), jsHeapSizeLimit(0) {}
@@ -58,6 +61,8 @@ class CORE_EXPORT MemoryInfo final : public GarbageCollected<MemoryInfo>,
size_t usedJSHeapSize() const { return m_info.usedJSHeapSize; }
size_t jsHeapSizeLimit() const { return m_info.jsHeapSizeLimit; }
+ ScriptValue toJSONForBinding(ScriptState*) const;
+
DEFINE_INLINE_TRACE() {}
private:

Powered by Google App Engine
This is Rietveld 408576698