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

Side by Side Diff: net/quic/chromium/bidirectional_stream_quic_impl.h

Issue 2393233002: Remove OnDataAvailable() notification when trailers are to be delivered (Closed)
Patch Set: self review Created 4 years, 2 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
OLDNEW
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_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ 5 #ifndef NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_
6 #define NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ 6 #define NET_QUIC_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
71 void OnSessionClosed(int error, bool port_migration_detected) override; 71 void OnSessionClosed(int error, bool port_migration_detected) override;
72 72
73 void OnStreamReady(int rv); 73 void OnStreamReady(int rv);
74 void OnSendDataComplete(int rv); 74 void OnSendDataComplete(int rv);
75 void OnReadDataComplete(int rv); 75 void OnReadDataComplete(int rv);
76 76
77 // Notifies the delegate of an error. 77 // Notifies the delegate of an error.
78 void NotifyError(int error); 78 void NotifyError(int error);
79 // Notifies the delegate that the stream is ready. 79 // Notifies the delegate that the stream is ready.
80 void NotifyStreamReady(); 80 void NotifyStreamReady();
81 // Notify the delegate that |bytes_read| number of bytes is read.
82 void NotifyDataRead(int bytes_read);
81 // Resets the stream and ensures that |delegate_| won't be called back. 83 // Resets the stream and ensures that |delegate_| won't be called back.
82 void ResetStream(); 84 void ResetStream();
83 85
84 base::WeakPtr<QuicChromiumClientSession> session_; 86 base::WeakPtr<QuicChromiumClientSession> session_;
85 bool was_handshake_confirmed_; // True if the crypto handshake succeeded. 87 bool was_handshake_confirmed_; // True if the crypto handshake succeeded.
86 QuicChromiumClientSession::StreamRequest stream_request_; 88 QuicChromiumClientSession::StreamRequest stream_request_;
87 QuicChromiumClientStream* stream_; // Non-owning. 89 QuicChromiumClientStream* stream_; // Non-owning.
88 90
89 const BidirectionalStreamRequestInfo* request_info_; 91 const BidirectionalStreamRequestInfo* request_info_;
90 BidirectionalStreamImpl::Delegate* delegate_; 92 BidirectionalStreamImpl::Delegate* delegate_;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 bool waiting_for_confirmation_; 135 bool waiting_for_confirmation_;
134 136
135 base::WeakPtrFactory<BidirectionalStreamQuicImpl> weak_factory_; 137 base::WeakPtrFactory<BidirectionalStreamQuicImpl> weak_factory_;
136 138
137 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamQuicImpl); 139 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamQuicImpl);
138 }; 140 };
139 141
140 } // namespace net 142 } // namespace net
141 143
142 #endif // NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ 144 #endif // NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698