chromium/third_party/blink/renderer/core/streams/underlying_source_base.h

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_STREAMS_UNDERLYING_SOURCE_BASE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_STREAMS_UNDERLYING_SOURCE_BASE_H_

#include "third_party/blink/renderer/bindings/core/v8/script_promise.h"
#include "third_party/blink/renderer/bindings/core/v8/script_value.h"
#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/execution_context/execution_context_lifecycle_observer.h"
#include "third_party/blink/renderer/core/streams/stream_algorithms.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"

namespace blink {

class ReadableStreamDefaultController;
class ReadableStreamDefaultControllerWithScriptScope;
class ScriptState;

class CORE_EXPORT UnderlyingSourceBase
    : public GarbageCollected<UnderlyingSourceBase>,
      public ExecutionContextLifecycleObserver {};

class UnderlyingStartAlgorithm final : public StreamStartAlgorithm {};

class UnderlyingPullAlgorithm final : public StreamAlgorithm {};

class UnderlyingCancelAlgorithm final : public StreamAlgorithm {};

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_CORE_STREAMS_UNDERLYING_SOURCE_BASE_H_