| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/http_stream_factory_impl.h" | 5 #include "net/http/http_stream_factory_impl.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <tuple> | 8 #include <tuple> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/metrics/histogram_macros.h" | 12 #include "base/metrics/histogram_macros.h" |
| 13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
| 14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
| 15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
| 16 #include "base/trace_event/memory_allocator_dump.h" | 16 #include "base/trace_event/memory_allocator_dump.h" |
| 17 #include "base/trace_event/memory_usage_estimator.h" | 17 #include "base/trace_event/memory_usage_estimator.h" |
| 18 #include "base/trace_event/process_memory_dump.h" | 18 #include "base/trace_event/process_memory_dump.h" |
| 19 #include "net/http/http_network_session.h" | 19 #include "net/http/http_network_session.h" |
| 20 #include "net/http/http_server_properties.h" | 20 #include "net/http/http_server_properties.h" |
| 21 #include "net/http/http_stream_factory_impl_job.h" | 21 #include "net/http/http_stream_factory_impl_job.h" |
| 22 #include "net/http/http_stream_factory_impl_job_controller.h" | 22 #include "net/http/http_stream_factory_impl_job_controller.h" |
| 23 #include "net/http/http_stream_factory_impl_request.h" | 23 #include "net/http/http_stream_factory_impl_request.h" |
| 24 #include "net/http/transport_security_state.h" | 24 #include "net/http/transport_security_state.h" |
| 25 #include "net/proxy/proxy_info.h" | 25 #include "net/proxy/proxy_info.h" |
| 26 #include "net/quic/core/quic_server_id.h" | 26 #include "net/quic/core/quic_server_id.h" |
| 27 #include "net/spdy/bidirectional_stream_spdy_impl.h" | 27 #include "net/spdy/chromium/bidirectional_stream_spdy_impl.h" |
| 28 #include "net/spdy/spdy_http_stream.h" | 28 #include "net/spdy/chromium/spdy_http_stream.h" |
| 29 #include "url/gurl.h" | 29 #include "url/gurl.h" |
| 30 #include "url/scheme_host_port.h" | 30 #include "url/scheme_host_port.h" |
| 31 #include "url/url_constants.h" | 31 #include "url/url_constants.h" |
| 32 | 32 |
| 33 namespace net { | 33 namespace net { |
| 34 | 34 |
| 35 namespace { | 35 namespace { |
| 36 // Default JobFactory for creating HttpStreamFactoryImpl::Jobs. | 36 // Default JobFactory for creating HttpStreamFactoryImpl::Jobs. |
| 37 class DefaultJobFactory : public HttpStreamFactoryImpl::JobFactory { | 37 class DefaultJobFactory : public HttpStreamFactoryImpl::JobFactory { |
| 38 public: | 38 public: |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 factory_dump->AddScalar("main_job_count", | 452 factory_dump->AddScalar("main_job_count", |
| 453 base::trace_event::MemoryAllocatorDump::kUnitsObjects, | 453 base::trace_event::MemoryAllocatorDump::kUnitsObjects, |
| 454 main_job_count); | 454 main_job_count); |
| 455 // The number of preconnect controllers. | 455 // The number of preconnect controllers. |
| 456 factory_dump->AddScalar("preconnect_count", | 456 factory_dump->AddScalar("preconnect_count", |
| 457 base::trace_event::MemoryAllocatorDump::kUnitsObjects, | 457 base::trace_event::MemoryAllocatorDump::kUnitsObjects, |
| 458 num_controllers_for_preconnect); | 458 num_controllers_for_preconnect); |
| 459 } | 459 } |
| 460 | 460 |
| 461 } // namespace net | 461 } // namespace net |
| OLD | NEW |