| 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 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 void WebRemoteFrameImpl::resetReplicatedContentSecurityPolicy() const { | 457 void WebRemoteFrameImpl::resetReplicatedContentSecurityPolicy() const { |
| 458 frame()->securityContext()->resetReplicatedContentSecurityPolicy(); | 458 frame()->securityContext()->resetReplicatedContentSecurityPolicy(); |
| 459 } | 459 } |
| 460 | 460 |
| 461 void WebRemoteFrameImpl::setReplicatedInsecureRequestPolicy( | 461 void WebRemoteFrameImpl::setReplicatedInsecureRequestPolicy( |
| 462 WebInsecureRequestPolicy policy) const { | 462 WebInsecureRequestPolicy policy) const { |
| 463 DCHECK(frame()); | 463 DCHECK(frame()); |
| 464 frame()->securityContext()->setInsecureRequestPolicy(policy); | 464 frame()->securityContext()->setInsecureRequestPolicy(policy); |
| 465 } | 465 } |
| 466 | 466 |
| 467 void WebRemoteFrameImpl::setReplicatedInsecureNavigationsSet( |
| 468 const std::vector<unsigned>& set) const { |
| 469 DCHECK(frame()); |
| 470 frame()->securityContext()->setInsecureNavigationsSet(set); |
| 471 } |
| 472 |
| 467 void WebRemoteFrameImpl::setReplicatedPotentiallyTrustworthyUniqueOrigin( | 473 void WebRemoteFrameImpl::setReplicatedPotentiallyTrustworthyUniqueOrigin( |
| 468 bool isUniqueOriginPotentiallyTrustworthy) const { | 474 bool isUniqueOriginPotentiallyTrustworthy) const { |
| 469 DCHECK(frame()); | 475 DCHECK(frame()); |
| 470 // If |isUniqueOriginPotentiallyTrustworthy| is true, then the origin must be | 476 // If |isUniqueOriginPotentiallyTrustworthy| is true, then the origin must be |
| 471 // unique. | 477 // unique. |
| 472 DCHECK(!isUniqueOriginPotentiallyTrustworthy || | 478 DCHECK(!isUniqueOriginPotentiallyTrustworthy || |
| 473 frame()->securityContext()->getSecurityOrigin()->isUnique()); | 479 frame()->securityContext()->getSecurityOrigin()->isUnique()); |
| 474 frame() | 480 frame() |
| 475 ->securityContext() | 481 ->securityContext() |
| 476 ->getSecurityOrigin() | 482 ->getSecurityOrigin() |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 } | 536 } |
| 531 | 537 |
| 532 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, | 538 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, |
| 533 WebRemoteFrameClient* client) | 539 WebRemoteFrameClient* client) |
| 534 : WebRemoteFrame(scope), | 540 : WebRemoteFrame(scope), |
| 535 m_frameClient(RemoteFrameClientImpl::create(this)), | 541 m_frameClient(RemoteFrameClientImpl::create(this)), |
| 536 m_client(client), | 542 m_client(client), |
| 537 m_selfKeepAlive(this) {} | 543 m_selfKeepAlive(this) {} |
| 538 | 544 |
| 539 } // namespace blink | 545 } // namespace blink |
| OLD | NEW |