OLD | NEW |
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 Loading... |
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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 194 |
194 void addMultisamplingChangedObserver(MultisamplingChangedObserver*); | 195 void addMultisamplingChangedObserver(MultisamplingChangedObserver*); |
195 void removeMultisamplingChangedObserver(MultisamplingChangedObserver*); | 196 void removeMultisamplingChangedObserver(MultisamplingChangedObserver*); |
196 | 197 |
197 void didCommitLoad(LocalFrame*); | 198 void didCommitLoad(LocalFrame*); |
198 | 199 |
199 void acceptLanguagesChanged(); | 200 void acceptLanguagesChanged(); |
200 | 201 |
201 static void networkStateChanged(bool online); | 202 static void networkStateChanged(bool online); |
202 | 203 |
| 204 MemoryPurgeController& memoryPurgeController() { return m_memoryPurgeControl
ler; } |
| 205 |
203 DECLARE_TRACE(); | 206 DECLARE_TRACE(); |
204 void willBeDestroyed(); | 207 void willBeDestroyed(); |
205 | 208 |
206 private: | 209 private: |
207 void initGroup(); | 210 void initGroup(); |
208 | 211 |
209 void setTimerAlignmentInterval(double); | 212 void setTimerAlignmentInterval(double); |
210 | 213 |
211 void setNeedsLayoutInAllFrames(); | 214 void setNeedsLayoutInAllFrames(); |
212 | 215 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 | 265 |
263 #if ENABLE(ASSERT) | 266 #if ENABLE(ASSERT) |
264 bool m_isPainting; | 267 bool m_isPainting; |
265 #endif | 268 #endif |
266 | 269 |
267 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver>> m_mu
ltisamplingChangedObservers; | 270 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver>> m_mu
ltisamplingChangedObservers; |
268 | 271 |
269 // A pointer to all the interfaces provided to in-process Frames for this Pa
ge. | 272 // A pointer to all the interfaces provided to in-process Frames for this Pa
ge. |
270 // FIXME: Most of the members of Page should move onto FrameHost. | 273 // FIXME: Most of the members of Page should move onto FrameHost. |
271 OwnPtrWillBeMember<FrameHost> m_frameHost; | 274 OwnPtrWillBeMember<FrameHost> m_frameHost; |
| 275 |
| 276 MemoryPurgeController m_memoryPurgeController; |
272 }; | 277 }; |
273 | 278 |
274 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; | 279 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; |
275 | 280 |
276 } // namespace blink | 281 } // namespace blink |
277 | 282 |
278 #endif // Page_h | 283 #endif // Page_h |
OLD | NEW |