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 #include "config.h" | 5 #include "config.h" |
6 #include "public/web/WebFrame.h" | 6 #include "public/web/WebFrame.h" |
7 | 7 |
8 #include "bindings/core/v8/WindowProxyManager.h" | 8 #include "bindings/core/v8/WindowProxyManager.h" |
9 #include "core/frame/FrameHost.h" | 9 #include "core/frame/FrameHost.h" |
10 #include "core/frame/FrameView.h" | 10 #include "core/frame/FrameView.h" |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 125 |
126 void WebFrame::setFrameOwnerSandboxFlags(WebSandboxFlags flags) | 126 void WebFrame::setFrameOwnerSandboxFlags(WebSandboxFlags flags) |
127 { | 127 { |
128 // At the moment, this is only used to replicate sandbox flags | 128 // At the moment, this is only used to replicate sandbox flags |
129 // for frames with a remote owner. | 129 // for frames with a remote owner. |
130 FrameOwner* owner = toImplBase()->frame()->owner(); | 130 FrameOwner* owner = toImplBase()->frame()->owner(); |
131 ASSERT(owner); | 131 ASSERT(owner); |
132 toRemoteBridgeFrameOwner(owner)->setSandboxFlags(static_cast<SandboxFlags>(f
lags)); | 132 toRemoteBridgeFrameOwner(owner)->setSandboxFlags(static_cast<SandboxFlags>(f
lags)); |
133 } | 133 } |
134 | 134 |
| 135 bool WebFrame::shouldEnforceStrictMixedContentChecking() const |
| 136 { |
| 137 return toImplBase()->frame()->securityContext()->shouldEnforceStrictMixedCon
tentChecking(); |
| 138 } |
| 139 |
135 WebFrame* WebFrame::opener() const | 140 WebFrame* WebFrame::opener() const |
136 { | 141 { |
137 return m_opener; | 142 return m_opener; |
138 } | 143 } |
139 | 144 |
140 void WebFrame::setOpener(WebFrame* opener) | 145 void WebFrame::setOpener(WebFrame* opener) |
141 { | 146 { |
142 if (m_opener) | 147 if (m_opener) |
143 m_opener->m_openedFrameTracker->remove(this); | 148 m_opener->m_openedFrameTracker->remove(this); |
144 if (opener) | 149 if (opener) |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 void WebFrame::traceFrames(VisitorDispatcher visitor, WebFrame* frame) { tra
ceFramesImpl(visitor, frame); } \ | 357 void WebFrame::traceFrames(VisitorDispatcher visitor, WebFrame* frame) { tra
ceFramesImpl(visitor, frame); } \ |
353 void WebFrame::clearWeakFrames(VisitorDispatcher visitor) { clearWeakFramesI
mpl(visitor); } | 358 void WebFrame::clearWeakFrames(VisitorDispatcher visitor) { clearWeakFramesI
mpl(visitor); } |
354 | 359 |
355 DEFINE_VISITOR_METHOD(Visitor*) | 360 DEFINE_VISITOR_METHOD(Visitor*) |
356 DEFINE_VISITOR_METHOD(InlinedGlobalMarkingVisitor) | 361 DEFINE_VISITOR_METHOD(InlinedGlobalMarkingVisitor) |
357 | 362 |
358 #undef DEFINE_VISITOR_METHOD | 363 #undef DEFINE_VISITOR_METHOD |
359 #endif | 364 #endif |
360 | 365 |
361 } // namespace blink | 366 } // namespace blink |
OLD | NEW |