| 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 WebRemoteFrame_h | 5 #ifndef WebRemoteFrame_h |
| 6 #define WebRemoteFrame_h | 6 #define WebRemoteFrame_h |
| 7 | 7 |
| 8 #include "public/web/WebFrame.h" | 8 #include "public/web/WebFrame.h" |
| 9 #include "public/web/WebSandboxFlags.h" |
| 9 | 10 |
| 10 namespace blink { | 11 namespace blink { |
| 11 | 12 |
| 12 class WebFrameClient; | 13 class WebFrameClient; |
| 13 class WebRemoteFrameClient; | 14 class WebRemoteFrameClient; |
| 14 | 15 |
| 15 class WebRemoteFrame : public WebFrame { | 16 class WebRemoteFrame : public WebFrame { |
| 16 public: | 17 public: |
| 17 BLINK_EXPORT static WebRemoteFrame* create(WebRemoteFrameClient*); | 18 BLINK_EXPORT static WebRemoteFrame* create(WebRemoteFrameClient*); |
| 18 | 19 |
| 20 // FIXME(alexmos): This will go away once the Chromium side is updated to pa
ss sandbox flags. |
| 19 virtual WebLocalFrame* createLocalChild(const WebString& name, WebFrameClien
t*) = 0; | 21 virtual WebLocalFrame* createLocalChild(const WebString& name, WebFrameClien
t*) = 0; |
| 22 virtual WebLocalFrame* createLocalChild(const WebString& name, WebSandboxFla
gs, WebFrameClient*) = 0; |
| 20 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebRemoteFr
ameClient*) = 0; | 23 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebRemoteFr
ameClient*) = 0; |
| 21 | 24 |
| 22 // Transfer initial drawing parameters from a local frame. | 25 // Transfer initial drawing parameters from a local frame. |
| 23 virtual void initializeFromFrame(WebLocalFrame*) const = 0; | 26 virtual void initializeFromFrame(WebLocalFrame*) const = 0; |
| 24 | 27 |
| 25 // Set security origin replicated from another process | 28 // Set security origin replicated from another process. |
| 26 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const = 0; | 29 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const = 0; |
| 27 | 30 |
| 31 // Set sandbox flags replicated from another process. |
| 32 virtual void setReplicatedSandboxFlags(WebSandboxFlags) const = 0; |
| 33 |
| 28 virtual void didStartLoading() = 0; | 34 virtual void didStartLoading() = 0; |
| 29 virtual void didStopLoading() = 0; | 35 virtual void didStopLoading() = 0; |
| 30 }; | 36 }; |
| 31 | 37 |
| 32 } // namespace blink | 38 } // namespace blink |
| 33 | 39 |
| 34 #endif // WebRemoteFrame_h | 40 #endif // WebRemoteFrame_h |
| OLD | NEW |