| Index: Source/core/timing/MemoryInfo.h
|
| diff --git a/Source/core/timing/MemoryInfo.h b/Source/core/timing/MemoryInfo.h
|
| index 59629a44dc8cf362f550bb2756e601d31bba0b00..890c374458b984bdf436f204715e146b72bed154 100644
|
| --- a/Source/core/timing/MemoryInfo.h
|
| +++ b/Source/core/timing/MemoryInfo.h
|
| @@ -38,18 +38,19 @@
|
|
|
| namespace WebCore {
|
|
|
| -class Frame;
|
| +class ExecutionContext;
|
|
|
| class MemoryInfo : public RefCounted<MemoryInfo>, public ScriptWrappable {
|
| public:
|
| - static PassRefPtr<MemoryInfo> create(Frame* frame) { return adoptRef(new MemoryInfo(frame)); }
|
| + static PassRefPtr<MemoryInfo> create(ExecutionContext* context) { return adoptRef(new MemoryInfo(context)); }
|
|
|
| size_t totalJSHeapSize() const { return m_info.totalJSHeapSize; }
|
| size_t usedJSHeapSize() const { return m_info.usedJSHeapSize; }
|
| size_t jsHeapSizeLimit() const { return m_info.jsHeapSizeLimit; }
|
|
|
| private:
|
| - explicit MemoryInfo(Frame*);
|
| + explicit MemoryInfo(ExecutionContext*);
|
| + void loadMemoryInfo(bool);
|
|
|
| HeapInfo m_info;
|
| };
|
|
|