Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(378)

Side by Side Diff: net/spdy/spdy_session_pool.cc

Issue 7046016: I added a function "void SpdySettingsStorage::Clear()". I added a call to this function "spdy_set... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | net/spdy/spdy_settings_storage.h » ('j') | net/spdy/spdy_settings_storage.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
rkn1 2011/05/20 16:57:37 willchan: Is there a good way to test this functio
willchan no longer on Chromium 2011/05/20 21:29:47 OnIPAddressChanged() is a public method so you can
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);
190 DCHECK_LT(0u, list->size()); 191 DCHECK_LT(0u, list->size());
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | net/spdy/spdy_settings_storage.h » ('j') | net/spdy/spdy_settings_storage.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698