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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 void OnReadDataComplete(int rv); | 71 void OnReadDataComplete(int rv); |
72 | 72 |
73 // Notifies the delegate of an error. | 73 // Notifies the delegate of an error. |
74 void NotifyError(int error); | 74 void NotifyError(int error); |
75 // Notifies the delegate that the stream is ready. | 75 // Notifies the delegate that the stream is ready. |
76 void NotifyStreamReady(); | 76 void NotifyStreamReady(); |
77 // Resets the stream and ensures that |delegate_| won't be called back. | 77 // Resets the stream and ensures that |delegate_| won't be called back. |
78 void ResetStream(); | 78 void ResetStream(); |
79 | 79 |
80 const std::unique_ptr<QuicChromiumClientSession::Handle> session_; | 80 const std::unique_ptr<QuicChromiumClientSession::Handle> session_; |
81 QuicChromiumClientStream* stream_; // Non-owning. | 81 std::unique_ptr<QuicChromiumClientStream::Handle> stream_; |
82 | 82 |
83 const BidirectionalStreamRequestInfo* request_info_; | 83 const BidirectionalStreamRequestInfo* request_info_; |
84 BidirectionalStreamImpl::Delegate* delegate_; | 84 BidirectionalStreamImpl::Delegate* delegate_; |
85 // Saves the response status if the stream is explicitly closed via OnError | 85 // Saves the response status if the stream is explicitly closed via OnError |
86 // or OnClose with an error. Once all buffered data has been returned, this | 86 // or OnClose with an error. Once all buffered data has been returned, this |
87 // will be used as the final response. | 87 // will be used as the final response. |
88 int response_status_; | 88 int response_status_; |
89 | 89 |
90 // The protocol that is negotiated. | 90 // The protocol that is negotiated. |
91 NextProto negotiated_protocol_; | 91 NextProto negotiated_protocol_; |
(...skipping 29 matching lines...) Expand all Loading... |
121 bool send_request_headers_automatically_; | 121 bool send_request_headers_automatically_; |
122 | 122 |
123 base::WeakPtrFactory<BidirectionalStreamQuicImpl> weak_factory_; | 123 base::WeakPtrFactory<BidirectionalStreamQuicImpl> weak_factory_; |
124 | 124 |
125 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamQuicImpl); | 125 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamQuicImpl); |
126 }; | 126 }; |
127 | 127 |
128 } // namespace net | 128 } // namespace net |
129 | 129 |
130 #endif // NET_QUIC_CHROMIUM_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ | 130 #endif // NET_QUIC_CHROMIUM_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ |
OLD | NEW |