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

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

Issue 2920873002: Ensure that BidirectionalStreamQuicImpl does not synchronously invoke callbacks (Closed)
Patch Set: Rebase Created 3 years, 6 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
« no previous file with comments | « no previous file | net/quic/chromium/bidirectional_stream_quic_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 bool closed_is_first_stream_; 124 bool closed_is_first_stream_;
125 // Indicates whether initial headers have been sent. 125 // Indicates whether initial headers have been sent.
126 bool has_sent_headers_; 126 bool has_sent_headers_;
127 127
128 // Whether to automatically send request headers when stream is negotiated. 128 // Whether to automatically send request headers when stream is negotiated.
129 // If false, headers will not be sent until SendRequestHeaders() is called or 129 // If false, headers will not be sent until SendRequestHeaders() is called or
130 // until next SendData/SendvData, during which QUIC will try to combine header 130 // until next SendData/SendvData, during which QUIC will try to combine header
131 // frame with data frame in the same packet if possible. 131 // frame with data frame in the same packet if possible.
132 bool send_request_headers_automatically_; 132 bool send_request_headers_automatically_;
133 133
134 // True when callbacks to the delegate may be invoked synchronously.
135 bool may_invoke_callbacks_;
136
134 base::WeakPtrFactory<BidirectionalStreamQuicImpl> weak_factory_; 137 base::WeakPtrFactory<BidirectionalStreamQuicImpl> weak_factory_;
135 138
136 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamQuicImpl); 139 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamQuicImpl);
137 }; 140 };
138 141
139 } // namespace net 142 } // namespace net
140 143
141 #endif // NET_QUIC_CHROMIUM_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ 144 #endif // NET_QUIC_CHROMIUM_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/chromium/bidirectional_stream_quic_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698