| 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 12 matching lines...) Expand all Loading... |
| 23 * along with this library; see the file COPYING.LIB. If not, write to | 23 * along with this library; see the file COPYING.LIB. If not, write to |
| 24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 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/page/FrameTree.h" | 31 #include "core/page/FrameTree.h" |
| 32 #include "platform/heap/Handle.h" | 32 #include "platform/heap/Handle.h" |
| 33 #include "platform/weborigin/KURL.h" |
| 34 #include "platform/weborigin/Referrer.h" |
| 33 #include "wtf/Forward.h" | 35 #include "wtf/Forward.h" |
| 34 #include "wtf/RefCounted.h" | 36 #include "wtf/RefCounted.h" |
| 35 | 37 |
| 36 namespace blink { | 38 namespace blink { |
| 37 class WebLayer; | 39 class WebLayer; |
| 38 } | 40 } |
| 39 | 41 |
| 40 namespace blink { | 42 namespace blink { |
| 41 | 43 |
| 42 class ChromeClient; | 44 class ChromeClient; |
| 45 class Document; |
| 43 class FrameClient; | 46 class FrameClient; |
| 44 class FrameHost; | 47 class FrameHost; |
| 45 class FrameOwner; | 48 class FrameOwner; |
| 46 class HTMLFrameOwnerElement; | 49 class HTMLFrameOwnerElement; |
| 47 class LocalDOMWindow; | 50 class LocalDOMWindow; |
| 48 class Page; | 51 class Page; |
| 49 class RenderPart; | 52 class RenderPart; |
| 50 class Settings; | 53 class Settings; |
| 51 | 54 |
| 52 class Frame : public RefCounted<Frame> { | 55 class Frame : public RefCounted<Frame> { |
| 53 public: | 56 public: |
| 54 virtual bool isLocalFrame() const { return false; } | 57 virtual bool isLocalFrame() const { return false; } |
| 55 virtual bool isRemoteFrame() const { return false; } | 58 virtual bool isRemoteFrame() const { return false; } |
| 56 | 59 |
| 57 virtual ~Frame(); | 60 virtual ~Frame(); |
| 58 | 61 |
| 62 virtual void navigate(Document& originDocument, const KURL&, const Referrer&
, bool lockBackForwardList) = 0; |
| 59 virtual void detach() = 0; | 63 virtual void detach() = 0; |
| 60 void detachChildren(); | 64 void detachChildren(); |
| 61 | 65 |
| 62 FrameClient* client() const; | 66 FrameClient* client() const; |
| 63 void clearClient(); | 67 void clearClient(); |
| 64 | 68 |
| 65 // NOTE: Page is moving out of Blink up into the browser process as | 69 // NOTE: Page is moving out of Blink up into the browser process as |
| 66 // part of the site-isolation (out of process iframes) work. | 70 // part of the site-isolation (out of process iframes) work. |
| 67 // FrameHost should be used instead where possible. | 71 // FrameHost should be used instead where possible. |
| 68 Page* page() const; | 72 Page* page() const; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 { | 141 { |
| 138 return m_treeNode; | 142 return m_treeNode; |
| 139 } | 143 } |
| 140 | 144 |
| 141 // Allow equality comparisons of Frames by reference or pointer, interchangeably
. | 145 // Allow equality comparisons of Frames by reference or pointer, interchangeably
. |
| 142 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) | 146 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) |
| 143 | 147 |
| 144 } // namespace blink | 148 } // namespace blink |
| 145 | 149 |
| 146 #endif // Frame_h | 150 #endif // Frame_h |
| OLD | NEW |