| 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 14 matching lines...) Expand all Loading... |
| 25 * Boston, MA 02110-1301, USA. | 25 * Boston, MA 02110-1301, USA. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #ifndef Frame_h | 28 #ifndef Frame_h |
| 29 #define Frame_h | 29 #define Frame_h |
| 30 | 30 |
| 31 #include "core/CoreExport.h" | 31 #include "core/CoreExport.h" |
| 32 #include "core/frame/FrameTypes.h" | 32 #include "core/frame/FrameTypes.h" |
| 33 #include "core/loader/FrameLoaderTypes.h" | 33 #include "core/loader/FrameLoaderTypes.h" |
| 34 #include "core/page/FrameTree.h" | 34 #include "core/page/FrameTree.h" |
| 35 #include "platform/TraceEvent.h" |
| 35 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
| 36 #include "wtf/Forward.h" | 37 #include "wtf/Forward.h" |
| 37 #include "wtf/RefCounted.h" | 38 #include "wtf/RefCounted.h" |
| 38 | 39 |
| 39 namespace blink { | 40 namespace blink { |
| 40 | 41 |
| 41 class ChromeClient; | 42 class ChromeClient; |
| 42 class DOMWindow; | 43 class DOMWindow; |
| 43 class DOMWrapperWorld; | 44 class DOMWrapperWorld; |
| 44 class Document; | 45 class Document; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 protected: | 137 protected: |
| 137 Frame(FrameClient*, FrameHost*, FrameOwner*); | 138 Frame(FrameClient*, FrameHost*, FrameOwner*); |
| 138 | 139 |
| 139 mutable FrameTree m_treeNode; | 140 mutable FrameTree m_treeNode; |
| 140 | 141 |
| 141 RawPtrWillBeMember<FrameHost> m_host; | 142 RawPtrWillBeMember<FrameHost> m_host; |
| 142 RawPtrWillBeMember<FrameOwner> m_owner; | 143 RawPtrWillBeMember<FrameOwner> m_owner; |
| 143 | 144 |
| 144 private: | 145 private: |
| 145 RawPtrWillBeMember<FrameClient> m_client; | 146 RawPtrWillBeMember<FrameClient> m_client; |
| 146 // Needed to identify Frame Timing requests. | 147 // Needed to identify Frame Timing requests. Also used for trace-based frame
blaming. |
| 147 int64_t m_frameID; | 148 int64_t m_frameID; |
| 148 bool m_isLoading; | 149 bool m_isLoading; |
| 149 }; | 150 }; |
| 150 | 151 |
| 151 inline FrameClient* Frame::client() const | 152 inline FrameClient* Frame::client() const |
| 152 { | 153 { |
| 153 return m_client; | 154 return m_client; |
| 154 } | 155 } |
| 155 | 156 |
| 156 inline FrameOwner* Frame::owner() const | 157 inline FrameOwner* Frame::owner() const |
| 157 { | 158 { |
| 158 return m_owner; | 159 return m_owner; |
| 159 } | 160 } |
| 160 | 161 |
| 161 inline FrameTree& Frame::tree() const | 162 inline FrameTree& Frame::tree() const |
| 162 { | 163 { |
| 163 return m_treeNode; | 164 return m_treeNode; |
| 164 } | 165 } |
| 165 | 166 |
| 166 // Allow equality comparisons of Frames by reference or pointer, interchangeably
. | 167 // Allow equality comparisons of Frames by reference or pointer, interchangeably
. |
| 167 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) | 168 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) |
| 168 | 169 |
| 169 } // namespace blink | 170 } // namespace blink |
| 170 | 171 |
| 171 #endif // Frame_h | 172 #endif // Frame_h |
| OLD | NEW |