Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1344)

Unified Diff: Source/web/FrameLoaderClientImpl.cpp

Issue 1306793003: Oilpan: Move FrameLoaderClient class hierarchy into Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | Source/web/InspectorOverlayImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/FrameLoaderClientImpl.cpp
diff --git a/Source/web/FrameLoaderClientImpl.cpp b/Source/web/FrameLoaderClientImpl.cpp
index 56b861c1e761e5621da540a81f47a05ad8a60c72..1a2de48d499f6166c4f89a2b381f8c9b9a516897 100644
--- a/Source/web/FrameLoaderClientImpl.cpp
+++ b/Source/web/FrameLoaderClientImpl.cpp
@@ -109,10 +109,21 @@ FrameLoaderClientImpl::FrameLoaderClientImpl(WebLocalFrameImpl* frame)
{
}
+PassOwnPtrWillBeRawPtr<FrameLoaderClientImpl> FrameLoaderClientImpl::create(WebLocalFrameImpl* frame)
+{
+ return adoptPtrWillBeNoop(new FrameLoaderClientImpl(frame));
+}
+
FrameLoaderClientImpl::~FrameLoaderClientImpl()
{
}
+DEFINE_TRACE(FrameLoaderClientImpl)
+{
+ visitor->trace(m_webFrame);
+ FrameLoaderClient::trace(visitor);
+}
+
void FrameLoaderClientImpl::didCreateNewDocument()
{
if (m_webFrame->client())
@@ -322,7 +333,7 @@ void FrameLoaderClientImpl::detached(FrameDetachType type)
{
// Alert the client that the frame is being detached. This is the last
// chance we have to communicate with the client.
- RefPtrWillBeRawPtr<WebLocalFrameImpl> protector(m_webFrame);
+ RefPtrWillBeRawPtr<WebLocalFrameImpl> protector(m_webFrame.get());
WebFrameClient* client = m_webFrame->client();
if (!client)
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | Source/web/InspectorOverlayImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698