| 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 "core/frame/RemoteFrame.h" | 5 #include "core/frame/RemoteFrame.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/WindowProxy.h" | 7 #include "bindings/core/v8/WindowProxy.h" |
| 8 #include "bindings/core/v8/WindowProxyManager.h" | 8 #include "bindings/core/v8/WindowProxyManager.h" |
| 9 #include "core/dom/RemoteSecurityContext.h" | 9 #include "core/dom/RemoteSecurityContext.h" |
| 10 #include "core/frame/LocalFrame.h" | 10 #include "core/frame/LocalFrame.h" |
| 11 #include "core/frame/RemoteDOMWindow.h" | 11 #include "core/frame/RemoteDOMWindow.h" |
| 12 #include "core/frame/RemoteFrameClient.h" | 12 #include "core/frame/RemoteFrameClient.h" |
| 13 #include "core/frame/RemoteFrameView.h" | 13 #include "core/frame/RemoteFrameView.h" |
| 14 #include "core/html/HTMLFrameOwnerElement.h" | 14 #include "core/html/HTMLFrameOwnerElement.h" |
| 15 #include "core/loader/FrameLoadRequest.h" | 15 #include "core/loader/FrameLoadRequest.h" |
| 16 #include "core/loader/FrameLoader.h" | 16 #include "core/loader/FrameLoader.h" |
| 17 #include "core/paint/PaintLayer.h" | 17 #include "core/paint/PaintLayer.h" |
| 18 #include "platform/PluginScriptForbiddenScope.h" | 18 #include "platform/PluginScriptForbiddenScope.h" |
| 19 #include "platform/UserGestureIndicator.h" | 19 #include "platform/UserGestureIndicator.h" |
| 20 #include "platform/graphics/GraphicsLayer.h" | 20 #include "platform/graphics/GraphicsLayer.h" |
| 21 #include "platform/network/ResourceRequest.h" | 21 #include "platform/network/ResourceRequest.h" |
| 22 #include "platform/weborigin/SecurityPolicy.h" | 22 #include "platform/weborigin/SecurityPolicy.h" |
| 23 #include "public/platform/WebLayer.h" | 23 #include "public/platform/WebLayer.h" |
| 24 | 24 |
| 25 namespace blink { | 25 namespace blink { |
| 26 | 26 |
| 27 inline RemoteFrame::RemoteFrame(RemoteFrameClient* client, FrameHost* host, Fram
eOwner* owner) | 27 inline RemoteFrame::RemoteFrame(RemoteFrameClient* client, FrameHost* host, Fram
eOwner* owner) |
| 28 : Frame(client, host, owner) | 28 : Frame(client, host, owner) |
| 29 , m_view(nullptr) | 29 , m_view(nullptr) |
| 30 , m_securityContext(RemoteSecurityContext::create()) | 30 , m_securityContext(RemoteSecurityContext::create(client)) |
| 31 , m_domWindow(RemoteDOMWindow::create(*this)) | 31 , m_domWindow(RemoteDOMWindow::create(*this)) |
| 32 , m_windowProxyManager(WindowProxyManager::create(*this)) | 32 , m_windowProxyManager(WindowProxyManager::create(*this)) |
| 33 , m_remotePlatformLayer(nullptr) | 33 , m_remotePlatformLayer(nullptr) |
| 34 { | 34 { |
| 35 } | 35 } |
| 36 | 36 |
| 37 RemoteFrame* RemoteFrame::create(RemoteFrameClient* client, FrameHost* host, Fra
meOwner* owner) | 37 RemoteFrame* RemoteFrame::create(RemoteFrameClient* client, FrameHost* host, Fra
meOwner* owner) |
| 38 { | 38 { |
| 39 return new RemoteFrame(client, host, owner); | 39 return new RemoteFrame(client, host, owner); |
| 40 } | 40 } |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 using FrameVector = HeapVector<Member<Frame>>; | 201 using FrameVector = HeapVector<Member<Frame>>; |
| 202 FrameVector childrenToDetach; | 202 FrameVector childrenToDetach; |
| 203 childrenToDetach.reserveCapacity(tree().childCount()); | 203 childrenToDetach.reserveCapacity(tree().childCount()); |
| 204 for (Frame* child = tree().firstChild(); child; child = child->tree().nextSi
bling()) | 204 for (Frame* child = tree().firstChild(); child; child = child->tree().nextSi
bling()) |
| 205 childrenToDetach.append(child); | 205 childrenToDetach.append(child); |
| 206 for (const auto& child : childrenToDetach) | 206 for (const auto& child : childrenToDetach) |
| 207 child->detach(FrameDetachType::Remove); | 207 child->detach(FrameDetachType::Remove); |
| 208 } | 208 } |
| 209 | 209 |
| 210 } // namespace blink | 210 } // namespace blink |
| OLD | NEW |