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

Side by Side Diff: net/quic/quic_stream_factory.cc

Issue 1320423011: Implement SSLConfigService::Observer in QuicStreamFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 5 years, 3 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
« no previous file with comments | « net/quic/quic_stream_factory.h ('k') | net/quic/quic_stream_factory_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/quic/quic_stream_factory.h" 5 #include "net/quic/quic_stream_factory.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 9
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 1109
1110 void QuicStreamFactory::ClearCachedStatesInCryptoConfig() { 1110 void QuicStreamFactory::ClearCachedStatesInCryptoConfig() {
1111 crypto_config_.ClearCachedStates(); 1111 crypto_config_.ClearCachedStates();
1112 } 1112 }
1113 1113
1114 void QuicStreamFactory::OnIPAddressChanged() { 1114 void QuicStreamFactory::OnIPAddressChanged() {
1115 CloseAllSessions(ERR_NETWORK_CHANGED); 1115 CloseAllSessions(ERR_NETWORK_CHANGED);
1116 set_require_confirmation(true); 1116 set_require_confirmation(true);
1117 } 1117 }
1118 1118
1119 void QuicStreamFactory::OnSSLConfigChanged() {
1120 CloseAllSessions(ERR_CERT_DATABASE_CHANGED);
1121 }
1122
1119 void QuicStreamFactory::OnCertAdded(const X509Certificate* cert) { 1123 void QuicStreamFactory::OnCertAdded(const X509Certificate* cert) {
1120 CloseAllSessions(ERR_CERT_DATABASE_CHANGED); 1124 CloseAllSessions(ERR_CERT_DATABASE_CHANGED);
1121 } 1125 }
1122 1126
1123 void QuicStreamFactory::OnCACertChanged(const X509Certificate* cert) { 1127 void QuicStreamFactory::OnCACertChanged(const X509Certificate* cert) {
1124 // We should flush the sessions if we removed trust from a 1128 // We should flush the sessions if we removed trust from a
1125 // cert, because a previously trusted server may have become 1129 // cert, because a previously trusted server may have become
1126 // untrusted. 1130 // untrusted.
1127 // 1131 //
1128 // We should not flush the sessions if we added trust to a cert. 1132 // We should not flush the sessions if we added trust to a cert.
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
1403 // Since the session was active, there's no longer an 1407 // Since the session was active, there's no longer an
1404 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP 1408 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP
1405 // job also fails. So to avoid not using QUIC when we otherwise could, we mark 1409 // job also fails. So to avoid not using QUIC when we otherwise could, we mark
1406 // it as recently broken, which means that 0-RTT will be disabled but we'll 1410 // it as recently broken, which means that 0-RTT will be disabled but we'll
1407 // still race. 1411 // still race.
1408 http_server_properties_->MarkAlternativeServiceRecentlyBroken( 1412 http_server_properties_->MarkAlternativeServiceRecentlyBroken(
1409 alternative_service); 1413 alternative_service);
1410 } 1414 }
1411 1415
1412 } // namespace net 1416 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_stream_factory.h ('k') | net/quic/quic_stream_factory_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698