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