| 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/platform/WebFeaturePolicy.h" | 8 #include "public/platform/WebFeaturePolicy.h" |
| 9 #include "public/platform/WebInsecureRequestPolicy.h" | 9 #include "public/platform/WebInsecureRequestPolicy.h" |
| 10 #include "public/web/WebContentSecurityPolicy.h" | 10 #include "public/web/WebContentSecurityPolicy.h" |
| 11 #include "public/web/WebFrame.h" | 11 #include "public/web/WebFrame.h" |
| 12 #include "public/web/WebSandboxFlags.h" | 12 #include "public/web/WebSandboxFlags.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 enum class WebTreeScopeType; | 16 enum class WebTreeScopeType; |
| 17 class InterfaceProvider; |
| 18 class InterfaceRegistry; |
| 17 class WebFrameClient; | 19 class WebFrameClient; |
| 18 class WebLayer; | 20 class WebLayer; |
| 19 class WebRemoteFrameClient; | 21 class WebRemoteFrameClient; |
| 20 class WebString; | 22 class WebString; |
| 21 | 23 |
| 22 class WebRemoteFrame : public WebFrame { | 24 class WebRemoteFrame : public WebFrame { |
| 23 public: | 25 public: |
| 24 BLINK_EXPORT static WebRemoteFrame* create(WebTreeScopeType, | 26 BLINK_EXPORT static WebRemoteFrame* create(WebTreeScopeType, |
| 25 WebRemoteFrameClient*, | 27 WebRemoteFrameClient*, |
| 26 WebFrame* opener = nullptr); | 28 WebFrame* opener = nullptr); |
| 27 | 29 |
| 28 // Functions for the embedder replicate the frame tree between processes. | 30 // Functions for the embedder replicate the frame tree between processes. |
| 29 // TODO(dcheng): The embedder currently does not replicate local frames in | 31 // TODO(dcheng): The embedder currently does not replicate local frames in |
| 30 // insertion order, so the local child version takes a previous sibling to | 32 // insertion order, so the local child version takes a previous sibling to |
| 31 // ensure that it is inserted into the correct location in the list of | 33 // ensure that it is inserted into the correct location in the list of |
| 32 // children. | 34 // children. |
| 33 virtual WebLocalFrame* createLocalChild(WebTreeScopeType, | 35 virtual WebLocalFrame* createLocalChild(WebTreeScopeType, |
| 34 const WebString& name, | 36 const WebString& name, |
| 35 const WebString& uniqueName, | 37 const WebString& uniqueName, |
| 36 WebSandboxFlags, | 38 WebSandboxFlags, |
| 37 WebFrameClient*, | 39 WebFrameClient*, |
| 40 blink::InterfaceProvider*, |
| 41 blink::InterfaceRegistry*, |
| 38 WebFrame* previousSibling, | 42 WebFrame* previousSibling, |
| 39 const WebFrameOwnerProperties&, | 43 const WebFrameOwnerProperties&, |
| 40 WebFrame* opener) = 0; | 44 WebFrame* opener) = 0; |
| 41 | 45 |
| 42 virtual WebRemoteFrame* createRemoteChild(WebTreeScopeType, | 46 virtual WebRemoteFrame* createRemoteChild(WebTreeScopeType, |
| 43 const WebString& name, | 47 const WebString& name, |
| 44 const WebString& uniqueName, | 48 const WebString& uniqueName, |
| 45 WebSandboxFlags, | 49 WebSandboxFlags, |
| 46 WebRemoteFrameClient*, | 50 WebRemoteFrameClient*, |
| 47 WebFrame* opener) = 0; | 51 WebFrame* opener) = 0; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // to call these on a WebRemoteFrame. | 113 // to call these on a WebRemoteFrame. |
| 110 bool isWebLocalFrame() const override = 0; | 114 bool isWebLocalFrame() const override = 0; |
| 111 WebLocalFrame* toWebLocalFrame() override = 0; | 115 WebLocalFrame* toWebLocalFrame() override = 0; |
| 112 bool isWebRemoteFrame() const override = 0; | 116 bool isWebRemoteFrame() const override = 0; |
| 113 WebRemoteFrame* toWebRemoteFrame() override = 0; | 117 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 114 }; | 118 }; |
| 115 | 119 |
| 116 } // namespace blink | 120 } // namespace blink |
| 117 | 121 |
| 118 #endif // WebRemoteFrame_h | 122 #endif // WebRemoteFrame_h |
| OLD | NEW |