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

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

Issue 2351513002: net: rename BoundNetLog to NetLogWithSource (Closed)
Patch Set: REBASE Created 4 years, 3 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 delegate_ = nullptr; 46 delegate_ = nullptr;
47 stream_->Reset(QUIC_STREAM_CANCELLED); 47 stream_->Reset(QUIC_STREAM_CANCELLED);
48 } 48 }
49 49
50 if (session_) 50 if (session_)
51 session_->RemoveObserver(this); 51 session_->RemoveObserver(this);
52 } 52 }
53 53
54 void BidirectionalStreamQuicImpl::Start( 54 void BidirectionalStreamQuicImpl::Start(
55 const BidirectionalStreamRequestInfo* request_info, 55 const BidirectionalStreamRequestInfo* request_info,
56 const BoundNetLog& net_log, 56 const NetLogWithSource& net_log,
57 bool send_request_headers_automatically, 57 bool send_request_headers_automatically,
58 BidirectionalStreamImpl::Delegate* delegate, 58 BidirectionalStreamImpl::Delegate* delegate,
59 std::unique_ptr<base::Timer> /* timer */) { 59 std::unique_ptr<base::Timer> /* timer */) {
60 DCHECK(!stream_); 60 DCHECK(!stream_);
61 CHECK(delegate); 61 CHECK(delegate);
62 62
63 send_request_headers_automatically_ = send_request_headers_automatically; 63 send_request_headers_automatically_ = send_request_headers_automatically;
64 if (!session_) { 64 if (!session_) {
65 NotifyError(was_handshake_confirmed_ ? ERR_QUIC_PROTOCOL_ERROR 65 NotifyError(was_handshake_confirmed_ ? ERR_QUIC_PROTOCOL_ERROR
66 : ERR_QUIC_HANDSHAKE_FAILED); 66 : ERR_QUIC_HANDSHAKE_FAILED);
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 void BidirectionalStreamQuicImpl::ResetStream() { 339 void BidirectionalStreamQuicImpl::ResetStream() {
340 if (!stream_) 340 if (!stream_)
341 return; 341 return;
342 closed_stream_received_bytes_ = stream_->stream_bytes_read(); 342 closed_stream_received_bytes_ = stream_->stream_bytes_read();
343 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); 343 closed_stream_sent_bytes_ = stream_->stream_bytes_written();
344 stream_->SetDelegate(nullptr); 344 stream_->SetDelegate(nullptr);
345 stream_ = nullptr; 345 stream_ = nullptr;
346 } 346 }
347 347
348 } // namespace net 348 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698