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

Unified Diff: Source/web/InspectorFrontendClientImpl.cpp

Issue 415043003: Oilpan: Prepare moving InspectorFrontendHost to Oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 5 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/InspectorFrontendClientImpl.h ('k') | Source/web/WebDevToolsFrontendImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/InspectorFrontendClientImpl.cpp
diff --git a/Source/web/InspectorFrontendClientImpl.cpp b/Source/web/InspectorFrontendClientImpl.cpp
index dec64f2ae13ef0385262df036f12230f2bab36bd..b8c312d3c0f4bcbe0799cda7bf06722044686d18 100644
--- a/Source/web/InspectorFrontendClientImpl.cpp
+++ b/Source/web/InspectorFrontendClientImpl.cpp
@@ -54,8 +54,22 @@ InspectorFrontendClientImpl::InspectorFrontendClientImpl(Page* frontendPage, Web
InspectorFrontendClientImpl::~InspectorFrontendClientImpl()
{
- if (m_frontendHost)
+ ASSERT(!m_frontendHost);
+}
+
+void InspectorFrontendClientImpl::trace(Visitor* visitor)
+{
+ visitor->trace(m_frontendPage);
+ visitor->trace(m_frontendHost);
+ InspectorFrontendClient::trace(visitor);
+}
+
+void InspectorFrontendClientImpl::dispose()
+{
+ if (m_frontendHost) {
m_frontendHost->disconnectClient();
+ m_frontendHost = nullptr;
+ }
m_client = 0;
}
« no previous file with comments | « Source/web/InspectorFrontendClientImpl.h ('k') | Source/web/WebDevToolsFrontendImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698