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/WebContentSecurityPolicy.h" | 8 #include "public/platform/WebContentSecurityPolicy.h" |
9 #include "public/platform/WebFeaturePolicy.h" | 9 #include "public/platform/WebFeaturePolicy.h" |
10 #include "public/platform/WebInsecureRequestPolicy.h" | 10 #include "public/platform/WebInsecureRequestPolicy.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 WebRemoteFrameClient*, | 28 WebRemoteFrameClient*, |
29 WebFrame* opener = nullptr); | 29 WebFrame* opener = nullptr); |
30 | 30 |
31 // Functions for the embedder replicate the frame tree between processes. | 31 // Functions for the embedder replicate the frame tree between processes. |
32 // TODO(dcheng): The embedder currently does not replicate local frames in | 32 // TODO(dcheng): The embedder currently does not replicate local frames in |
33 // insertion order, so the local child version takes a previous sibling to | 33 // insertion order, so the local child version takes a previous sibling to |
34 // ensure that it is inserted into the correct location in the list of | 34 // ensure that it is inserted into the correct location in the list of |
35 // children. | 35 // children. |
36 virtual WebLocalFrame* createLocalChild(WebTreeScopeType, | 36 virtual WebLocalFrame* createLocalChild(WebTreeScopeType, |
37 const WebString& name, | 37 const WebString& name, |
38 const WebString& uniqueName, | |
39 WebSandboxFlags, | 38 WebSandboxFlags, |
40 WebFrameClient*, | 39 WebFrameClient*, |
41 blink::InterfaceProvider*, | 40 blink::InterfaceProvider*, |
42 blink::InterfaceRegistry*, | 41 blink::InterfaceRegistry*, |
43 WebFrame* previousSibling, | 42 WebFrame* previousSibling, |
44 const WebFrameOwnerProperties&, | 43 const WebFrameOwnerProperties&, |
45 WebFrame* opener) = 0; | 44 WebFrame* opener) = 0; |
46 | 45 |
47 virtual WebRemoteFrame* createRemoteChild(WebTreeScopeType, | 46 virtual WebRemoteFrame* createRemoteChild(WebTreeScopeType, |
48 const WebString& name, | 47 const WebString& name, |
49 const WebString& uniqueName, | |
50 WebSandboxFlags, | 48 WebSandboxFlags, |
51 WebRemoteFrameClient*, | 49 WebRemoteFrameClient*, |
52 WebFrame* opener) = 0; | 50 WebFrame* opener) = 0; |
53 | 51 |
54 // Layer for the in-process compositor. | 52 // Layer for the in-process compositor. |
55 virtual void setWebLayer(WebLayer*) = 0; | 53 virtual void setWebLayer(WebLayer*) = 0; |
56 | 54 |
57 // Set security origin replicated from another process. | 55 // Set security origin replicated from another process. |
58 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const = 0; | 56 virtual void setReplicatedOrigin(const WebSecurityOrigin&) = 0; |
59 | 57 |
60 // Set sandbox flags replicated from another process. | 58 // Set sandbox flags replicated from another process. |
61 virtual void setReplicatedSandboxFlags(WebSandboxFlags) const = 0; | 59 virtual void setReplicatedSandboxFlags(WebSandboxFlags) = 0; |
62 | 60 |
63 // Set frame |name| and |uniqueName| replicated from another process. | 61 // Set frame |name| replicated from another process. |
64 virtual void setReplicatedName(const WebString& name, | 62 virtual void setReplicatedName(const WebString&) = 0; |
65 const WebString& uniqueName) const = 0; | |
66 | 63 |
67 virtual void setReplicatedFeaturePolicyHeader( | 64 virtual void setReplicatedFeaturePolicyHeader( |
68 const WebParsedFeaturePolicy& parsedHeader) const = 0; | 65 const WebParsedFeaturePolicy& parsedHeader) = 0; |
69 | 66 |
70 // Adds |header| to the set of replicated CSP headers. | 67 // Adds |header| to the set of replicated CSP headers. |
71 virtual void addReplicatedContentSecurityPolicyHeader( | 68 virtual void addReplicatedContentSecurityPolicyHeader( |
72 const WebString& headerValue, | 69 const WebString& headerValue, |
73 WebContentSecurityPolicyType, | 70 WebContentSecurityPolicyType, |
74 WebContentSecurityPolicySource) const = 0; | 71 WebContentSecurityPolicySource) = 0; |
75 | 72 |
76 // Resets replicated CSP headers to an empty set. | 73 // Resets replicated CSP headers to an empty set. |
77 virtual void resetReplicatedContentSecurityPolicy() const = 0; | 74 virtual void resetReplicatedContentSecurityPolicy() = 0; |
78 | 75 |
79 // Set frame enforcement of insecure request policy replicated from another | 76 // Set frame enforcement of insecure request policy replicated from another |
80 // process. | 77 // process. |
81 virtual void setReplicatedInsecureRequestPolicy( | 78 virtual void setReplicatedInsecureRequestPolicy(WebInsecureRequestPolicy) = 0; |
82 WebInsecureRequestPolicy) const = 0; | |
83 | 79 |
84 // Set the frame to a unique origin that is potentially trustworthy, | 80 // Set the frame to a unique origin that is potentially trustworthy, |
85 // replicated from another process. | 81 // replicated from another process. |
86 virtual void setReplicatedPotentiallyTrustworthyUniqueOrigin(bool) const = 0; | 82 virtual void setReplicatedPotentiallyTrustworthyUniqueOrigin(bool) = 0; |
87 | 83 |
88 virtual void dispatchLoadEventOnFrameOwner() const = 0; | 84 virtual void dispatchLoadEventOnFrameOwner() = 0; |
89 | 85 |
90 virtual void didStartLoading() = 0; | 86 virtual void didStartLoading() = 0; |
91 virtual void didStopLoading() = 0; | 87 virtual void didStopLoading() = 0; |
92 | 88 |
93 // Returns true if this frame should be ignored during hittesting. | 89 // Returns true if this frame should be ignored during hittesting. |
94 virtual bool isIgnoredForHitTest() const = 0; | 90 virtual bool isIgnoredForHitTest() const = 0; |
95 | 91 |
96 // This is called in OOPIF scenarios when an element contained in this | 92 // This is called in OOPIF scenarios when an element contained in this |
97 // frame is about to enter fullscreen. This frame's owner | 93 // frame is about to enter fullscreen. This frame's owner |
98 // corresponds to the HTMLFrameOwnerElement to be fullscreened. Calling | 94 // corresponds to the HTMLFrameOwnerElement to be fullscreened. Calling |
(...skipping 12 matching lines...) Expand all Loading... |
111 // to call these on a WebRemoteFrame. | 107 // to call these on a WebRemoteFrame. |
112 bool isWebLocalFrame() const override = 0; | 108 bool isWebLocalFrame() const override = 0; |
113 WebLocalFrame* toWebLocalFrame() override = 0; | 109 WebLocalFrame* toWebLocalFrame() override = 0; |
114 bool isWebRemoteFrame() const override = 0; | 110 bool isWebRemoteFrame() const override = 0; |
115 WebRemoteFrame* toWebRemoteFrame() override = 0; | 111 WebRemoteFrame* toWebRemoteFrame() override = 0; |
116 }; | 112 }; |
117 | 113 |
118 } // namespace blink | 114 } // namespace blink |
119 | 115 |
120 #endif // WebRemoteFrame_h | 116 #endif // WebRemoteFrame_h |
OLD | NEW |