Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: Source/core/frame/Frame.h

Issue 1156473002: Refactor FrameLoader loading interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/core/frame/FrameTypes.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 23 matching lines...) Expand all
66 virtual bool isLocalFrame() const { return false; } 67 virtual bool isLocalFrame() const { return false; }
67 virtual bool isRemoteFrame() const { return false; } 68 virtual bool isRemoteFrame() const { return false; }
68 69
69 virtual DOMWindow* domWindow() const = 0; 70 virtual DOMWindow* domWindow() const = 0;
70 virtual WindowProxy* windowProxy(DOMWrapperWorld&) = 0; 71 virtual WindowProxy* windowProxy(DOMWrapperWorld&) = 0;
71 72
72 virtual void navigate(Document& originDocument, const KURL&, bool lockBackFo rwardList, UserGestureStatus) = 0; 73 virtual void navigate(Document& originDocument, const KURL&, bool lockBackFo rwardList, UserGestureStatus) = 0;
73 // This version of Frame::navigate assumes the resulting navigation is not 74 // This version of Frame::navigate assumes the resulting navigation is not
74 // to be started on a timer. Use the method above in such cases. 75 // to be started on a timer. Use the method above in such cases.
75 virtual void navigate(const FrameLoadRequest&) = 0; 76 virtual void navigate(const FrameLoadRequest&) = 0;
76 virtual void reload(ReloadPolicy, ClientRedirectPolicy) = 0; 77 virtual void reload(FrameLoadType, ClientRedirectPolicy) = 0;
77 78
78 virtual void detach(); 79 virtual void detach();
79 void detachChildren(); 80 void detachChildren();
80 virtual void disconnectOwnerElement(); 81 virtual void disconnectOwnerElement();
81 82
82 FrameClient* client() const; 83 FrameClient* client() const;
83 84
84 // NOTE: Page is moving out of Blink up into the browser process as 85 // NOTE: Page is moving out of Blink up into the browser process as
85 // part of the site-isolation (out of process iframes) work. 86 // part of the site-isolation (out of process iframes) work.
86 // FrameHost should be used instead where possible. 87 // FrameHost should be used instead where possible.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 { 152 {
152 return m_treeNode; 153 return m_treeNode;
153 } 154 }
154 155
155 // Allow equality comparisons of Frames by reference or pointer, interchangeably . 156 // Allow equality comparisons of Frames by reference or pointer, interchangeably .
156 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) 157 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame)
157 158
158 } // namespace blink 159 } // namespace blink
159 160
160 #endif // Frame_h 161 #endif // Frame_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/FrameTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698