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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/page/Page.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 14 matching lines...) Expand all
25 #include "core/dom/ViewportDescription.h" 25 #include "core/dom/ViewportDescription.h"
26 #include "core/frame/LocalFrame.h" 26 #include "core/frame/LocalFrame.h"
27 #include "core/frame/OriginsUsingFeatures.h" 27 #include "core/frame/OriginsUsingFeatures.h"
28 #include "core/frame/SettingsDelegate.h" 28 #include "core/frame/SettingsDelegate.h"
29 #include "core/frame/UseCounter.h" 29 #include "core/frame/UseCounter.h"
30 #include "core/page/Page.h" 30 #include "core/page/Page.h"
31 #include "core/page/PageAnimator.h" 31 #include "core/page/PageAnimator.h"
32 #include "core/page/PageLifecycleNotifier.h" 32 #include "core/page/PageLifecycleNotifier.h"
33 #include "core/page/PageLifecycleObserver.h" 33 #include "core/page/PageLifecycleObserver.h"
34 #include "core/page/PageVisibilityState.h" 34 #include "core/page/PageVisibilityState.h"
35 #include "platform/MemoryPurgeController.h"
35 #include "platform/Supplementable.h" 36 #include "platform/Supplementable.h"
36 #include "platform/geometry/LayoutRect.h" 37 #include "platform/geometry/LayoutRect.h"
37 #include "platform/geometry/Region.h" 38 #include "platform/geometry/Region.h"
38 #include "platform/heap/Handle.h" 39 #include "platform/heap/Handle.h"
39 #include "wtf/Forward.h" 40 #include "wtf/Forward.h"
40 #include "wtf/HashSet.h" 41 #include "wtf/HashSet.h"
41 #include "wtf/Noncopyable.h" 42 #include "wtf/Noncopyable.h"
42 #include "wtf/text/WTFString.h" 43 #include "wtf/text/WTFString.h"
43 44
44 namespace blink { 45 namespace blink {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 198
198 void didCommitLoad(LocalFrame*); 199 void didCommitLoad(LocalFrame*);
199 200
200 void acceptLanguagesChanged(); 201 void acceptLanguagesChanged();
201 202
202 void setCompositedDisplayList(PassOwnPtr<CompositedDisplayList>); 203 void setCompositedDisplayList(PassOwnPtr<CompositedDisplayList>);
203 CompositedDisplayList* compositedDisplayListForTesting(); 204 CompositedDisplayList* compositedDisplayListForTesting();
204 205
205 static void networkStateChanged(bool online); 206 static void networkStateChanged(bool online);
206 207
208 MemoryPurgeController& memoryPurgeController() { return m_memoryPurgeControl ler; }
209
207 DECLARE_TRACE(); 210 DECLARE_TRACE();
208 void willBeDestroyed(); 211 void willBeDestroyed();
209 212
210 private: 213 private:
211 void initGroup(); 214 void initGroup();
212 215
213 void setTimerAlignmentInterval(double); 216 void setTimerAlignmentInterval(double);
214 217
215 void setNeedsLayoutInAllFrames(); 218 void setNeedsLayoutInAllFrames();
216 219
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 269
267 #if ENABLE(ASSERT) 270 #if ENABLE(ASSERT)
268 bool m_isPainting; 271 bool m_isPainting;
269 #endif 272 #endif
270 273
271 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver>> m_mu ltisamplingChangedObservers; 274 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver>> m_mu ltisamplingChangedObservers;
272 275
273 // A pointer to all the interfaces provided to in-process Frames for this Pa ge. 276 // A pointer to all the interfaces provided to in-process Frames for this Pa ge.
274 // FIXME: Most of the members of Page should move onto FrameHost. 277 // FIXME: Most of the members of Page should move onto FrameHost.
275 OwnPtrWillBeMember<FrameHost> m_frameHost; 278 OwnPtrWillBeMember<FrameHost> m_frameHost;
279
280 MemoryPurgeController m_memoryPurgeController;
276 }; 281 };
277 282
278 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; 283 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Page>;
279 284
280 } // namespace blink 285 } // namespace blink
281 286
282 #endif // Page_h 287 #endif // Page_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698