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

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

Issue 106353005: Expose performance.memory in workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@Perf-Memory-SharedWorker
Patch Set: Created 6 years, 7 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: Source/core/timing/MemoryInfo.h
diff --git a/Source/core/timing/MemoryInfo.h b/Source/core/timing/MemoryInfo.h
index 2c4b37ac388485fe71229bfabb6d024eb0c2287d..32678d533f9cc696c2d3358801ef4cf92d00e316 100644
--- a/Source/core/timing/MemoryInfo.h
+++ b/Source/core/timing/MemoryInfo.h
@@ -39,13 +39,11 @@
namespace WebCore {
-class LocalFrame;
-
class MemoryInfo : public RefCountedWillBeGarbageCollectedFinalized<MemoryInfo>, public ScriptWrappable {
public:
- static PassRefPtrWillBeRawPtr<MemoryInfo> create(LocalFrame* frame)
+ static PassRefPtrWillBeRawPtr<MemoryInfo> create()
{
- return adoptRefWillBeNoop(new MemoryInfo(frame));
+ return adoptRefWillBeNoop(new MemoryInfo());
}
size_t totalJSHeapSize() const { return m_info.totalJSHeapSize; }
@@ -55,7 +53,7 @@ public:
void trace(Visitor*) { }
private:
- explicit MemoryInfo(LocalFrame*);
+ MemoryInfo();
HeapInfo m_info;
};

Powered by Google App Engine
This is Rietveld 408576698