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/url_request/url_request_context.h" | 5 #include "net/url_request/url_request_context.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/debug/alias.h" | 8 #include "base/debug/alias.h" |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "base/trace_event/memory_allocator_dump.h" | 12 #include "base/trace_event/memory_allocator_dump.h" |
13 #include "base/trace_event/memory_dump_manager.h" | 13 #include "base/trace_event/memory_dump_manager.h" |
14 #include "base/trace_event/process_memory_dump.h" | 14 #include "base/trace_event/process_memory_dump.h" |
| 15 #include "net/base/sdch_manager.h" |
15 #include "net/cookies/cookie_store.h" | 16 #include "net/cookies/cookie_store.h" |
16 #include "net/dns/host_resolver.h" | 17 #include "net/dns/host_resolver.h" |
17 #include "net/http/http_transaction_factory.h" | 18 #include "net/http/http_transaction_factory.h" |
18 #include "net/socket/ssl_client_socket_impl.h" | 19 #include "net/socket/ssl_client_socket_impl.h" |
19 #include "net/url_request/http_user_agent_settings.h" | 20 #include "net/url_request/http_user_agent_settings.h" |
20 #include "net/url_request/url_request.h" | 21 #include "net/url_request/url_request.h" |
21 | 22 |
22 namespace net { | 23 namespace net { |
23 | 24 |
24 URLRequestContext::URLRequestContext() | 25 URLRequestContext::URLRequestContext() |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 dump->AddScalar(base::trace_event::MemoryAllocatorDump::kNameObjectCount, | 131 dump->AddScalar(base::trace_event::MemoryAllocatorDump::kNameObjectCount, |
131 base::trace_event::MemoryAllocatorDump::kUnitsObjects, | 132 base::trace_event::MemoryAllocatorDump::kUnitsObjects, |
132 url_requests_->size()); | 133 url_requests_->size()); |
133 HttpTransactionFactory* transaction_factory = http_transaction_factory(); | 134 HttpTransactionFactory* transaction_factory = http_transaction_factory(); |
134 if (transaction_factory) { | 135 if (transaction_factory) { |
135 HttpNetworkSession* network_session = transaction_factory->GetSession(); | 136 HttpNetworkSession* network_session = transaction_factory->GetSession(); |
136 if (network_session) | 137 if (network_session) |
137 network_session->DumpMemoryStats(pmd, dump->absolute_name()); | 138 network_session->DumpMemoryStats(pmd, dump->absolute_name()); |
138 } | 139 } |
139 SSLClientSocketImpl::DumpSSLClientSessionMemoryStats(pmd); | 140 SSLClientSocketImpl::DumpSSLClientSessionMemoryStats(pmd); |
| 141 if (sdch_manager_) |
| 142 sdch_manager_->DumpMemoryStats(pmd, dump->absolute_name()); |
140 return true; | 143 return true; |
141 } | 144 } |
142 | 145 |
143 } // namespace net | 146 } // namespace net |
OLD | NEW |