Index: third_party/WebKit/Source/core/streams/UnderlyingSourceBase.h |
diff --git a/third_party/WebKit/Source/core/streams/UnderlyingSourceBase.h b/third_party/WebKit/Source/core/streams/UnderlyingSourceBase.h |
index 0a1e81a2e4173cfa9156f607db0172aae54351a5..81050242d0c5948044fd771725692ae14400ff73 100644 |
--- a/third_party/WebKit/Source/core/streams/UnderlyingSourceBase.h |
+++ b/third_party/WebKit/Source/core/streams/UnderlyingSourceBase.h |
@@ -10,7 +10,7 @@ |
#include "bindings/core/v8/ScriptValue.h" |
#include "bindings/core/v8/ScriptWrappable.h" |
#include "core/CoreExport.h" |
-#include "core/dom/ActiveDOMObject.h" |
+#include "core/dom/ContextLifecycleObserver.h" |
#include "platform/heap/GarbageCollected.h" |
#include "platform/heap/Handle.h" |
@@ -18,7 +18,7 @@ namespace blink { |
class ReadableStreamController; |
-class CORE_EXPORT UnderlyingSourceBase : public GarbageCollectedFinalized<UnderlyingSourceBase>, public ScriptWrappable, public ActiveDOMObject { |
+class CORE_EXPORT UnderlyingSourceBase : public GarbageCollectedFinalized<UnderlyingSourceBase>, public ScriptWrappable, public ContextLifecycleObserver { |
DEFINE_WRAPPERTYPEINFO(); |
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(UnderlyingSourceBase); |
@@ -34,15 +34,13 @@ public: |
ScriptPromise cancelWrapper(ScriptState*, ScriptValue reason); |
virtual ScriptPromise cancel(ScriptState*, ScriptValue reason); |
- // ActiveDOMObject |
bool hasPendingActivity() const override; |
- void stop() override; |
+ void contextDestroyed() override; |
protected: |
explicit UnderlyingSourceBase(ScriptState* scriptState) |
- : ActiveDOMObject(scriptState->executionContext()) |
+ : ContextLifecycleObserver(scriptState->executionContext()) |
{ |
- this->suspendIfNeeded(); |
} |
ReadableStreamController* controller() const { return m_controller; } |