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

Side by Side Diff: net/spdy/bidirectional_stream_spdy_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 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 29 matching lines...) Expand all
40 closed_stream_sent_bytes_(0), 40 closed_stream_sent_bytes_(0),
41 weak_factory_(this) {} 41 weak_factory_(this) {}
42 42
43 BidirectionalStreamSpdyImpl::~BidirectionalStreamSpdyImpl() { 43 BidirectionalStreamSpdyImpl::~BidirectionalStreamSpdyImpl() {
44 // Sends a RST to the remote if the stream is destroyed before it completes. 44 // Sends a RST to the remote if the stream is destroyed before it completes.
45 ResetStream(); 45 ResetStream();
46 } 46 }
47 47
48 void BidirectionalStreamSpdyImpl::Start( 48 void BidirectionalStreamSpdyImpl::Start(
49 const BidirectionalStreamRequestInfo* request_info, 49 const BidirectionalStreamRequestInfo* request_info,
50 const BoundNetLog& net_log, 50 const NetLogWithSource& net_log,
51 bool /*send_request_headers_automatically*/, 51 bool /*send_request_headers_automatically*/,
52 BidirectionalStreamImpl::Delegate* delegate, 52 BidirectionalStreamImpl::Delegate* delegate,
53 std::unique_ptr<base::Timer> timer) { 53 std::unique_ptr<base::Timer> timer) {
54 DCHECK(!stream_); 54 DCHECK(!stream_);
55 DCHECK(timer); 55 DCHECK(timer);
56 56
57 delegate_ = delegate; 57 delegate_ = delegate;
58 timer_ = std::move(timer); 58 timer_ = std::move(timer);
59 59
60 if (!spdy_session_) { 60 if (!spdy_session_) {
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 347
348 bool BidirectionalStreamSpdyImpl::ShouldWaitForMoreBufferedData() const { 348 bool BidirectionalStreamSpdyImpl::ShouldWaitForMoreBufferedData() const {
349 if (stream_closed_) 349 if (stream_closed_)
350 return false; 350 return false;
351 DCHECK_GT(read_buffer_len_, 0); 351 DCHECK_GT(read_buffer_len_, 0);
352 return read_data_queue_.GetTotalSize() < 352 return read_data_queue_.GetTotalSize() <
353 static_cast<size_t>(read_buffer_len_); 353 static_cast<size_t>(read_buffer_len_);
354 } 354 }
355 355
356 } // namespace net 356 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698