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

Side by Side Diff: components/cronet/android/cronet_bidirectional_stream_adapter.h

Issue 1911353003: [Cronet] Do not call into BidirectionalStream::SendData if stream failed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 7 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
« no previous file with comments | « no previous file | components/cronet/android/cronet_bidirectional_stream_adapter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_CRONET_ANDROID_CRONET_BIDIRECTIONAL_STREAM_ADAPTER_H_ 5 #ifndef COMPONENTS_CRONET_ANDROID_CRONET_BIDIRECTIONAL_STREAM_ADAPTER_H_
6 #define COMPONENTS_CRONET_ANDROID_CRONET_BIDIRECTIONAL_STREAM_ADAPTER_H_ 6 #define COMPONENTS_CRONET_ANDROID_CRONET_BIDIRECTIONAL_STREAM_ADAPTER_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 CronetURLRequestContextAdapter* const context_; 116 CronetURLRequestContextAdapter* const context_;
117 117
118 // Java object that owns this CronetBidirectionalStreamAdapter. 118 // Java object that owns this CronetBidirectionalStreamAdapter.
119 base::android::ScopedJavaGlobalRef<jobject> owner_; 119 base::android::ScopedJavaGlobalRef<jobject> owner_;
120 120
121 scoped_refptr<IOBufferWithByteBuffer> read_buffer_; 121 scoped_refptr<IOBufferWithByteBuffer> read_buffer_;
122 scoped_refptr<IOBufferWithByteBuffer> write_buffer_; 122 scoped_refptr<IOBufferWithByteBuffer> write_buffer_;
123 std::unique_ptr<net::BidirectionalStream> bidi_stream_; 123 std::unique_ptr<net::BidirectionalStream> bidi_stream_;
124 124
125 // Whether BidirectionalStream::Delegate::OnFailed callback is invoked.
126 bool stream_failed_;
127
125 DISALLOW_COPY_AND_ASSIGN(CronetBidirectionalStreamAdapter); 128 DISALLOW_COPY_AND_ASSIGN(CronetBidirectionalStreamAdapter);
126 }; 129 };
127 130
128 } // namespace cronet 131 } // namespace cronet
129 132
130 #endif // COMPONENTS_CRONET_ANDROID_CRONET_BIDIRECTIONAL_STREAM_ADAPTER_H_ 133 #endif // COMPONENTS_CRONET_ANDROID_CRONET_BIDIRECTIONAL_STREAM_ADAPTER_H_
OLDNEW
« no previous file with comments | « no previous file | components/cronet/android/cronet_bidirectional_stream_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698