Chromium Code Reviews| 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/FrameOwner.h" | 8 #include "core/frame/FrameOwner.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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 124 #if ENABLE(OILPAN) | 124 #if ENABLE(OILPAN) |
| 125 , m_selfKeepAlive(this) | 125 , m_selfKeepAlive(this) |
| 126 #endif | 126 #endif |
| 127 { | 127 { |
| 128 } | 128 } |
| 129 | 129 |
| 130 WebRemoteFrameImpl::~WebRemoteFrameImpl() | 130 WebRemoteFrameImpl::~WebRemoteFrameImpl() |
| 131 { | 131 { |
| 132 } | 132 } |
| 133 | 133 |
| 134 #if ENABLE(OILPAN) | |
| 134 void WebRemoteFrameImpl::trace(Visitor* visitor) | 135 void WebRemoteFrameImpl::trace(Visitor* visitor) |
| 135 { | 136 { |
| 136 #if ENABLE(OILPAN) | |
| 137 visitor->trace(m_frame); | 137 visitor->trace(m_frame); |
| 138 visitor->trace(m_ownersForChildren); | 138 visitor->trace(m_ownersForChildren); |
| 139 visitor->registerWeakMembers<WebRemoteFrameImpl, &WebRemoteFrameImpl::clearW eakMembers>(this); | |
|
dcheng
2014/09/29 04:11:45
Why do we need to forward this through WebRemoteFr
sof
2014/09/29 06:41:25
You could do that, but you have to be careful not
| |
| 140 WebFrame::traceFrames(visitor, this); | |
| 141 } | |
| 139 | 142 |
| 140 WebFrame::traceChildren(visitor, this); | 143 void WebRemoteFrameImpl::clearWeakMembers(Visitor* visitor) |
| 144 { | |
| 145 WebFrame::clearWeakFrames(visitor, this); | |
| 146 } | |
| 141 #endif | 147 #endif |
| 142 } | |
| 143 | 148 |
| 144 bool WebRemoteFrameImpl::isWebLocalFrame() const | 149 bool WebRemoteFrameImpl::isWebLocalFrame() const |
| 145 { | 150 { |
| 146 return false; | 151 return false; |
| 147 } | 152 } |
| 148 | 153 |
| 149 WebLocalFrame* WebRemoteFrameImpl::toWebLocalFrame() | 154 WebLocalFrame* WebRemoteFrameImpl::toWebLocalFrame() |
| 150 { | 155 { |
| 151 ASSERT_NOT_REACHED(); | 156 ASSERT_NOT_REACHED(); |
| 152 return 0; | 157 return 0; |
| (...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 873 } | 878 } |
| 874 | 879 |
| 875 WebRemoteFrameImpl* WebRemoteFrameImpl::fromFrame(RemoteFrame& frame) | 880 WebRemoteFrameImpl* WebRemoteFrameImpl::fromFrame(RemoteFrame& frame) |
| 876 { | 881 { |
| 877 if (!frame.client()) | 882 if (!frame.client()) |
| 878 return 0; | 883 return 0; |
| 879 return static_cast<RemoteFrameClient*>(frame.client())->webFrame(); | 884 return static_cast<RemoteFrameClient*>(frame.client())->webFrame(); |
| 880 } | 885 } |
| 881 | 886 |
| 882 } // namespace blink | 887 } // namespace blink |
| OLD | NEW |