| 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_network_session.h" | 5 #include "net/http/http_network_session.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/atomic_sequence_num.h" | 9 #include "base/atomic_sequence_num.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 if (http_network_session_dump == nullptr) { | 426 if (http_network_session_dump == nullptr) { |
| 427 http_network_session_dump = pmd->CreateAllocatorDump(name); | 427 http_network_session_dump = pmd->CreateAllocatorDump(name); |
| 428 normal_socket_pool_manager_->DumpMemoryStats( | 428 normal_socket_pool_manager_->DumpMemoryStats( |
| 429 pmd, http_network_session_dump->absolute_name()); | 429 pmd, http_network_session_dump->absolute_name()); |
| 430 spdy_session_pool_.DumpMemoryStats( | 430 spdy_session_pool_.DumpMemoryStats( |
| 431 pmd, http_network_session_dump->absolute_name()); | 431 pmd, http_network_session_dump->absolute_name()); |
| 432 if (http_stream_factory_) { | 432 if (http_stream_factory_) { |
| 433 http_stream_factory_->DumpMemoryStats( | 433 http_stream_factory_->DumpMemoryStats( |
| 434 pmd, http_network_session_dump->absolute_name()); | 434 pmd, http_network_session_dump->absolute_name()); |
| 435 } | 435 } |
| 436 quic_stream_factory_.DumpMemoryStats( |
| 437 pmd, http_network_session_dump->absolute_name()); |
| 436 } | 438 } |
| 437 // Create an empty row under parent's dump so size can be attributed correctly | 439 // Create an empty row under parent's dump so size can be attributed correctly |
| 438 // if |this| is shared between URLRequestContexts. | 440 // if |this| is shared between URLRequestContexts. |
| 439 base::trace_event::MemoryAllocatorDump* empty_row_dump = | 441 base::trace_event::MemoryAllocatorDump* empty_row_dump = |
| 440 pmd->CreateAllocatorDump(base::StringPrintf( | 442 pmd->CreateAllocatorDump(base::StringPrintf( |
| 441 "%s/http_network_session", parent_absolute_name.c_str())); | 443 "%s/http_network_session", parent_absolute_name.c_str())); |
| 442 pmd->AddOwnershipEdge(empty_row_dump->guid(), | 444 pmd->AddOwnershipEdge(empty_row_dump->guid(), |
| 443 http_network_session_dump->guid()); | 445 http_network_session_dump->guid()); |
| 444 } | 446 } |
| 445 | 447 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 break; | 491 break; |
| 490 case base::MemoryState::SUSPENDED: | 492 case base::MemoryState::SUSPENDED: |
| 491 // Note: Not supported at present. Fall through. | 493 // Note: Not supported at present. Fall through. |
| 492 case base::MemoryState::UNKNOWN: | 494 case base::MemoryState::UNKNOWN: |
| 493 NOTREACHED(); | 495 NOTREACHED(); |
| 494 break; | 496 break; |
| 495 } | 497 } |
| 496 } | 498 } |
| 497 | 499 |
| 498 } // namespace net | 500 } // namespace net |
| OLD | NEW |