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

Side by Side Diff: net/http/bidirectional_stream.cc

Issue 2259823002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « net/ftp/ftp_network_layer.cc ('k') | net/http/bidirectional_stream_unittest.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 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/http/bidirectional_stream.h" 5 #include "net/http/bidirectional_stream.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 BidirectionalStream::BidirectionalStream( 66 BidirectionalStream::BidirectionalStream(
67 std::unique_ptr<BidirectionalStreamRequestInfo> request_info, 67 std::unique_ptr<BidirectionalStreamRequestInfo> request_info,
68 HttpNetworkSession* session, 68 HttpNetworkSession* session,
69 bool send_request_headers_automatically, 69 bool send_request_headers_automatically,
70 Delegate* delegate) 70 Delegate* delegate)
71 : BidirectionalStream(std::move(request_info), 71 : BidirectionalStream(std::move(request_info),
72 session, 72 session,
73 send_request_headers_automatically, 73 send_request_headers_automatically,
74 delegate, 74 delegate,
75 base::WrapUnique(new base::Timer(false, false))) {} 75 base::MakeUnique<base::Timer>(false, false)) {}
76 76
77 BidirectionalStream::BidirectionalStream( 77 BidirectionalStream::BidirectionalStream(
78 std::unique_ptr<BidirectionalStreamRequestInfo> request_info, 78 std::unique_ptr<BidirectionalStreamRequestInfo> request_info,
79 HttpNetworkSession* session, 79 HttpNetworkSession* session,
80 bool send_request_headers_automatically, 80 bool send_request_headers_automatically,
81 Delegate* delegate, 81 Delegate* delegate,
82 std::unique_ptr<base::Timer> timer) 82 std::unique_ptr<base::Timer> timer)
83 : request_info_(std::move(request_info)), 83 : request_info_(std::move(request_info)),
84 net_log_(BoundNetLog::Make(session->net_log(), 84 net_log_(BoundNetLog::Make(session->net_log(),
85 NetLogSourceType::BIDIRECTIONAL_STREAM)), 85 NetLogSourceType::BIDIRECTIONAL_STREAM)),
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 UMA_HISTOGRAM_TIMES("Net.BidirectionalStream.TimeToSendEnd.QUIC", 416 UMA_HISTOGRAM_TIMES("Net.BidirectionalStream.TimeToSendEnd.QUIC",
417 send_end_time_ - start_time_); 417 send_end_time_ - start_time_);
418 UMA_HISTOGRAM_COUNTS("Net.BidirectionalStream.ReceivedBytes.QUIC", 418 UMA_HISTOGRAM_COUNTS("Net.BidirectionalStream.ReceivedBytes.QUIC",
419 stream_impl_->GetTotalReceivedBytes()); 419 stream_impl_->GetTotalReceivedBytes());
420 UMA_HISTOGRAM_COUNTS("Net.BidirectionalStream.SentBytes.QUIC", 420 UMA_HISTOGRAM_COUNTS("Net.BidirectionalStream.SentBytes.QUIC",
421 stream_impl_->GetTotalSentBytes()); 421 stream_impl_->GetTotalSentBytes());
422 } 422 }
423 } 423 }
424 424
425 } // namespace net 425 } // namespace net
OLDNEW
« no previous file with comments | « net/ftp/ftp_network_layer.cc ('k') | net/http/bidirectional_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698