| 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 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |