| 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 "bindings/core/v8/WindowProxy.h" | 7 #include "bindings/core/v8/WindowProxy.h" |
| 8 #include "core/dom/Fullscreen.h" | 8 #include "core/dom/Fullscreen.h" |
| 9 #include "core/dom/RemoteSecurityContext.h" | 9 #include "core/dom/RemoteSecurityContext.h" |
| 10 #include "core/dom/SecurityContext.h" | 10 #include "core/dom/SecurityContext.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 WebRemoteFrameImpl* frame = new WebRemoteFrameImpl(scope, client); | 44 WebRemoteFrameImpl* frame = new WebRemoteFrameImpl(scope, client); |
| 45 frame->SetOpener(opener); | 45 frame->SetOpener(opener); |
| 46 return frame; | 46 return frame; |
| 47 } | 47 } |
| 48 | 48 |
| 49 WebRemoteFrameImpl::~WebRemoteFrameImpl() {} | 49 WebRemoteFrameImpl::~WebRemoteFrameImpl() {} |
| 50 | 50 |
| 51 DEFINE_TRACE(WebRemoteFrameImpl) { | 51 DEFINE_TRACE(WebRemoteFrameImpl) { |
| 52 visitor->Trace(frame_client_); | 52 visitor->Trace(frame_client_); |
| 53 visitor->Trace(frame_); | 53 visitor->Trace(frame_); |
| 54 WebRemoteFrameBase::Trace(visitor); |
| 54 WebFrame::TraceFrames(visitor, this); | 55 WebFrame::TraceFrames(visitor, this); |
| 55 } | 56 } |
| 56 | 57 |
| 57 bool WebRemoteFrameImpl::IsWebLocalFrame() const { | 58 bool WebRemoteFrameImpl::IsWebLocalFrame() const { |
| 58 return false; | 59 return false; |
| 59 } | 60 } |
| 60 | 61 |
| 61 WebLocalFrame* WebRemoteFrameImpl::ToWebLocalFrame() { | 62 WebLocalFrame* WebRemoteFrameImpl::ToWebLocalFrame() { |
| 62 NOTREACHED(); | 63 NOTREACHED(); |
| 63 return nullptr; | 64 return nullptr; |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 } | 526 } |
| 526 | 527 |
| 527 v8::Local<v8::Object> WebRemoteFrameImpl::GlobalProxy() const { | 528 v8::Local<v8::Object> WebRemoteFrameImpl::GlobalProxy() const { |
| 528 return GetFrame() | 529 return GetFrame() |
| 529 ->GetWindowProxy(DOMWrapperWorld::MainWorld()) | 530 ->GetWindowProxy(DOMWrapperWorld::MainWorld()) |
| 530 ->GlobalProxyIfNotDetached(); | 531 ->GlobalProxyIfNotDetached(); |
| 531 } | 532 } |
| 532 | 533 |
| 533 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, | 534 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, |
| 534 WebRemoteFrameClient* client) | 535 WebRemoteFrameClient* client) |
| 535 : WebRemoteFrame(scope), | 536 : WebRemoteFrameBase(scope), |
| 536 frame_client_(RemoteFrameClientImpl::Create(this)), | 537 frame_client_(RemoteFrameClientImpl::Create(this)), |
| 537 client_(client), | 538 client_(client), |
| 538 self_keep_alive_(this) {} | 539 self_keep_alive_(this) {} |
| 539 | 540 |
| 540 } // namespace blink | 541 } // namespace blink |
| OLD | NEW |