| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "core/streams/ReadableByteStream.h" | |
| 6 | |
| 7 #include "bindings/core/v8/ExceptionState.h" | |
| 8 #include "bindings/core/v8/ScriptState.h" | |
| 9 #include "core/streams/ReadableByteStreamReader.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 | |
| 13 ReadableByteStreamReader* ReadableByteStream::getBytesReader(ExecutionContext* e
xecutionContext, ExceptionState& es) | |
| 14 { | |
| 15 ReadableStreamReader* reader = getReader(executionContext, es); | |
| 16 if (es.hadException()) | |
| 17 return nullptr; | |
| 18 return new ReadableByteStreamReader(reader); | |
| 19 } | |
| 20 | |
| 21 } // namespace blink | |
| OLD | NEW |