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

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

Issue 1853543002: Add -ifsameorigin to autoplay experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@autoplay
Patch Set: comment. Created 4 years, 7 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 | third_party/WebKit/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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // otherwise. 114 // otherwise.
115 virtual bool prepareForCommit() = 0; 115 virtual bool prepareForCommit() = 0;
116 116
117 bool canNavigate(const Frame&); 117 bool canNavigate(const Frame&);
118 virtual void printNavigationErrorMessage(const Frame&, const char* reason) = 0; 118 virtual void printNavigationErrorMessage(const Frame&, const char* reason) = 0;
119 119
120 LayoutPart* ownerLayoutObject() const; // LayoutObject for the element that contains this frame. 120 LayoutPart* ownerLayoutObject() const; // LayoutObject for the element that contains this frame.
121 121
122 Settings* settings() const; // can be null 122 Settings* settings() const; // can be null
123 123
124 // Return true if and only if this frame is a cross-origin frame with
125 // respect to the top-level frame.
126 bool isCrossOrigin() const;
dcheng 2016/05/05 23:14:50 Sorry for missing this... I've updated my WATCHLIS
127
124 // isLoading() is true when the embedder should think a load is in progress. 128 // isLoading() is true when the embedder should think a load is in progress.
125 // 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()
126 // callback, but not the matching didStopLoading(). Inside blink, you probab ly 130 // callback, but not the matching didStopLoading(). Inside blink, you probab ly
127 // want Document::loadEventFinished() instead. 131 // want Document::loadEventFinished() instead.
128 void setIsLoading(bool isLoading) { m_isLoading = isLoading; } 132 void setIsLoading(bool isLoading) { m_isLoading = isLoading; }
129 bool isLoading() const { return m_isLoading; } 133 bool isLoading() const { return m_isLoading; }
130 134
131 virtual WindowProxyManager* getWindowProxyManager() const = 0; 135 virtual WindowProxyManager* getWindowProxyManager() const = 0;
132 136
133 protected: 137 protected:
(...skipping 25 matching lines...) Expand all
159 { 163 {
160 return m_treeNode; 164 return m_treeNode;
161 } 165 }
162 166
163 // Allow equality comparisons of Frames by reference or pointer, interchangeably . 167 // Allow equality comparisons of Frames by reference or pointer, interchangeably .
164 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) 168 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame)
165 169
166 } // namespace blink 170 } // namespace blink
167 171
168 #endif // Frame_h 172 #endif // Frame_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/Frame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698