Chromium Code Reviews| 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/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/page/FrameTree.h" | 34 #include "core/page/FrameTree.h" |
| 34 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
| 35 #include "wtf/Forward.h" | 36 #include "wtf/Forward.h" |
| 36 #include "wtf/RefCounted.h" | 37 #include "wtf/RefCounted.h" |
| 37 | 38 |
| 38 namespace blink { | 39 namespace blink { |
| 39 | 40 |
| 40 class ChromeClient; | 41 class ChromeClient; |
| 41 class DOMWindow; | 42 class DOMWindow; |
| 42 class DOMWrapperWorld; | 43 class DOMWrapperWorld; |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 62 | 63 |
| 63 DECLARE_VIRTUAL_TRACE(); | 64 DECLARE_VIRTUAL_TRACE(); |
| 64 | 65 |
| 65 virtual bool isLocalFrame() const { return false; } | 66 virtual bool isLocalFrame() const { return false; } |
| 66 virtual bool isRemoteFrame() const { return false; } | 67 virtual bool isRemoteFrame() const { return false; } |
| 67 | 68 |
| 68 virtual DOMWindow* domWindow() const = 0; | 69 virtual DOMWindow* domWindow() const = 0; |
| 69 virtual WindowProxy* windowProxy(DOMWrapperWorld&) = 0; | 70 virtual WindowProxy* windowProxy(DOMWrapperWorld&) = 0; |
| 70 | 71 |
| 71 virtual void navigate(Document& originDocument, const KURL&, bool lockBackFo rwardList, UserGestureStatus) = 0; | 72 virtual void navigate(Document& originDocument, const KURL&, bool lockBackFo rwardList, UserGestureStatus) = 0; |
| 72 virtual void reload(ReloadPolicy, ClientRedirectPolicy) = 0; | 73 virtual void reload(FrameLoadType, ClientRedirectPolicy) = 0; |
|
Nate Chapin
2015/06/05 18:16:30
if FrameLoadType is used here, it should probably
| |
| 73 | 74 |
| 74 virtual void detach(); | 75 virtual void detach(); |
| 75 void detachChildren(); | 76 void detachChildren(); |
| 76 virtual void disconnectOwnerElement(); | 77 virtual void disconnectOwnerElement(); |
| 77 | 78 |
| 78 FrameClient* client() const; | 79 FrameClient* client() const; |
| 79 | 80 |
| 80 // NOTE: Page is moving out of Blink up into the browser process as | 81 // NOTE: Page is moving out of Blink up into the browser process as |
| 81 // part of the site-isolation (out of process iframes) work. | 82 // part of the site-isolation (out of process iframes) work. |
| 82 // FrameHost should be used instead where possible. | 83 // FrameHost should be used instead where possible. |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 147 { | 148 { |
| 148 return m_treeNode; | 149 return m_treeNode; |
| 149 } | 150 } |
| 150 | 151 |
| 151 // Allow equality comparisons of Frames by reference or pointer, interchangeably . | 152 // Allow equality comparisons of Frames by reference or pointer, interchangeably . |
| 152 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) | 153 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) |
| 153 | 154 |
| 154 } // namespace blink | 155 } // namespace blink |
| 155 | 156 |
| 156 #endif // Frame_h | 157 #endif // Frame_h |
| OLD | NEW |