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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 sandbox flags in the frame's FrameOwner. This is used when |
145 // this frame's parent is in another process and it dynamically updates | 146 // this frame's parent is in another process and it dynamically updates |
146 // this frame's sandbox flags. The flags won't take effect until the next | 147 // this frame's sandbox flags. The flags won't take effect until the next |
147 // navigation. | 148 // navigation. |
148 BLINK_EXPORT void setFrameOwnerSandboxFlags(WebSandboxFlags); | 149 BLINK_EXPORT void setFrameOwnerSandboxFlags(WebSandboxFlags); |
149 | 150 |
151 // Updates the container policy in the frame's FrameOwner. This is used when | |
152 // this frame's parent is in another process, and dynamically updates this | |
153 // frame's container policy, by setting the iframe's allowfullscreen, | |
154 // allowpaymentrequest, allow, or src attributes. The new container policy has | |
155 // no effect until the frame is next navigated. | |
156 BLINK_EXPORT void setFrameOwnerContainerPolicy( | |
alexmos
2017/04/06 00:44:22
Does it make sense to also merge this with setFram
iclelland
2017/04/09 03:25:54
It does, and it'll go a step further towards just
| |
157 const blink::WebParsedFeaturePolicy&); | |
158 | |
150 // The frame's insecure request policy. | 159 // The frame's insecure request policy. |
151 BLINK_EXPORT WebInsecureRequestPolicy getInsecureRequestPolicy() const; | 160 BLINK_EXPORT WebInsecureRequestPolicy getInsecureRequestPolicy() const; |
152 | 161 |
153 // Updates this frame's FrameOwner properties, such as scrolling, margin, | 162 // Updates this frame's FrameOwner properties, such as scrolling, margin, |
154 // or allowfullscreen. This is used when this frame's parent is in | 163 // or allowfullscreen. This is used when this frame's parent is in |
155 // another process and it dynamically updates these properties. | 164 // another process and it dynamically updates these properties. |
156 // TODO(dcheng): Currently, the update only takes effect on next frame | 165 // TODO(dcheng): Currently, the update only takes effect on next frame |
157 // navigation. This matches the in-process frame behavior. | 166 // navigation. This matches the in-process frame behavior. |
158 BLINK_EXPORT void setFrameOwnerProperties(const WebFrameOwnerProperties&); | 167 BLINK_EXPORT void setFrameOwnerProperties(const WebFrameOwnerProperties&); |
159 | 168 |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
458 WebFrame* m_firstChild; | 467 WebFrame* m_firstChild; |
459 WebFrame* m_lastChild; | 468 WebFrame* m_lastChild; |
460 | 469 |
461 WebFrame* m_opener; | 470 WebFrame* m_opener; |
462 std::unique_ptr<OpenedFrameTracker> m_openedFrameTracker; | 471 std::unique_ptr<OpenedFrameTracker> m_openedFrameTracker; |
463 }; | 472 }; |
464 | 473 |
465 } // namespace blink | 474 } // namespace blink |
466 | 475 |
467 #endif | 476 #endif |
OLD | NEW |