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

Unified Diff: third_party/WebKit/Source/core/streams/Stream.cpp

Issue 1750453002: Reduce ActiveDOMObjects from core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
Index: third_party/WebKit/Source/core/streams/Stream.cpp
diff --git a/third_party/WebKit/Source/core/streams/Stream.cpp b/third_party/WebKit/Source/core/streams/Stream.cpp
index 16ac9c07ea0bb803a0df99120910950d78dac541..c9dd69cddbbd3fe79a7c90c9e3b1e4d660e9a3df 100644
--- a/third_party/WebKit/Source/core/streams/Stream.cpp
+++ b/third_party/WebKit/Source/core/streams/Stream.cpp
@@ -37,7 +37,7 @@
namespace blink {
Stream::Stream(ExecutionContext* context, const String& mediaType)
- : ActiveDOMObject(context)
+ : ContextLifecycleObserver(context)
, m_mediaType(mediaType)
, m_isNeutered(false)
{
@@ -75,15 +75,7 @@ Stream::~Stream()
BlobRegistry::unregisterStreamURL(m_internalURL);
}
-void Stream::suspend()
-{
-}
-
-void Stream::resume()
-{
-}
-
-void Stream::stop()
+void Stream::contextDestroyed()
{
neuter();
abort();
@@ -91,7 +83,7 @@ void Stream::stop()
DEFINE_TRACE(Stream)
{
- ActiveDOMObject::trace(visitor);
+ ContextLifecycleObserver::trace(visitor);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698