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

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

Issue 1924623002: [Cronet] Do not call into BidirectionalStream::SendData if stream failed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: 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 #include <string> 9 #include <string>
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 CronetURLRequestContextAdapter* const context_; 115 CronetURLRequestContextAdapter* const context_;
116 116
117 // Java object that owns this CronetBidirectionalStreamAdapter. 117 // Java object that owns this CronetBidirectionalStreamAdapter.
118 base::android::ScopedJavaGlobalRef<jobject> owner_; 118 base::android::ScopedJavaGlobalRef<jobject> owner_;
119 119
120 scoped_refptr<IOBufferWithByteBuffer> read_buffer_; 120 scoped_refptr<IOBufferWithByteBuffer> read_buffer_;
121 scoped_refptr<IOBufferWithByteBuffer> write_buffer_; 121 scoped_refptr<IOBufferWithByteBuffer> write_buffer_;
122 scoped_ptr<net::BidirectionalStream> bidi_stream_; 122 scoped_ptr<net::BidirectionalStream> bidi_stream_;
123 123
124 // Whether BidirectionalStream::Delegate::OnFailed callback is invoked.
125 bool stream_failed_;
126
124 DISALLOW_COPY_AND_ASSIGN(CronetBidirectionalStreamAdapter); 127 DISALLOW_COPY_AND_ASSIGN(CronetBidirectionalStreamAdapter);
125 }; 128 };
126 129
127 } // namespace cronet 130 } // namespace cronet
128 131
129 #endif // COMPONENTS_CRONET_ANDROID_CRONET_BIDIRECTIONAL_STREAM_ADAPTER_H_ 132 #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