OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 #include "platform/heap/Handle.h" | 23 #include "platform/heap/Handle.h" |
24 #include "wtf/RefPtr.h" | 24 #include "wtf/RefPtr.h" |
25 #include "wtf/Vector.h" | 25 #include "wtf/Vector.h" |
26 | 26 |
27 namespace blink { | 27 namespace blink { |
28 | 28 |
29 class LocalFrame; | 29 class LocalFrame; |
30 class Page; | 30 class Page; |
31 | 31 |
32 class ScopedPageLoadDeferrer FINAL : public NoBaseWillBeGarbageCollectedFinalize
d<ScopedPageLoadDeferrer> { | 32 class ScopedPageLoadDeferrer final : public NoBaseWillBeGarbageCollectedFinalize
d<ScopedPageLoadDeferrer> { |
33 WTF_MAKE_NONCOPYABLE(ScopedPageLoadDeferrer); | 33 WTF_MAKE_NONCOPYABLE(ScopedPageLoadDeferrer); |
34 public: | 34 public: |
35 ScopedPageLoadDeferrer(Page* exclusion = 0); | 35 ScopedPageLoadDeferrer(Page* exclusion = 0); |
36 ~ScopedPageLoadDeferrer(); | 36 ~ScopedPageLoadDeferrer(); |
37 | 37 |
38 #if ENABLE(OILPAN) | 38 #if ENABLE(OILPAN) |
39 void dispose(); | 39 void dispose(); |
40 #endif | 40 #endif |
41 | 41 |
42 void trace(Visitor*); | 42 void trace(Visitor*); |
43 | 43 |
44 private: | 44 private: |
45 void detach(); | 45 void detach(); |
46 | 46 |
47 WillBeHeapVector<RefPtrWillBeMember<LocalFrame>, 16> m_deferredFrames; | 47 WillBeHeapVector<RefPtrWillBeMember<LocalFrame>, 16> m_deferredFrames; |
48 }; | 48 }; |
49 | 49 |
50 } // namespace blink | 50 } // namespace blink |
51 | 51 |
52 #endif // ScopedPageLoadDeferrer_h | 52 #endif // ScopedPageLoadDeferrer_h |
OLD | NEW |