blob: 785ca45b5aece7bb511dc6fb14d954e229f00ab3 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Functions used to build transferable streams.
#include "third_party/blink/renderer/core/core_export.h"
namespace blink {
class ExceptionState;
class MessagePort;
class ReadableStream;
class ScriptState;
class WritableStream;
// Creates the writable side of a cross-realm identity transform stream, using
// |port| for communication. |port| must be entangled with another MessagePort
// which is passed to CreateCrossRealmTransformReadable().
CORE_EXPORT WritableStream* CreateCrossRealmTransformWritable(ScriptState*,
MessagePort* port,
// Creates the readable side of a cross-realm identity transform stream. |port|
// is used symmetrically with CreateCrossRealmTransformWritable().
CORE_EXPORT ReadableStream* CreateCrossRealmTransformReadable(ScriptState*,
MessagePort* port,
} // namespace blink