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

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

Issue 799923006: Make canNavigate() OOPI-friendly (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Null-check in History.cpp Created 5 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/SecurityContext.cpp ('k') | Source/core/frame/Frame.cpp » ('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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 FrameOwner* owner() const; 82 FrameOwner* owner() const;
83 void setOwner(FrameOwner* owner) { m_owner = owner; } 83 void setOwner(FrameOwner* owner) { m_owner = owner; }
84 HTMLFrameOwnerElement* deprecatedLocalOwner() const; 84 HTMLFrameOwnerElement* deprecatedLocalOwner() const;
85 85
86 FrameTree& tree() const; 86 FrameTree& tree() const;
87 ChromeClient& chromeClient() const; 87 ChromeClient& chromeClient() const;
88 88
89 virtual SecurityContext* securityContext() const = 0; 89 virtual SecurityContext* securityContext() const = 0;
90 90
91 Frame* findFrameForNavigation(const AtomicString& name, Frame& activeFrame);
92 Frame* findUnsafeParentScrollPropagationBoundary();
93
94 bool canNavigate(const Frame&);
95 virtual void printNavigationErrorMessage(const Frame&, const char* reason) = 0;
96
91 RenderPart* ownerRenderer() const; // Renderer for the element that contains this frame. 97 RenderPart* ownerRenderer() const; // Renderer for the element that contains this frame.
92 98
93 // FIXME: These should move to RemoteFrame when that is instantiated. 99 // FIXME: These should move to RemoteFrame when that is instantiated.
94 void setRemotePlatformLayer(WebLayer*); 100 void setRemotePlatformLayer(WebLayer*);
95 WebLayer* remotePlatformLayer() const { return m_remotePlatformLayer; } 101 WebLayer* remotePlatformLayer() const { return m_remotePlatformLayer; }
96 102
97 Settings* settings() const; // can be null 103 Settings* settings() const; // can be null
98 104
99 // FIXME: This method identifies a LocalFrame that is acting as a RemoteFram e. 105 // FIXME: This method identifies a LocalFrame that is acting as a RemoteFram e.
100 // It is necessary only until we can instantiate a RemoteFrame, at which poi nt 106 // It is necessary only until we can instantiate a RemoteFrame, at which poi nt
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 { 146 {
141 return m_treeNode; 147 return m_treeNode;
142 } 148 }
143 149
144 // Allow equality comparisons of Frames by reference or pointer, interchangeably . 150 // Allow equality comparisons of Frames by reference or pointer, interchangeably .
145 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) 151 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame)
146 152
147 } // namespace blink 153 } // namespace blink
148 154
149 #endif // Frame_h 155 #endif // Frame_h
OLDNEW
« no previous file with comments | « Source/core/dom/SecurityContext.cpp ('k') | Source/core/frame/Frame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698