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

Unified Diff: Source/core/dom/ScriptExecutionContext.cpp

Issue 17351003: Rename ContextDestructionObserver to ContextLifecycleObserver (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reapplied Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/ScriptExecutionContext.h ('k') | Source/core/html/track/TextTrackRegion.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ScriptExecutionContext.cpp
diff --git a/Source/core/dom/ScriptExecutionContext.cpp b/Source/core/dom/ScriptExecutionContext.cpp
index f0128f58406ad670e6d75e083851523d2355ee94..e69fff8a7d8bb9a27cf38516df504f9cffb15ee6 100644
--- a/Source/core/dom/ScriptExecutionContext.cpp
+++ b/Source/core/dom/ScriptExecutionContext.cpp
@@ -46,7 +46,7 @@
namespace WTF {
-template<> struct SequenceMemoryInstrumentationTraits<WebCore::ContextDestructionObserver*> {
+template<> struct SequenceMemoryInstrumentationTraits<WebCore::ContextLifecycleObserver*> {
template <typename I> static void reportMemoryUsage(I, I, MemoryClassInfo&) { }
};
@@ -194,12 +194,12 @@ void ScriptExecutionContext::suspendActiveDOMObjectIfNeeded(ActiveDOMObject* obj
object->suspend(m_reasonForSuspendingActiveDOMObjects);
}
-void ScriptExecutionContext::wasObservedBy(ContextDestructionObserver* observer, ContextDestructionObserver::Type as)
+void ScriptExecutionContext::wasObservedBy(ContextLifecycleObserver* observer, ContextLifecycleObserver::Type as)
{
lifecycleNotifier()->addObserver(observer, as);
}
-void ScriptExecutionContext::wasUnobservedBy(ContextDestructionObserver* observer, ContextDestructionObserver::Type as)
+void ScriptExecutionContext::wasUnobservedBy(ContextLifecycleObserver* observer, ContextLifecycleObserver::Type as)
{
lifecycleNotifier()->removeObserver(observer, as);
}
« no previous file with comments | « Source/core/dom/ScriptExecutionContext.h ('k') | Source/core/html/track/TextTrackRegion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698