Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: third_party/WebKit/Source/core/streams/ReadableByteStream.cpp

Issue 2227403002: Remove blink::ReadableStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698