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

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

Issue 2009453002: service worker: Don't control a subframe of an insecure context (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: refactor errorMessage Created 4 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
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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // In the case of LocalFrames, it means that the frame has sent a didStartLo ading() 129 // In the case of LocalFrames, it means that the frame has sent a didStartLo ading()
130 // callback, but not the matching didStopLoading(). Inside blink, you probab ly 130 // callback, but not the matching didStopLoading(). Inside blink, you probab ly
131 // want Document::loadEventFinished() instead. 131 // want Document::loadEventFinished() instead.
132 void setIsLoading(bool isLoading) { m_isLoading = isLoading; } 132 void setIsLoading(bool isLoading) { m_isLoading = isLoading; }
133 bool isLoading() const { return m_isLoading; } 133 bool isLoading() const { return m_isLoading; }
134 134
135 virtual WindowProxyManager* getWindowProxyManager() const = 0; 135 virtual WindowProxyManager* getWindowProxyManager() const = 0;
136 136
137 virtual void didChangeVisibilityState(); 137 virtual void didChangeVisibilityState();
138 138
139 // Use Document::isSecureContext() instead of this function to
140 // check whether this frame's document is a secure context.
141 //
142 // Returns whether it's possible for a document whose frame is a descendant
143 // of this frame to be a secure context, not considering scheme exceptions
144 // (since any document can be a secure context if it has a scheme
145 // exception). See Document::isSecureContextImpl for more details.
146 bool canHaveSecureChild() const;
147
139 protected: 148 protected:
140 Frame(FrameClient*, FrameHost*, FrameOwner*); 149 Frame(FrameClient*, FrameHost*, FrameOwner*);
141 150
142 mutable FrameTree m_treeNode; 151 mutable FrameTree m_treeNode;
143 152
144 Member<FrameHost> m_host; 153 Member<FrameHost> m_host;
145 Member<FrameOwner> m_owner; 154 Member<FrameOwner> m_owner;
146 155
147 private: 156 private:
148 bool canNavigateWithoutFramebusting(const Frame&, String& errorReason); 157 bool canNavigateWithoutFramebusting(const Frame&, String& errorReason);
(...skipping 16 matching lines...) Expand all
165 { 174 {
166 return m_treeNode; 175 return m_treeNode;
167 } 176 }
168 177
169 // Allow equality comparisons of Frames by reference or pointer, interchangeably . 178 // Allow equality comparisons of Frames by reference or pointer, interchangeably .
170 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) 179 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame)
171 180
172 } // namespace blink 181 } // namespace blink
173 182
174 #endif // Frame_h 183 #endif // Frame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/frame/Frame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698