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 WebSecurityOrigin securityOrigin() const override; |
| 203 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const override; |
| 204 |
202 #if ENABLE(OILPAN) | 205 #if ENABLE(OILPAN) |
203 void trace(Visitor*); | 206 void trace(Visitor*); |
204 #endif | 207 #endif |
205 | 208 |
206 private: | 209 private: |
207 RemoteFrameClientImpl m_frameClient; | 210 RemoteFrameClientImpl m_frameClient; |
208 RefPtrWillBeMember<RemoteFrame> m_frame; | 211 RefPtrWillBeMember<RemoteFrame> m_frame; |
209 WebRemoteFrameClient* m_client; | 212 WebRemoteFrameClient* m_client; |
210 | 213 |
211 WillBeHeapHashMap<WebFrame*, OwnPtrWillBeMember<FrameOwner> > m_ownersForChi
ldren; | 214 WillBeHeapHashMap<WebFrame*, OwnPtrWillBeMember<FrameOwner> > m_ownersForChi
ldren; |
212 | 215 |
213 #if ENABLE(OILPAN) | 216 #if ENABLE(OILPAN) |
214 // Oilpan: to provide the guarantee of having the frame live until | 217 // Oilpan: to provide the guarantee of having the frame live until |
215 // close() is called, an instance keep a self-persistent. It is | 218 // close() is called, an instance keep a self-persistent. It is |
216 // cleared upon calling close(). This avoids having to assume that | 219 // cleared upon calling close(). This avoids having to assume that |
217 // an embedder's WebFrame references are all discovered via thread | 220 // an embedder's WebFrame references are all discovered via thread |
218 // state (stack, registers) should an Oilpan GC strike while we're | 221 // state (stack, registers) should an Oilpan GC strike while we're |
219 // in the process of detaching. | 222 // in the process of detaching. |
220 GC_PLUGIN_IGNORE("340522") | 223 GC_PLUGIN_IGNORE("340522") |
221 Persistent<WebRemoteFrameImpl> m_selfKeepAlive; | 224 Persistent<WebRemoteFrameImpl> m_selfKeepAlive; |
222 #endif | 225 #endif |
223 }; | 226 }; |
224 | 227 |
225 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); | 228 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); |
226 | 229 |
227 } // namespace blink | 230 } // namespace blink |
228 | 231 |
229 #endif // WebRemoteFrameImpl_h | 232 #endif // WebRemoteFrameImpl_h |
OLD | NEW |