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

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
Index: Source/core/page/Page.h
diff --git a/Source/core/page/Page.h b/Source/core/page/Page.h
index db79ad41952be94af326a559751c0bc50d7ff22c..6954469f71b0ad506acb6b015de5a75ad43ff791 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"
@@ -200,6 +201,8 @@ public:
static void networkStateChanged(bool online);
+ MemoryPurgeController& memoryPurgeController() { return m_memoryPurgeController; }
+
DECLARE_TRACE();
void willBeDestroyed();
@@ -269,6 +272,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>;

Powered by Google App Engine
This is Rietveld 408576698