| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |