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

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

Issue 2868633002: Create a QuicChromiumClientStream::Handle class for allowing a stream (Closed)
Patch Set: Rebase Created 3 years, 7 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 #include "net/quic/chromium/bidirectional_stream_quic_impl.h" 5 #include "net/quic/chromium/bidirectional_stream_quic_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 if (delegate_) 333 if (delegate_)
334 delegate_->OnStreamReady(has_sent_headers_); 334 delegate_->OnStreamReady(has_sent_headers_);
335 } 335 }
336 336
337 void BidirectionalStreamQuicImpl::ResetStream() { 337 void BidirectionalStreamQuicImpl::ResetStream() {
338 if (!stream_) 338 if (!stream_)
339 return; 339 return;
340 closed_stream_received_bytes_ = stream_->stream_bytes_read(); 340 closed_stream_received_bytes_ = stream_->stream_bytes_read();
341 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); 341 closed_stream_sent_bytes_ = stream_->stream_bytes_written();
342 closed_is_first_stream_ = stream_->IsFirstStream(); 342 closed_is_first_stream_ = stream_->IsFirstStream();
343 stream_->SetDelegate(nullptr); 343 stream_->ClearDelegate();
344 stream_ = nullptr; 344 stream_ = nullptr;
345 } 345 }
346 346
347 } // namespace net 347 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/chromium/bidirectional_stream_quic_impl.h ('k') | net/quic/chromium/quic_chromium_client_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698