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

Side by Side Diff: Source/core/inspector/AsyncCallTracker.cpp

Issue 1160253006: Rename LifecycleObserver<T>::dispose() as clearContext() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rename as clearContext() Created 5 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/animation/Animation.cpp ('k') | Source/platform/LifecycleObserver.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 ASSERT(executionContext()); 77 ASSERT(executionContext());
78 OwnPtrWillBeRawPtr<ExecutionContextData> self = m_tracker->m_executionCo ntextDataMap.take(executionContext()); 78 OwnPtrWillBeRawPtr<ExecutionContextData> self = m_tracker->m_executionCo ntextDataMap.take(executionContext());
79 ASSERT_UNUSED(self, self == this); 79 ASSERT_UNUSED(self, self == this);
80 ContextLifecycleObserver::contextDestroyed(); 80 ContextLifecycleObserver::contextDestroyed();
81 disposeCallChains(); 81 disposeCallChains();
82 } 82 }
83 83
84 void unobserve() 84 void unobserve()
85 { 85 {
86 disposeCallChains(); 86 disposeCallChains();
87 dispose(); 87 ContextLifecycleObserver::clearContext();
88 } 88 }
89 89
90 DEFINE_INLINE_VIRTUAL_TRACE() 90 DEFINE_INLINE_VIRTUAL_TRACE()
91 { 91 {
92 visitor->trace(m_tracker); 92 visitor->trace(m_tracker);
93 #if ENABLE(OILPAN) 93 #if ENABLE(OILPAN)
94 visitor->trace(m_timerCallChains); 94 visitor->trace(m_timerCallChains);
95 visitor->trace(m_animationFrameCallChains); 95 visitor->trace(m_animationFrameCallChains);
96 visitor->trace(m_eventCallChains); 96 visitor->trace(m_eventCallChains);
97 visitor->trace(m_xhrCallChains); 97 visitor->trace(m_xhrCallChains);
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 { 425 {
426 #if ENABLE(OILPAN) 426 #if ENABLE(OILPAN)
427 visitor->trace(m_executionContextDataMap); 427 visitor->trace(m_executionContextDataMap);
428 visitor->trace(m_debuggerAgent); 428 visitor->trace(m_debuggerAgent);
429 visitor->trace(m_instrumentingAgents); 429 visitor->trace(m_instrumentingAgents);
430 #endif 430 #endif
431 InspectorDebuggerAgent::AsyncCallTrackingListener::trace(visitor); 431 InspectorDebuggerAgent::AsyncCallTrackingListener::trace(visitor);
432 } 432 }
433 433
434 } // namespace blink 434 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/animation/Animation.cpp ('k') | Source/platform/LifecycleObserver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698