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

Side by Side Diff: net/spdy/bidirectional_stream_spdy_impl.cc

Issue 2351513002: net: rename BoundNetLog to NetLogWithSource (Closed)
Patch Set: one more fix, content bound_net_log_ 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/spdy/bidirectional_stream_spdy_impl.h" 5 #include "net/spdy/bidirectional_stream_spdy_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 30 matching lines...) Expand all
41 closed_has_load_timing_info_(false), 41 closed_has_load_timing_info_(false),
42 weak_factory_(this) {} 42 weak_factory_(this) {}
43 43
44 BidirectionalStreamSpdyImpl::~BidirectionalStreamSpdyImpl() { 44 BidirectionalStreamSpdyImpl::~BidirectionalStreamSpdyImpl() {
45 // Sends a RST to the remote if the stream is destroyed before it completes. 45 // Sends a RST to the remote if the stream is destroyed before it completes.
46 ResetStream(); 46 ResetStream();
47 } 47 }
48 48
49 void BidirectionalStreamSpdyImpl::Start( 49 void BidirectionalStreamSpdyImpl::Start(
50 const BidirectionalStreamRequestInfo* request_info, 50 const BidirectionalStreamRequestInfo* request_info,
51 const BoundNetLog& net_log, 51 const NetLogWithSource& net_log,
52 bool /*send_request_headers_automatically*/, 52 bool /*send_request_headers_automatically*/,
53 BidirectionalStreamImpl::Delegate* delegate, 53 BidirectionalStreamImpl::Delegate* delegate,
54 std::unique_ptr<base::Timer> timer) { 54 std::unique_ptr<base::Timer> timer) {
55 DCHECK(!stream_); 55 DCHECK(!stream_);
56 DCHECK(timer); 56 DCHECK(timer);
57 57
58 delegate_ = delegate; 58 delegate_ = delegate;
59 timer_ = std::move(timer); 59 timer_ = std::move(timer);
60 60
61 if (!spdy_session_) { 61 if (!spdy_session_) {
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 367
368 bool BidirectionalStreamSpdyImpl::ShouldWaitForMoreBufferedData() const { 368 bool BidirectionalStreamSpdyImpl::ShouldWaitForMoreBufferedData() const {
369 if (stream_closed_) 369 if (stream_closed_)
370 return false; 370 return false;
371 DCHECK_GT(read_buffer_len_, 0); 371 DCHECK_GT(read_buffer_len_, 0);
372 return read_data_queue_.GetTotalSize() < 372 return read_data_queue_.GetTotalSize() <
373 static_cast<size_t>(read_buffer_len_); 373 static_cast<size_t>(read_buffer_len_);
374 } 374 }
375 375
376 } // namespace net 376 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698