| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef OpenedFrameTracker_h | 5 #ifndef OpenedFrameTracker_h |
| 6 #define OpenedFrameTracker_h | 6 #define OpenedFrameTracker_h |
| 7 | 7 |
| 8 #include "wtf/HashSet.h" | 8 #include "wtf/HashSet.h" |
| 9 #include "wtf/Noncopyable.h" | 9 #include "wtf/Noncopyable.h" |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 void add(WebFrame*); | 27 void add(WebFrame*); |
| 28 void remove(WebFrame*); | 28 void remove(WebFrame*); |
| 29 | 29 |
| 30 // Helper used when swapping a frame into the frame tree: this updates the | 30 // Helper used when swapping a frame into the frame tree: this updates the |
| 31 // opener for opened frames to point to the new frame being swapped in. | 31 // opener for opened frames to point to the new frame being swapped in. |
| 32 void transferTo(WebFrame*); | 32 void transferTo(WebFrame*); |
| 33 | 33 |
| 34 void traceFrames(Visitor*); | 34 void traceFrames(Visitor*); |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 template <typename VisitorDispatcher> | |
| 38 void traceFramesImpl(VisitorDispatcher); | |
| 39 | |
| 40 WTF::HashSet<WebFrame*> m_openedFrames; | 37 WTF::HashSet<WebFrame*> m_openedFrames; |
| 41 }; | 38 }; |
| 42 | 39 |
| 43 } // namespace blink | 40 } // namespace blink |
| 44 | 41 |
| 45 #endif // WebFramePrivate_h | 42 #endif // WebFramePrivate_h |
| OLD | NEW |