// Copyright 2020 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_READABLE_STREAM_TRANSFERRING_OPTIMIZER_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_STREAMS_READABLE_STREAM_TRANSFERRING_OPTIMIZER_H_ #include "third_party/blink/renderer/core/core_export.h" #include "third_party/blink/renderer/platform/wtf/allocator/allocator.h" namespace blink { class UnderlyingSourceBase; class ScriptState; // ReadableStreamTransferringOptimizer is the base class used to optimize // transferring a ReadableStream. Please see // https://docs.google.com/document/d/1_KuZzg5c3pncLJPFa8SuVm23AP4tft6mzPCL5at3I9M/. // // A ReadableStreamTransferringOptimizer is associated with the source of a // ReadableStream. When transferring the stream in another realm, the optimizer // is used to construct the transferred stream in the destination realm. Note // that two realms can be in different threads (in the same process), in which // case the optimizer is used across threads. class CORE_EXPORT ReadableStreamTransferringOptimizer { … }; } // namespace blink #endif // THIRD_PARTY_BLINK_RENDERER_CORE_STREAMS_READABLE_STREAM_TRANSFERRING_OPTIMIZER_H_