| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |