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

Unified Diff: Source/core/page/Page.h

Issue 1303203002: Add MemoryPurgeController (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | Source/core/page/Page.cpp » ('j') | Source/platform/MemoryPurgeController.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Page.h
diff --git a/Source/core/page/Page.h b/Source/core/page/Page.h
index bbb40f6a6721c1a30cd1bf94181281e758f434db..9340d87ece94dbd873f72a294ee8db3d1a9d56c3 100644
--- a/Source/core/page/Page.h
+++ b/Source/core/page/Page.h
@@ -32,6 +32,7 @@
#include "core/page/PageLifecycleNotifier.h"
#include "core/page/PageLifecycleObserver.h"
#include "core/page/PageVisibilityState.h"
+#include "platform/MemoryPurgeController.h"
#include "platform/Supplementable.h"
#include "platform/geometry/LayoutRect.h"
#include "platform/geometry/Region.h"
@@ -204,6 +205,8 @@ public:
static void networkStateChanged(bool online);
+ MemoryPurgeController& memoryPurgeController() { return m_memoryPurgeController; }
+
DECLARE_TRACE();
void willBeDestroyed();
@@ -273,6 +276,8 @@ private:
// A pointer to all the interfaces provided to in-process Frames for this Page.
// FIXME: Most of the members of Page should move onto FrameHost.
OwnPtrWillBeMember<FrameHost> m_frameHost;
+
+ MemoryPurgeController m_memoryPurgeController;
};
extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Page>;
« no previous file with comments | « no previous file | Source/core/page/Page.cpp » ('j') | Source/platform/MemoryPurgeController.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698