| 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/spdy/spdy_session_pool.h" | 5 #include "net/spdy/spdy_session_pool.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 DCHECK((*it)->IsDraining()); | 361 DCHECK((*it)->IsDraining()); |
| 362 #endif // defined(OS_ANDROID) || defined(OS_WIN) || defined(OS_IOS) | 362 #endif // defined(OS_ANDROID) || defined(OS_WIN) || defined(OS_IOS) |
| 363 DCHECK(!IsSessionAvailable(*it)); | 363 DCHECK(!IsSessionAvailable(*it)); |
| 364 } | 364 } |
| 365 } | 365 } |
| 366 | 366 |
| 367 void SpdySessionPool::OnSSLConfigChanged() { | 367 void SpdySessionPool::OnSSLConfigChanged() { |
| 368 CloseCurrentSessions(ERR_NETWORK_CHANGED); | 368 CloseCurrentSessions(ERR_NETWORK_CHANGED); |
| 369 } | 369 } |
| 370 | 370 |
| 371 void SpdySessionPool::OnCertDBChanged(const X509Certificate* cert) { | 371 void SpdySessionPool::OnCertDBChanged() { |
| 372 CloseCurrentSessions(ERR_CERT_DATABASE_CHANGED); | 372 CloseCurrentSessions(ERR_CERT_DATABASE_CHANGED); |
| 373 } | 373 } |
| 374 | 374 |
| 375 void SpdySessionPool::DumpMemoryStats( | 375 void SpdySessionPool::DumpMemoryStats( |
| 376 base::trace_event::ProcessMemoryDump* pmd, | 376 base::trace_event::ProcessMemoryDump* pmd, |
| 377 const std::string& parent_dump_absolute_name) const { | 377 const std::string& parent_dump_absolute_name) const { |
| 378 if (sessions_.empty()) | 378 if (sessions_.empty()) |
| 379 return; | 379 return; |
| 380 size_t total_size = 0; | 380 size_t total_size = 0; |
| 381 size_t buffer_size = 0; | 381 size_t buffer_size = 0; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 | 483 |
| 484 if (idle_only && (*it)->is_active()) | 484 if (idle_only && (*it)->is_active()) |
| 485 continue; | 485 continue; |
| 486 | 486 |
| 487 (*it)->CloseSessionOnError(error, description); | 487 (*it)->CloseSessionOnError(error, description); |
| 488 DCHECK(!IsSessionAvailable(*it)); | 488 DCHECK(!IsSessionAvailable(*it)); |
| 489 } | 489 } |
| 490 } | 490 } |
| 491 | 491 |
| 492 } // namespace net | 492 } // namespace net |
| OLD | NEW |