| 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 "web/WebRemoteFrameImpl.h" | 6 #include "web/WebRemoteFrameImpl.h" |
| 7 | 7 |
| 8 #include "core/frame/FrameView.h" | 8 #include "core/frame/FrameView.h" |
| 9 #include "core/frame/RemoteFrame.h" | 9 #include "core/frame/RemoteFrame.h" |
| 10 #include "core/frame/Settings.h" | 10 #include "core/frame/Settings.h" |
| (...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 ASSERT(frame()); | 791 ASSERT(frame()); |
| 792 frame()->securityContext()->enforceSandboxFlags(static_cast<SandboxFlags>(fl
ags)); | 792 frame()->securityContext()->enforceSandboxFlags(static_cast<SandboxFlags>(fl
ags)); |
| 793 } | 793 } |
| 794 | 794 |
| 795 void WebRemoteFrameImpl::setReplicatedName(const WebString& name) const | 795 void WebRemoteFrameImpl::setReplicatedName(const WebString& name) const |
| 796 { | 796 { |
| 797 ASSERT(frame()); | 797 ASSERT(frame()); |
| 798 frame()->tree().setName(name, nullAtom); | 798 frame()->tree().setName(name, nullAtom); |
| 799 } | 799 } |
| 800 | 800 |
| 801 void WebRemoteFrameImpl::DispatchLoadEventForFrameOwner() const |
| 802 { |
| 803 ASSERT(frame()->owner()->isLocal()); |
| 804 frame()->owner()->dispatchLoad(); |
| 805 } |
| 806 |
| 801 void WebRemoteFrameImpl::didStartLoading() | 807 void WebRemoteFrameImpl::didStartLoading() |
| 802 { | 808 { |
| 803 frame()->setIsLoading(true); | 809 frame()->setIsLoading(true); |
| 804 } | 810 } |
| 805 | 811 |
| 806 void WebRemoteFrameImpl::didStopLoading() | 812 void WebRemoteFrameImpl::didStopLoading() |
| 807 { | 813 { |
| 808 frame()->setIsLoading(false); | 814 frame()->setIsLoading(false); |
| 809 if (parent() && parent()->isWebLocalFrame()) { | 815 if (parent() && parent()->isWebLocalFrame()) { |
| 810 WebLocalFrameImpl* parentFrame = | 816 WebLocalFrameImpl* parentFrame = |
| 811 toWebLocalFrameImpl(parent()->toWebLocalFrame()); | 817 toWebLocalFrameImpl(parent()->toWebLocalFrame()); |
| 812 parentFrame->frame()->loader().checkCompleted(); | 818 parentFrame->frame()->loader().checkCompleted(); |
| 813 } | 819 } |
| 814 } | 820 } |
| 815 | 821 |
| 816 } // namespace blink | 822 } // namespace blink |
| OLD | NEW |