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

Side by Side Diff: Source/core/page/Page.h

Issue 1335373003: Have a Page's MemoryPurgeController be a separate allocation also. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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"
36 #include "platform/Supplementable.h" 35 #include "platform/Supplementable.h"
37 #include "platform/geometry/LayoutRect.h" 36 #include "platform/geometry/LayoutRect.h"
38 #include "platform/geometry/Region.h" 37 #include "platform/geometry/Region.h"
39 #include "platform/heap/Handle.h" 38 #include "platform/heap/Handle.h"
40 #include "wtf/Forward.h" 39 #include "wtf/Forward.h"
41 #include "wtf/HashSet.h" 40 #include "wtf/HashSet.h"
42 #include "wtf/Noncopyable.h" 41 #include "wtf/Noncopyable.h"
43 #include "wtf/text/WTFString.h" 42 #include "wtf/text/WTFString.h"
44 43
45 namespace blink { 44 namespace blink {
46 45
47 class AutoscrollController; 46 class AutoscrollController;
48 class ChromeClient; 47 class ChromeClient;
49 class ClientRectList; 48 class ClientRectList;
50 class CompositedDisplayList; 49 class CompositedDisplayList;
51 class ContextMenuClient; 50 class ContextMenuClient;
52 class ContextMenuController; 51 class ContextMenuController;
53 class Document; 52 class Document;
54 class DragCaretController; 53 class DragCaretController;
55 class DragClient; 54 class DragClient;
56 class DragController; 55 class DragController;
57 class EditorClient; 56 class EditorClient;
58 class FocusController; 57 class FocusController;
59 class Frame; 58 class Frame;
60 class FrameHost; 59 class FrameHost;
60 class MemoryPurgeController;
61 class PluginData; 61 class PluginData;
62 class PointerLockController; 62 class PointerLockController;
63 class ScrollingCoordinator; 63 class ScrollingCoordinator;
64 class Settings; 64 class Settings;
65 class SpellCheckerClient; 65 class SpellCheckerClient;
66 class UndoStack; 66 class UndoStack;
67 class ValidationMessageClient; 67 class ValidationMessageClient;
68 68
69 typedef uint64_t LinkHash; 69 typedef uint64_t LinkHash;
70 70
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 198
199 void didCommitLoad(LocalFrame*); 199 void didCommitLoad(LocalFrame*);
200 200
201 void acceptLanguagesChanged(); 201 void acceptLanguagesChanged();
202 202
203 void setCompositedDisplayList(PassOwnPtr<CompositedDisplayList>); 203 void setCompositedDisplayList(PassOwnPtr<CompositedDisplayList>);
204 CompositedDisplayList* compositedDisplayListForTesting(); 204 CompositedDisplayList* compositedDisplayListForTesting();
205 205
206 static void networkStateChanged(bool online); 206 static void networkStateChanged(bool online);
207 207
208 MemoryPurgeController& memoryPurgeController() { return m_memoryPurgeControl ler; } 208 MemoryPurgeController& memoryPurgeController();
209 209
210 DECLARE_TRACE(); 210 DECLARE_TRACE();
211 void willBeDestroyed(); 211 void willBeDestroyed();
212 212
213 private: 213 private:
214 void initGroup(); 214 void initGroup();
215 215
216 void setTimerAlignmentInterval(double); 216 void setTimerAlignmentInterval(double);
217 217
218 void setNeedsLayoutInAllFrames(); 218 void setNeedsLayoutInAllFrames();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 #if ENABLE(ASSERT) 270 #if ENABLE(ASSERT)
271 bool m_isPainting; 271 bool m_isPainting;
272 #endif 272 #endif
273 273
274 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver>> m_mu ltisamplingChangedObservers; 274 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver>> m_mu ltisamplingChangedObservers;
275 275
276 // 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.
277 // FIXME: Most of the members of Page should move onto FrameHost. 277 // FIXME: Most of the members of Page should move onto FrameHost.
278 OwnPtrWillBeMember<FrameHost> m_frameHost; 278 OwnPtrWillBeMember<FrameHost> m_frameHost;
279 279
280 MemoryPurgeController m_memoryPurgeController; 280 OwnPtrWillBeMember<MemoryPurgeController> m_memoryPurgeController;
281 }; 281 };
282 282
283 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; 283 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Page>;
284 284
285 } // namespace blink 285 } // namespace blink
286 286
287 #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