Source code

Revision control

Other Tools

1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2
* vim: set ts=8 sts=2 et sw=2 tw=80:
3
* This Source Code Form is subject to the terms of the Mozilla Public
4
* License, v. 2.0. If a copy of the MPL was not distributed with this
5
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
#ifndef builtin_Stream_h
8
#define builtin_Stream_h
9
10
#include "mozilla/Attributes.h" // MOZ_MUST_USE
11
12
#include "jstypes.h" // JS_PUBLIC_API
13
#include "js/RootingAPI.h" // JS::Handle
14
15
struct JS_PUBLIC_API JSContext;
16
17
namespace js {
18
19
class ReadableByteStreamController;
20
class ReadableStreamController;
21
22
extern MOZ_MUST_USE bool ReadableByteStreamControllerClearPendingPullIntos(
23
JSContext* cx,
24
JS::Handle<ReadableByteStreamController*> unwrappedController);
25
26
extern MOZ_MUST_USE bool ReadableByteStreamControllerClose(
27
JSContext* cx,
28
JS::Handle<ReadableByteStreamController*> unwrappedController);
29
30
extern MOZ_MUST_USE JSObject* ReadableStreamControllerPullSteps(
31
JSContext* cx, JS::Handle<ReadableStreamController*> unwrappedController);
32
33
} // namespace js
34
35
#endif /* builtin_Stream_h */