| 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 #include "public/web/WebSandboxFlags.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 enum class WebTreeScopeType; | 13 enum class WebTreeScopeType; |
| 14 class ServiceRegistry; |
| 14 class WebFrameClient; | 15 class WebFrameClient; |
| 15 class WebRemoteFrameClient; | 16 class WebRemoteFrameClient; |
| 16 | 17 |
| 17 class WebRemoteFrame : public WebFrame { | 18 class WebRemoteFrame : public WebFrame { |
| 18 public: | 19 public: |
| 19 BLINK_EXPORT static WebRemoteFrame* create(WebTreeScopeType, WebRemoteFrameC
lient*, WebFrame* opener = nullptr); | 20 BLINK_EXPORT static WebRemoteFrame* create(WebTreeScopeType, WebRemoteFrameC
lient*, WebFrame* opener = nullptr); |
| 20 | 21 |
| 21 // Functions for the embedder replicate the frame tree between processes. | 22 // Functions for the embedder replicate the frame tree between processes. |
| 22 // TODO(dcheng): The embedder currently does not replicate local frames in | 23 // TODO(dcheng): The embedder currently does not replicate local frames in |
| 23 // insertion order, so the local child version takes a previous sibling to | 24 // insertion order, so the local child version takes a previous sibling to |
| 24 // ensure that it is inserted into the correct location in the list of | 25 // ensure that it is inserted into the correct location in the list of |
| 25 // children. | 26 // children. |
| 26 virtual WebLocalFrame* createLocalChild(WebTreeScopeType, const WebString& n
ame, const WebString& uniqueName, WebSandboxFlags, WebFrameClient*, WebFrame* pr
eviousSibling, const WebFrameOwnerProperties&, WebFrame* opener) = 0; | 27 virtual WebLocalFrame* createLocalChild(WebTreeScopeType, const WebString& n
ame, const WebString& uniqueName, WebSandboxFlags, WebFrameClient*, WebFrame* pr
eviousSibling, const WebFrameOwnerProperties&, WebFrame* opener, ServiceRegistry
* = nullptr) = 0; |
| 27 | 28 |
| 28 virtual WebRemoteFrame* createRemoteChild(WebTreeScopeType, const WebString&
name, const WebString& uniqueName, WebSandboxFlags, WebRemoteFrameClient*, WebF
rame* opener) = 0; | 29 virtual WebRemoteFrame* createRemoteChild(WebTreeScopeType, const WebString&
name, const WebString& uniqueName, WebSandboxFlags, WebRemoteFrameClient*, WebF
rame* opener) = 0; |
| 29 | 30 |
| 30 // Transfer initial drawing parameters from a local frame. | 31 // Transfer initial drawing parameters from a local frame. |
| 31 virtual void initializeFromFrame(WebLocalFrame*) const = 0; | 32 virtual void initializeFromFrame(WebLocalFrame*) const = 0; |
| 32 | 33 |
| 33 // Set security origin replicated from another process. | 34 // Set security origin replicated from another process. |
| 34 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const = 0; | 35 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const = 0; |
| 35 | 36 |
| 36 // Set sandbox flags replicated from another process. | 37 // Set sandbox flags replicated from another process. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 66 // to call these on a WebRemoteFrame. | 67 // to call these on a WebRemoteFrame. |
| 67 bool isWebLocalFrame() const override = 0; | 68 bool isWebLocalFrame() const override = 0; |
| 68 WebLocalFrame* toWebLocalFrame() override = 0; | 69 WebLocalFrame* toWebLocalFrame() override = 0; |
| 69 bool isWebRemoteFrame() const override = 0; | 70 bool isWebRemoteFrame() const override = 0; |
| 70 WebRemoteFrame* toWebRemoteFrame() override = 0; | 71 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 } // namespace blink | 74 } // namespace blink |
| 74 | 75 |
| 75 #endif // WebRemoteFrame_h | 76 #endif // WebRemoteFrame_h |
| OLD | NEW |