| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be found | 2 // Use of this source code is governed by a BSD-style license that can be found |
| 3 // in the LICENSE file. | 3 // in the LICENSE file. |
| 4 | 4 |
| 5 #include "web/RemoteFrameOwner.h" | 5 #include "web/RemoteFrameOwner.h" |
| 6 | 6 |
| 7 #include "core/frame/LocalFrame.h" | 7 #include "core/frame/LocalFrame.h" |
| 8 #include "core/frame/WebLocalFrameBase.h" |
| 8 #include "public/web/WebFrameClient.h" | 9 #include "public/web/WebFrameClient.h" |
| 9 #include "web/WebLocalFrameImpl.h" | |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 RemoteFrameOwner::RemoteFrameOwner( | 13 RemoteFrameOwner::RemoteFrameOwner( |
| 14 SandboxFlags flags, | 14 SandboxFlags flags, |
| 15 const WebParsedFeaturePolicy& container_policy, | 15 const WebParsedFeaturePolicy& container_policy, |
| 16 const WebFrameOwnerProperties& frame_owner_properties) | 16 const WebFrameOwnerProperties& frame_owner_properties) |
| 17 : sandbox_flags_(flags), | 17 : sandbox_flags_(flags), |
| 18 browsing_context_container_name_( | 18 browsing_context_container_name_( |
| 19 static_cast<String>(frame_owner_properties.name)), | 19 static_cast<String>(frame_owner_properties.name)), |
| (...skipping 20 matching lines...) Expand all Loading... |
| 40 void RemoteFrameOwner::SetContentFrame(Frame& frame) { | 40 void RemoteFrameOwner::SetContentFrame(Frame& frame) { |
| 41 frame_ = &frame; | 41 frame_ = &frame; |
| 42 } | 42 } |
| 43 | 43 |
| 44 void RemoteFrameOwner::ClearContentFrame() { | 44 void RemoteFrameOwner::ClearContentFrame() { |
| 45 DCHECK_EQ(frame_->Owner(), this); | 45 DCHECK_EQ(frame_->Owner(), this); |
| 46 frame_ = nullptr; | 46 frame_ = nullptr; |
| 47 } | 47 } |
| 48 | 48 |
| 49 void RemoteFrameOwner::DispatchLoad() { | 49 void RemoteFrameOwner::DispatchLoad() { |
| 50 WebLocalFrameImpl* web_frame = | 50 WebLocalFrameBase* web_frame = |
| 51 WebLocalFrameImpl::FromFrame(ToLocalFrame(*frame_)); | 51 WebLocalFrameBase::FromFrame(ToLocalFrame(*frame_)); |
| 52 web_frame->Client()->DispatchLoad(); | 52 web_frame->Client()->DispatchLoad(); |
| 53 } | 53 } |
| 54 | 54 |
| 55 } // namespace blink | 55 } // namespace blink |
| OLD | NEW |