OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebRemoteFrameImpl_h | 5 #ifndef WebRemoteFrameImpl_h |
6 #define WebRemoteFrameImpl_h | 6 #define WebRemoteFrameImpl_h |
7 | 7 |
8 #include "core/frame/FrameOwner.h" | 8 #include "core/frame/FrameOwner.h" |
9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
10 #include "public/web/WebRemoteFrame.h" | 10 #include "public/web/WebRemoteFrame.h" |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 void didStartLoading() override; | 188 void didStartLoading() override; |
189 void didStopLoading() override; | 189 void didStopLoading() override; |
190 | 190 |
191 #if ENABLE(OILPAN) | 191 #if ENABLE(OILPAN) |
192 DECLARE_TRACE(); | 192 DECLARE_TRACE(); |
193 #endif | 193 #endif |
194 | 194 |
195 private: | 195 private: |
196 WebRemoteFrameImpl(WebTreeScopeType, WebRemoteFrameClient*); | 196 WebRemoteFrameImpl(WebTreeScopeType, WebRemoteFrameClient*); |
197 | 197 |
198 RemoteFrameClientImpl m_frameClient; | 198 OwnPtrWillBeMember<RemoteFrameClientImpl> m_frameClient; |
199 RefPtrWillBeMember<RemoteFrame> m_frame; | 199 RefPtrWillBeMember<RemoteFrame> m_frame; |
200 WebRemoteFrameClient* m_client; | 200 WebRemoteFrameClient* m_client; |
201 | 201 |
202 WillBeHeapHashMap<WebFrame*, OwnPtrWillBeMember<FrameOwner>> m_ownersForChil
dren; | 202 WillBeHeapHashMap<WebFrame*, OwnPtrWillBeMember<FrameOwner>> m_ownersForChil
dren; |
203 | 203 |
204 #if ENABLE(OILPAN) | 204 #if ENABLE(OILPAN) |
205 // Oilpan: WebRemoteFrameImpl must remain alive until close() is called. | 205 // Oilpan: WebRemoteFrameImpl must remain alive until close() is called. |
206 // Accomplish that by keeping a self-referential Persistent<>. It is | 206 // Accomplish that by keeping a self-referential Persistent<>. It is |
207 // cleared upon close(). | 207 // cleared upon close(). |
208 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; | 208 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; |
209 #endif | 209 #endif |
210 }; | 210 }; |
211 | 211 |
212 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); | 212 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); |
213 | 213 |
214 } // namespace blink | 214 } // namespace blink |
215 | 215 |
216 #endif // WebRemoteFrameImpl_h | 216 #endif // WebRemoteFrameImpl_h |
OLD | NEW |