| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 NET_QUIC_CHROMIUM_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ | 5 #ifndef NET_QUIC_CHROMIUM_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ |
| 6 #define NET_QUIC_CHROMIUM_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ | 6 #define NET_QUIC_CHROMIUM_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 // Notifies the delegate of an error. | 78 // Notifies the delegate of an error. |
| 79 void NotifyError(int error); | 79 void NotifyError(int error); |
| 80 // Notifies the delegate that the stream is ready. | 80 // Notifies the delegate that the stream is ready. |
| 81 void NotifyStreamReady(); | 81 void NotifyStreamReady(); |
| 82 // Resets the stream and ensures that |delegate_| won't be called back. | 82 // Resets the stream and ensures that |delegate_| won't be called back. |
| 83 void ResetStream(); | 83 void ResetStream(); |
| 84 | 84 |
| 85 base::WeakPtr<QuicChromiumClientSession> session_; | 85 base::WeakPtr<QuicChromiumClientSession> session_; |
| 86 bool was_handshake_confirmed_; // True if the crypto handshake succeeded. | 86 bool was_handshake_confirmed_; // True if the crypto handshake succeeded. |
| 87 QuicChromiumClientSession::StreamRequest stream_request_; | 87 std::unique_ptr<QuicChromiumClientSession::StreamRequest> stream_request_; |
| 88 QuicChromiumClientStream* stream_; // Non-owning. | 88 QuicChromiumClientStream* stream_; // Non-owning. |
| 89 | 89 |
| 90 const BidirectionalStreamRequestInfo* request_info_; | 90 const BidirectionalStreamRequestInfo* request_info_; |
| 91 BidirectionalStreamImpl::Delegate* delegate_; | 91 BidirectionalStreamImpl::Delegate* delegate_; |
| 92 // Saves the response status if the stream is explicitly closed via OnError | 92 // Saves the response status if the stream is explicitly closed via OnError |
| 93 // or OnClose with an error. Once all buffered data has been returned, this | 93 // or OnClose with an error. Once all buffered data has been returned, this |
| 94 // will be used as the final response. | 94 // will be used as the final response. |
| 95 int response_status_; | 95 int response_status_; |
| 96 | 96 |
| 97 // The protocol that is negotiated. | 97 // The protocol that is negotiated. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 bool waiting_for_confirmation_; | 134 bool waiting_for_confirmation_; |
| 135 | 135 |
| 136 base::WeakPtrFactory<BidirectionalStreamQuicImpl> weak_factory_; | 136 base::WeakPtrFactory<BidirectionalStreamQuicImpl> weak_factory_; |
| 137 | 137 |
| 138 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamQuicImpl); | 138 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamQuicImpl); |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 } // namespace net | 141 } // namespace net |
| 142 | 142 |
| 143 #endif // NET_QUIC_CHROMIUM_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ | 143 #endif // NET_QUIC_CHROMIUM_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ |
| OLD | NEW |