OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
3 * 1999-2001 Lars Knoll <knoll@kde.org> | 3 * 1999-2001 Lars Knoll <knoll@kde.org> |
4 * 1999-2001 Antti Koivisto <koivisto@kde.org> | 4 * 1999-2001 Antti Koivisto <koivisto@kde.org> |
5 * 2000-2001 Simon Hausmann <hausmann@kde.org> | 5 * 2000-2001 Simon Hausmann <hausmann@kde.org> |
6 * 2000-2001 Dirk Mueller <mueller@kde.org> | 6 * 2000-2001 Dirk Mueller <mueller@kde.org> |
7 * 2000 Stefan Schimanski <1Stein@gmx.de> | 7 * 2000 Stefan Schimanski <1Stein@gmx.de> |
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
(...skipping 18 matching lines...) Expand all Loading... |
29 #define LocalFrame_h | 29 #define LocalFrame_h |
30 | 30 |
31 #include "core/CoreExport.h" | 31 #include "core/CoreExport.h" |
32 #include "core/dom/WeakIdentifierMap.h" | 32 #include "core/dom/WeakIdentifierMap.h" |
33 #include "core/frame/Frame.h" | 33 #include "core/frame/Frame.h" |
34 #include "core/frame/LocalFrameLifecycleNotifier.h" | 34 #include "core/frame/LocalFrameLifecycleNotifier.h" |
35 #include "core/frame/LocalFrameLifecycleObserver.h" | 35 #include "core/frame/LocalFrameLifecycleObserver.h" |
36 #include "core/loader/FrameLoader.h" | 36 #include "core/loader/FrameLoader.h" |
37 #include "core/page/FrameTree.h" | 37 #include "core/page/FrameTree.h" |
38 #include "core/paint/PaintPhase.h" | 38 #include "core/paint/PaintPhase.h" |
| 39 #include "platform/MemoryPurgeController.h" |
39 #include "platform/Supplementable.h" | 40 #include "platform/Supplementable.h" |
40 #include "platform/graphics/ImageOrientation.h" | 41 #include "platform/graphics/ImageOrientation.h" |
41 #include "platform/graphics/paint/DisplayItem.h" | 42 #include "platform/graphics/paint/DisplayItem.h" |
42 #include "platform/heap/Handle.h" | 43 #include "platform/heap/Handle.h" |
43 #include "platform/scroll/ScrollTypes.h" | 44 #include "platform/scroll/ScrollTypes.h" |
44 #include "wtf/HashSet.h" | 45 #include "wtf/HashSet.h" |
45 | 46 |
46 namespace blink { | 47 namespace blink { |
47 | 48 |
48 class Color; | 49 class Color; |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 bool shouldThrottleRendering() const; | 183 bool shouldThrottleRendering() const; |
183 | 184 |
184 // Returns the frame scheduler, creating one if needed. | 185 // Returns the frame scheduler, creating one if needed. |
185 WebFrameScheduler* frameScheduler(); | 186 WebFrameScheduler* frameScheduler(); |
186 void scheduleVisualUpdateUnlessThrottled(); | 187 void scheduleVisualUpdateUnlessThrottled(); |
187 | 188 |
188 void updateSecurityOrigin(SecurityOrigin*); | 189 void updateSecurityOrigin(SecurityOrigin*); |
189 | 190 |
190 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; } | 191 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; } |
191 | 192 |
| 193 void purgeMemory(DeviceKind); |
| 194 |
192 private: | 195 private: |
193 friend class FrameNavigationDisabler; | 196 friend class FrameNavigationDisabler; |
194 | 197 |
195 LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*); | 198 LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*); |
196 | 199 |
197 // Internal Frame helper overrides: | 200 // Internal Frame helper overrides: |
198 WindowProxyManager* windowProxyManager() const override; | 201 WindowProxyManager* windowProxyManager() const override; |
199 | 202 |
200 String localLayerTreeAsText(unsigned flags) const; | 203 String localLayerTreeAsText(unsigned flags) const; |
201 | 204 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 explicit FrameNavigationDisabler(LocalFrame&); | 324 explicit FrameNavigationDisabler(LocalFrame&); |
322 ~FrameNavigationDisabler(); | 325 ~FrameNavigationDisabler(); |
323 | 326 |
324 private: | 327 private: |
325 RawPtrWillBeMember<LocalFrame> m_frame; | 328 RawPtrWillBeMember<LocalFrame> m_frame; |
326 }; | 329 }; |
327 | 330 |
328 } // namespace blink | 331 } // namespace blink |
329 | 332 |
330 #endif // LocalFrame_h | 333 #endif // LocalFrame_h |
OLD | NEW |