OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 13 matching lines...) Expand all Loading... |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebFrame_h | 31 #ifndef WebFrame_h |
32 #define WebFrame_h | 32 #define WebFrame_h |
33 | 33 |
| 34 #include <memory> |
34 #include "WebIconURL.h" | 35 #include "WebIconURL.h" |
35 #include "WebNode.h" | 36 #include "WebNode.h" |
36 #include "public/platform/WebCanvas.h" | 37 #include "public/platform/WebCanvas.h" |
| 38 #include "public/platform/WebFeaturePolicy.h" |
37 #include "public/platform/WebInsecureRequestPolicy.h" | 39 #include "public/platform/WebInsecureRequestPolicy.h" |
38 #include "public/web/WebFrameLoadType.h" | 40 #include "public/web/WebFrameLoadType.h" |
39 #include "public/web/WebTreeScopeType.h" | 41 #include "public/web/WebTreeScopeType.h" |
40 #include <memory> | |
41 | 42 |
42 namespace v8 { | 43 namespace v8 { |
43 class Context; | 44 class Context; |
44 class Function; | 45 class Function; |
45 class Value; | 46 class Value; |
46 template <class T> | 47 template <class T> |
47 class Local; | 48 class Local; |
48 } | 49 } |
49 | 50 |
50 namespace blink { | 51 namespace blink { |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // URLs | 135 // URLs |
135 virtual WebVector<WebIconURL> IconURLs(int icon_types_mask) const = 0; | 136 virtual WebVector<WebIconURL> IconURLs(int icon_types_mask) const = 0; |
136 | 137 |
137 // Initializes the various client interfaces. | 138 // Initializes the various client interfaces. |
138 virtual void SetSharedWorkerRepositoryClient( | 139 virtual void SetSharedWorkerRepositoryClient( |
139 WebSharedWorkerRepositoryClient*) = 0; | 140 WebSharedWorkerRepositoryClient*) = 0; |
140 | 141 |
141 // The security origin of this frame. | 142 // The security origin of this frame. |
142 BLINK_EXPORT WebSecurityOrigin GetSecurityOrigin() const; | 143 BLINK_EXPORT WebSecurityOrigin GetSecurityOrigin() const; |
143 | 144 |
144 // Updates the sandbox flags in the frame's FrameOwner. This is used when | 145 // Updates the snapshotted policy attributes (sandbox flags and feature policy |
145 // this frame's parent is in another process and it dynamically updates | 146 // container policy) in the frame's FrameOwner. This is used when this frame's |
146 // this frame's sandbox flags. The flags won't take effect until the next | 147 // parent is in another process and it dynamically updates this frame's |
147 // navigation. | 148 // sandbox flags or container policy. The new policy won't take effect until |
148 BLINK_EXPORT void SetFrameOwnerSandboxFlags(WebSandboxFlags); | 149 // the next navigation. |
| 150 BLINK_EXPORT void SetFrameOwnerPolicy(WebSandboxFlags, |
| 151 const blink::WebParsedFeaturePolicy&); |
149 | 152 |
150 // The frame's insecure request policy. | 153 // The frame's insecure request policy. |
151 BLINK_EXPORT WebInsecureRequestPolicy GetInsecureRequestPolicy() const; | 154 BLINK_EXPORT WebInsecureRequestPolicy GetInsecureRequestPolicy() const; |
152 | 155 |
153 // Updates this frame's FrameOwner properties, such as scrolling, margin, | 156 // Updates this frame's FrameOwner properties, such as scrolling, margin, |
154 // or allowfullscreen. This is used when this frame's parent is in | 157 // or allowfullscreen. This is used when this frame's parent is in |
155 // another process and it dynamically updates these properties. | 158 // another process and it dynamically updates these properties. |
156 // TODO(dcheng): Currently, the update only takes effect on next frame | 159 // TODO(dcheng): Currently, the update only takes effect on next frame |
157 // navigation. This matches the in-process frame behavior. | 160 // navigation. This matches the in-process frame behavior. |
158 BLINK_EXPORT void SetFrameOwnerProperties(const WebFrameOwnerProperties&); | 161 BLINK_EXPORT void SetFrameOwnerProperties(const WebFrameOwnerProperties&); |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 WebFrame* first_child_; | 461 WebFrame* first_child_; |
459 WebFrame* last_child_; | 462 WebFrame* last_child_; |
460 | 463 |
461 WebFrame* opener_; | 464 WebFrame* opener_; |
462 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_; | 465 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_; |
463 }; | 466 }; |
464 | 467 |
465 } // namespace blink | 468 } // namespace blink |
466 | 469 |
467 #endif | 470 #endif |
OLD | NEW |