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

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, 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: Source/core/timing/MemoryInfo.h
diff --git a/Source/core/timing/MemoryInfo.h b/Source/core/timing/MemoryInfo.h
index 218baed804ef3ee1acb7979417b1dce342399e98..5b23ec6c6e2060a44f7720646b073de210db9cdc 100644
--- a/Source/core/timing/MemoryInfo.h
+++ b/Source/core/timing/MemoryInfo.h
@@ -39,14 +39,12 @@
namespace WebCore {
-class Frame;
-
class MemoryInfo : public RefCountedWillBeGarbageCollectedFinalized<MemoryInfo>, public ScriptWrappable {
DECLARE_GC_INFO;
public:
- static PassRefPtrWillBeRawPtr<MemoryInfo> create(Frame* frame)
+ static PassRefPtrWillBeRawPtr<MemoryInfo> create()
{
- return adoptRefWillBeNoop(new MemoryInfo(frame));
+ return adoptRefWillBeNoop(new MemoryInfo());
}
size_t totalJSHeapSize() const { return m_info.totalJSHeapSize; }
@@ -56,7 +54,7 @@ public:
void trace(Visitor*) { }
private:
- explicit MemoryInfo(Frame*);
+ explicit MemoryInfo();
HeapInfo m_info;
};

Powered by Google App Engine
This is Rietveld 408576698