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

Side by Side Diff: net/socket/client_socket_pool_manager_impl.cc

Issue 27500004: Listen for new system certificates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-upload Created 7 years, 2 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
OLDNEW
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/socket/client_socket_pool_manager_impl.h" 5 #include "net/socket/client_socket_pool_manager_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "net/http/http_network_session.h" 9 #include "net/http/http_network_session.h"
10 #include "net/http/http_proxy_client_socket_pool.h" 10 #include "net/http/http_proxy_client_socket_pool.h"
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 // 382 //
383 // We should not flush the socket pools if we added trust to a 383 // We should not flush the socket pools if we added trust to a
384 // cert. 384 // cert.
385 // 385 //
386 // Since the OnCertTrustChanged method doesn't tell us what 386 // Since the OnCertTrustChanged method doesn't tell us what
387 // kind of trust change it is, we have to flush the socket 387 // kind of trust change it is, we have to flush the socket
388 // pools to be safe. 388 // pools to be safe.
389 FlushSocketPoolsWithError(ERR_NETWORK_CHANGED); 389 FlushSocketPoolsWithError(ERR_NETWORK_CHANGED);
390 } 390 }
391 391
392 void ClientSocketPoolManagerImpl::OnDatabaseUpdated() {
393 // We should flush the socket pools if we removed trust from a
394 // cert, because a previously trusted server may have become
395 // untrusted.
396 //
397 // We should not flush the socket pools if we added trust to a
398 // cert.
399 //
400 // Since the OnDatabaseUpdated method doesn't tell us what
401 // kind of trust change it is, we have to flush the socket
402 // pools to be safe.
403 FlushSocketPoolsWithError(ERR_NETWORK_CHANGED);
wtc 2013/10/16 15:37:34 We probably should just have OnCertAdded and OnCer
qsr 2013/10/16 16:02:09 I did not do this because I'm not sure to understa
Ryan Sleevi 2013/10/16 17:40:52 OnCertAdded == OnClientCertAdded. The flushing on
404 }
405
392 } // namespace net 406 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698