OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 // commit-time. | 452 // commit-time. |
453 void setParent(WebFrame*); | 453 void setParent(WebFrame*); |
454 | 454 |
455 private: | 455 private: |
456 #if BLINK_IMPLEMENTATION | 456 #if BLINK_IMPLEMENTATION |
457 friend class OpenedFrameTracker; | 457 friend class OpenedFrameTracker; |
458 friend class WebFrameTest; | 458 friend class WebFrameTest; |
459 | 459 |
460 static void traceFrame(Visitor*, WebFrame*); | 460 static void traceFrame(Visitor*, WebFrame*); |
461 static bool isFrameAlive(const WebFrame*); | 461 static bool isFrameAlive(const WebFrame*); |
462 | |
463 template <typename VisitorDispatcher> | |
464 static void traceFramesImpl(VisitorDispatcher, WebFrame*); | |
465 template <typename VisitorDispatcher> | |
466 void clearWeakFramesImpl(VisitorDispatcher); | |
467 template <typename VisitorDispatcher> | |
468 static void traceFrameImpl(VisitorDispatcher, WebFrame*); | |
469 #endif | 462 #endif |
470 | 463 |
471 const WebTreeScopeType m_scope; | 464 const WebTreeScopeType m_scope; |
472 | 465 |
473 WebFrame* m_parent; | 466 WebFrame* m_parent; |
474 WebFrame* m_previousSibling; | 467 WebFrame* m_previousSibling; |
475 WebFrame* m_nextSibling; | 468 WebFrame* m_nextSibling; |
476 WebFrame* m_firstChild; | 469 WebFrame* m_firstChild; |
477 WebFrame* m_lastChild; | 470 WebFrame* m_lastChild; |
478 | 471 |
479 WebFrame* m_opener; | 472 WebFrame* m_opener; |
480 std::unique_ptr<OpenedFrameTracker> m_openedFrameTracker; | 473 std::unique_ptr<OpenedFrameTracker> m_openedFrameTracker; |
481 }; | 474 }; |
482 | 475 |
483 } // namespace blink | 476 } // namespace blink |
484 | 477 |
485 #endif | 478 #endif |
OLD | NEW |