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" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
14 #include "base/metrics/histogram_macros.h" | 14 #include "base/metrics/histogram_macros.h" |
15 #include "base/threading/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
16 #include "base/timer/timer.h" | 16 #include "base/timer/timer.h" |
17 #include "base/values.h" | 17 #include "base/values.h" |
18 #include "net/base/load_flags.h" | 18 #include "net/base/load_flags.h" |
19 #include "net/base/net_errors.h" | 19 #include "net/base/net_errors.h" |
20 #include "net/http/bidirectional_stream_request_info.h" | 20 #include "net/http/bidirectional_stream_request_info.h" |
21 #include "net/http/http_log_util.h" | |
22 #include "net/http/http_network_session.h" | 21 #include "net/http/http_network_session.h" |
23 #include "net/http/http_response_headers.h" | 22 #include "net/http/http_response_headers.h" |
24 #include "net/http/http_stream.h" | 23 #include "net/http/http_stream.h" |
25 #include "net/log/net_log.h" | 24 #include "net/log/net_log.h" |
26 #include "net/log/net_log_capture_mode.h" | 25 #include "net/log/net_log_capture_mode.h" |
27 #include "net/log/net_log_event_type.h" | 26 #include "net/log/net_log_event_type.h" |
28 #include "net/log/net_log_source_type.h" | 27 #include "net/log/net_log_source_type.h" |
29 #include "net/spdy/spdy_header_block.h" | 28 #include "net/spdy/spdy_header_block.h" |
30 #include "net/spdy/spdy_http_utils.h" | 29 #include "net/spdy/spdy_http_utils.h" |
| 30 #include "net/spdy/spdy_log_util.h" |
31 #include "net/ssl/ssl_cert_request_info.h" | 31 #include "net/ssl/ssl_cert_request_info.h" |
32 #include "net/ssl/ssl_config.h" | 32 #include "net/ssl/ssl_config.h" |
33 #include "url/gurl.h" | 33 #include "url/gurl.h" |
34 | 34 |
35 namespace net { | 35 namespace net { |
36 | 36 |
37 namespace { | 37 namespace { |
38 | 38 |
39 std::unique_ptr<base::Value> NetLogHeadersCallback( | 39 std::unique_ptr<base::Value> NetLogHeadersCallback( |
40 const SpdyHeaderBlock* headers, | 40 const SpdyHeaderBlock* headers, |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 "Net.BidirectionalStream.TimeToSendEnd.QUIC", | 440 "Net.BidirectionalStream.TimeToSendEnd.QUIC", |
441 load_timing_info_.send_end - load_timing_info_.request_start); | 441 load_timing_info_.send_end - load_timing_info_.request_start); |
442 UMA_HISTOGRAM_COUNTS("Net.BidirectionalStream.ReceivedBytes.QUIC", | 442 UMA_HISTOGRAM_COUNTS("Net.BidirectionalStream.ReceivedBytes.QUIC", |
443 stream_impl_->GetTotalReceivedBytes()); | 443 stream_impl_->GetTotalReceivedBytes()); |
444 UMA_HISTOGRAM_COUNTS("Net.BidirectionalStream.SentBytes.QUIC", | 444 UMA_HISTOGRAM_COUNTS("Net.BidirectionalStream.SentBytes.QUIC", |
445 stream_impl_->GetTotalSentBytes()); | 445 stream_impl_->GetTotalSentBytes()); |
446 } | 446 } |
447 } | 447 } |
448 | 448 |
449 } // namespace net | 449 } // namespace net |
OLD | NEW |