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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 179 |
180 virtual WebString contentAsText(size_t maxChars) const override; | 180 virtual WebString contentAsText(size_t maxChars) const override; |
181 virtual WebString contentAsMarkup() const override; | 181 virtual WebString contentAsMarkup() const override; |
182 virtual WebString renderTreeAsText(RenderAsTextControls toShow = RenderAsTex
tNormal) const override; | 182 virtual WebString renderTreeAsText(RenderAsTextControls toShow = RenderAsTex
tNormal) const override; |
183 virtual WebString markerTextForListItem(const WebElement&) const override; | 183 virtual WebString markerTextForListItem(const WebElement&) const override; |
184 virtual WebRect selectionBoundsRect() const override; | 184 virtual WebRect selectionBoundsRect() const override; |
185 | 185 |
186 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const
override; | 186 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const
override; |
187 virtual WebString layerTreeAsText(bool showDebugInfo = false) const override
; | 187 virtual WebString layerTreeAsText(bool showDebugInfo = false) const override
; |
188 | 188 |
| 189 // FIXME(alexmos): This will go away once the Chromium side is updated to pa
ss sandbox flags. |
189 virtual WebLocalFrame* createLocalChild(const WebString& name, WebFrameClien
t*) override; | 190 virtual WebLocalFrame* createLocalChild(const WebString& name, WebFrameClien
t*) override; |
| 191 virtual WebLocalFrame* createLocalChild(const WebString& name, WebSandboxFla
gs, WebFrameClient*) override; |
190 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebRemoteFr
ameClient*) override; | 192 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebRemoteFr
ameClient*) override; |
191 | 193 |
192 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name); | 194 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name); |
193 | 195 |
194 void setCoreFrame(PassRefPtrWillBeRawPtr<RemoteFrame>); | 196 void setCoreFrame(PassRefPtrWillBeRawPtr<RemoteFrame>); |
195 RemoteFrame* frame() const { return m_frame.get(); } | 197 RemoteFrame* frame() const { return m_frame.get(); } |
196 | 198 |
197 WebRemoteFrameClient* client() const { return m_client; } | 199 WebRemoteFrameClient* client() const { return m_client; } |
198 | 200 |
199 static WebRemoteFrameImpl* fromFrame(RemoteFrame&); | 201 static WebRemoteFrameImpl* fromFrame(RemoteFrame&); |
200 | 202 |
201 virtual void initializeFromFrame(WebLocalFrame*) const override; | 203 virtual void initializeFromFrame(WebLocalFrame*) const override; |
202 | 204 |
203 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const override; | 205 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const override; |
| 206 virtual void setReplicatedSandboxFlags(WebSandboxFlags) const override; |
| 207 |
204 void didStartLoading() override; | 208 void didStartLoading() override; |
205 void didStopLoading() override; | 209 void didStopLoading() override; |
206 | 210 |
207 #if ENABLE(OILPAN) | 211 #if ENABLE(OILPAN) |
208 void trace(Visitor*); | 212 void trace(Visitor*); |
209 #endif | 213 #endif |
210 | 214 |
211 private: | 215 private: |
212 RemoteFrameClientImpl m_frameClient; | 216 RemoteFrameClientImpl m_frameClient; |
213 RefPtrWillBeMember<RemoteFrame> m_frame; | 217 RefPtrWillBeMember<RemoteFrame> m_frame; |
(...skipping 11 matching lines...) Expand all Loading... |
225 GC_PLUGIN_IGNORE("340522") | 229 GC_PLUGIN_IGNORE("340522") |
226 Persistent<WebRemoteFrameImpl> m_selfKeepAlive; | 230 Persistent<WebRemoteFrameImpl> m_selfKeepAlive; |
227 #endif | 231 #endif |
228 }; | 232 }; |
229 | 233 |
230 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); | 234 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); |
231 | 235 |
232 } // namespace blink | 236 } // namespace blink |
233 | 237 |
234 #endif // WebRemoteFrameImpl_h | 238 #endif // WebRemoteFrameImpl_h |
OLD | NEW |