| 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 "web/WebRemoteFrameImpl.h" | 5 #include "web/WebRemoteFrameImpl.h" |
| 6 | 6 |
| 7 #include "core/dom/Fullscreen.h" | 7 #include "core/dom/Fullscreen.h" |
| 8 #include "core/dom/RemoteSecurityContext.h" | 8 #include "core/dom/RemoteSecurityContext.h" |
| 9 #include "core/dom/SecurityContext.h" | 9 #include "core/dom/SecurityContext.h" |
| 10 #include "core/frame/FrameView.h" | 10 #include "core/frame/FrameView.h" |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 frame()->securityContext()->enforceSandboxFlags( | 431 frame()->securityContext()->enforceSandboxFlags( |
| 432 static_cast<SandboxFlags>(flags)); | 432 static_cast<SandboxFlags>(flags)); |
| 433 } | 433 } |
| 434 | 434 |
| 435 void WebRemoteFrameImpl::setReplicatedName(const WebString& name, | 435 void WebRemoteFrameImpl::setReplicatedName(const WebString& name, |
| 436 const WebString& uniqueName) const { | 436 const WebString& uniqueName) const { |
| 437 DCHECK(frame()); | 437 DCHECK(frame()); |
| 438 frame()->tree().setPrecalculatedName(name, uniqueName); | 438 frame()->tree().setPrecalculatedName(name, uniqueName); |
| 439 } | 439 } |
| 440 | 440 |
| 441 void WebRemoteFrameImpl::resetReplicatedFeaturePolicy() const {} |
| 442 |
| 443 void WebRemoteFrameImpl::addReplicatedFeaturePolicyHeader( |
| 444 const WebString& headerValue) const {} |
| 445 |
| 441 void WebRemoteFrameImpl::addReplicatedContentSecurityPolicyHeader( | 446 void WebRemoteFrameImpl::addReplicatedContentSecurityPolicyHeader( |
| 442 const WebString& headerValue, | 447 const WebString& headerValue, |
| 443 WebContentSecurityPolicyType type, | 448 WebContentSecurityPolicyType type, |
| 444 WebContentSecurityPolicySource source) const { | 449 WebContentSecurityPolicySource source) const { |
| 445 frame()->securityContext()->contentSecurityPolicy()->addPolicyFromHeaderValue( | 450 frame()->securityContext()->contentSecurityPolicy()->addPolicyFromHeaderValue( |
| 446 headerValue, static_cast<ContentSecurityPolicyHeaderType>(type), | 451 headerValue, static_cast<ContentSecurityPolicyHeaderType>(type), |
| 447 static_cast<ContentSecurityPolicyHeaderSource>(source)); | 452 static_cast<ContentSecurityPolicyHeaderSource>(source)); |
| 448 } | 453 } |
| 449 | 454 |
| 450 void WebRemoteFrameImpl::resetReplicatedContentSecurityPolicy() const { | 455 void WebRemoteFrameImpl::resetReplicatedContentSecurityPolicy() const { |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 } | 527 } |
| 523 | 528 |
| 524 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, | 529 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, |
| 525 WebRemoteFrameClient* client) | 530 WebRemoteFrameClient* client) |
| 526 : WebRemoteFrame(scope), | 531 : WebRemoteFrame(scope), |
| 527 m_frameClient(RemoteFrameClientImpl::create(this)), | 532 m_frameClient(RemoteFrameClientImpl::create(this)), |
| 528 m_client(client), | 533 m_client(client), |
| 529 m_selfKeepAlive(this) {} | 534 m_selfKeepAlive(this) {} |
| 530 | 535 |
| 531 } // namespace blink | 536 } // namespace blink |
| OLD | NEW |