OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "net/base/address_list.h" | 10 #include "net/base/address_list.h" |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 for (SpdySessionList::const_iterator session = sessions->begin(); | 170 for (SpdySessionList::const_iterator session = sessions->begin(); |
171 session != sessions->end(); ++session) { | 171 session != sessions->end(); ++session) { |
172 list->Append(session->get()->GetInfoAsValue()); | 172 list->Append(session->get()->GetInfoAsValue()); |
173 } | 173 } |
174 } | 174 } |
175 return list; | 175 return list; |
176 } | 176 } |
177 | 177 |
178 void SpdySessionPool::OnIPAddressChanged() { | 178 void SpdySessionPool::OnIPAddressChanged() { |
179 CloseCurrentSessions(); | 179 CloseCurrentSessions(); |
| 180 spdy_settings_.Clear(); |
180 } | 181 } |
181 | 182 |
182 void SpdySessionPool::OnSSLConfigChanged() { | 183 void SpdySessionPool::OnSSLConfigChanged() { |
183 CloseCurrentSessions(); | 184 CloseCurrentSessions(); |
184 } | 185 } |
185 | 186 |
186 scoped_refptr<SpdySession> SpdySessionPool::GetExistingSession( | 187 scoped_refptr<SpdySession> SpdySessionPool::GetExistingSession( |
187 SpdySessionList* list, | 188 SpdySessionList* list, |
188 const BoundNetLog& net_log) const { | 189 const BoundNetLog& net_log) const { |
189 DCHECK(list); | 190 DCHECK(list); |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 delete list; | 403 delete list; |
403 RemoveAliases(old_map.begin()->first); | 404 RemoveAliases(old_map.begin()->first); |
404 old_map.erase(old_map.begin()->first); | 405 old_map.erase(old_map.begin()->first); |
405 } | 406 } |
406 } | 407 } |
407 DCHECK(sessions_.empty()); | 408 DCHECK(sessions_.empty()); |
408 DCHECK(aliases_.empty()); | 409 DCHECK(aliases_.empty()); |
409 } | 410 } |
410 | 411 |
411 } // namespace net | 412 } // namespace net |
OLD | NEW |