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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 192 |
193 void setCoreFrame(PassRefPtrWillBeRawPtr<RemoteFrame>); | 193 void setCoreFrame(PassRefPtrWillBeRawPtr<RemoteFrame>); |
194 RemoteFrame* frame() const { return m_frame.get(); } | 194 RemoteFrame* frame() const { return m_frame.get(); } |
195 | 195 |
196 WebRemoteFrameClient* client() const { return m_client; } | 196 WebRemoteFrameClient* client() const { return m_client; } |
197 | 197 |
198 static WebRemoteFrameImpl* fromFrame(RemoteFrame&); | 198 static WebRemoteFrameImpl* fromFrame(RemoteFrame&); |
199 | 199 |
200 virtual void initializeFromFrame(WebLocalFrame*) const override; | 200 virtual void initializeFromFrame(WebLocalFrame*) const override; |
201 | 201 |
| 202 virtual void setReplicatedOrigin(const WebURL&, bool isUnique) const overrid
e; |
| 203 |
202 #if ENABLE(OILPAN) | 204 #if ENABLE(OILPAN) |
203 void trace(Visitor*); | 205 void trace(Visitor*); |
204 #endif | 206 #endif |
205 | 207 |
206 private: | 208 private: |
207 RemoteFrameClientImpl m_frameClient; | 209 RemoteFrameClientImpl m_frameClient; |
208 RefPtrWillBeMember<RemoteFrame> m_frame; | 210 RefPtrWillBeMember<RemoteFrame> m_frame; |
209 WebRemoteFrameClient* m_client; | 211 WebRemoteFrameClient* m_client; |
210 | 212 |
211 WillBeHeapHashMap<WebFrame*, OwnPtrWillBeMember<FrameOwner> > m_ownersForChi
ldren; | 213 WillBeHeapHashMap<WebFrame*, OwnPtrWillBeMember<FrameOwner> > m_ownersForChi
ldren; |
212 | 214 |
213 #if ENABLE(OILPAN) | 215 #if ENABLE(OILPAN) |
214 // Oilpan: to provide the guarantee of having the frame live until | 216 // Oilpan: to provide the guarantee of having the frame live until |
215 // close() is called, an instance keep a self-persistent. It is | 217 // close() is called, an instance keep a self-persistent. It is |
216 // cleared upon calling close(). This avoids having to assume that | 218 // cleared upon calling close(). This avoids having to assume that |
217 // an embedder's WebFrame references are all discovered via thread | 219 // an embedder's WebFrame references are all discovered via thread |
218 // state (stack, registers) should an Oilpan GC strike while we're | 220 // state (stack, registers) should an Oilpan GC strike while we're |
219 // in the process of detaching. | 221 // in the process of detaching. |
220 GC_PLUGIN_IGNORE("340522") | 222 GC_PLUGIN_IGNORE("340522") |
221 Persistent<WebRemoteFrameImpl> m_selfKeepAlive; | 223 Persistent<WebRemoteFrameImpl> m_selfKeepAlive; |
222 #endif | 224 #endif |
223 }; | 225 }; |
224 | 226 |
225 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); | 227 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); |
226 | 228 |
227 } // namespace blink | 229 } // namespace blink |
228 | 230 |
229 #endif // WebRemoteFrameImpl_h | 231 #endif // WebRemoteFrameImpl_h |
OLD | NEW |