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

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

Issue 1897123002: Remove current implementation of frame timing events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // dispatch unload events, abort XHR requests and detach the document. 112 // dispatch unload events, abort XHR requests and detach the document.
113 // Returns true if the frame is ready to receive the next commit, or false 113 // Returns true if the frame is ready to receive the next commit, or false
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 int64_t frameID() const { return m_frameID; }
123
124 Settings* settings() const; // can be null 122 Settings* settings() const; // can be null
125 123
126 // isLoading() is true when the embedder should think a load is in progress. 124 // isLoading() is true when the embedder should think a load is in progress.
127 // In the case of LocalFrames, it means that the frame has sent a didStartLo ading() 125 // In the case of LocalFrames, it means that the frame has sent a didStartLo ading()
128 // callback, but not the matching didStopLoading(). Inside blink, you probab ly 126 // callback, but not the matching didStopLoading(). Inside blink, you probab ly
129 // want Document::loadEventFinished() instead. 127 // want Document::loadEventFinished() instead.
130 void setIsLoading(bool isLoading) { m_isLoading = isLoading; } 128 void setIsLoading(bool isLoading) { m_isLoading = isLoading; }
131 bool isLoading() const { return m_isLoading; } 129 bool isLoading() const { return m_isLoading; }
132 130
133 virtual WindowProxyManager* getWindowProxyManager() const = 0; 131 virtual WindowProxyManager* getWindowProxyManager() const = 0;
134 132
135 protected: 133 protected:
136 Frame(FrameClient*, FrameHost*, FrameOwner*); 134 Frame(FrameClient*, FrameHost*, FrameOwner*);
137 135
138 mutable FrameTree m_treeNode; 136 mutable FrameTree m_treeNode;
139 137
140 Member<FrameHost> m_host; 138 Member<FrameHost> m_host;
141 Member<FrameOwner> m_owner; 139 Member<FrameOwner> m_owner;
142 140
143 private: 141 private:
144 bool canNavigateWithoutFramebusting(const Frame&, String& errorReason); 142 bool canNavigateWithoutFramebusting(const Frame&, String& errorReason);
145 143
146 Member<FrameClient> m_client; 144 Member<FrameClient> m_client;
147 // Needed to identify Frame Timing requests.
148 int64_t m_frameID;
149 bool m_isLoading; 145 bool m_isLoading;
150 }; 146 };
151 147
152 inline FrameClient* Frame::client() const 148 inline FrameClient* Frame::client() const
153 { 149 {
154 return m_client; 150 return m_client;
155 } 151 }
156 152
157 inline FrameOwner* Frame::owner() const 153 inline FrameOwner* Frame::owner() const
158 { 154 {
159 return m_owner; 155 return m_owner;
160 } 156 }
161 157
162 inline FrameTree& Frame::tree() const 158 inline FrameTree& Frame::tree() const
163 { 159 {
164 return m_treeNode; 160 return m_treeNode;
165 } 161 }
166 162
167 // Allow equality comparisons of Frames by reference or pointer, interchangeably . 163 // Allow equality comparisons of Frames by reference or pointer, interchangeably .
168 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) 164 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame)
169 165
170 } // namespace blink 166 } // namespace blink
171 167
172 #endif // Frame_h 168 #endif // Frame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentTest.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