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