| 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/quic/chromium/quic_stream_factory.h" | 5 #include "net/quic/chromium/quic_stream_factory.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <tuple> | 8 #include <tuple> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1551 net_log.AddEvent(NetLogEventType::QUIC_CONNECTION_MIGRATION_SUCCESS, | 1551 net_log.AddEvent(NetLogEventType::QUIC_CONNECTION_MIGRATION_SUCCESS, |
| 1552 base::Bind(&NetLogQuicConnectionMigrationSuccessCallback, | 1552 base::Bind(&NetLogQuicConnectionMigrationSuccessCallback, |
| 1553 session->connection_id())); | 1553 session->connection_id())); |
| 1554 return MigrationResult::SUCCESS; | 1554 return MigrationResult::SUCCESS; |
| 1555 } | 1555 } |
| 1556 | 1556 |
| 1557 void QuicStreamFactory::OnSSLConfigChanged() { | 1557 void QuicStreamFactory::OnSSLConfigChanged() { |
| 1558 CloseAllSessions(ERR_CERT_DATABASE_CHANGED, QUIC_CONNECTION_CANCELLED); | 1558 CloseAllSessions(ERR_CERT_DATABASE_CHANGED, QUIC_CONNECTION_CANCELLED); |
| 1559 } | 1559 } |
| 1560 | 1560 |
| 1561 void QuicStreamFactory::OnCertDBChanged(const X509Certificate* cert) { | 1561 void QuicStreamFactory::OnCertDBChanged() { |
| 1562 // We should flush the sessions if we removed trust from a | 1562 // We should flush the sessions if we removed trust from a |
| 1563 // cert, because a previously trusted server may have become | 1563 // cert, because a previously trusted server may have become |
| 1564 // untrusted. | 1564 // untrusted. |
| 1565 // | 1565 // |
| 1566 // We should not flush the sessions if we added trust to a cert. | 1566 // We should not flush the sessions if we added trust to a cert. |
| 1567 // | 1567 // |
| 1568 // Since the OnCertDBChanged method doesn't tell us what | 1568 // Since the OnCertDBChanged method doesn't tell us what |
| 1569 // kind of change it is, we have to flush the socket | 1569 // kind of change it is, we have to flush the socket |
| 1570 // pools to be safe. | 1570 // pools to be safe. |
| 1571 CloseAllSessions(ERR_CERT_DATABASE_CHANGED, QUIC_CONNECTION_CANCELLED); | 1571 CloseAllSessions(ERR_CERT_DATABASE_CHANGED, QUIC_CONNECTION_CANCELLED); |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1982 void QuicStreamFactory::OpenFactory() { | 1982 void QuicStreamFactory::OpenFactory() { |
| 1983 status_ = OPEN; | 1983 status_ = OPEN; |
| 1984 } | 1984 } |
| 1985 | 1985 |
| 1986 void QuicStreamFactory::MaybeClearConsecutiveDisabledCount() { | 1986 void QuicStreamFactory::MaybeClearConsecutiveDisabledCount() { |
| 1987 if (status_ == OPEN) | 1987 if (status_ == OPEN) |
| 1988 consecutive_disabled_count_ = 0; | 1988 consecutive_disabled_count_ = 0; |
| 1989 } | 1989 } |
| 1990 | 1990 |
| 1991 } // namespace net | 1991 } // namespace net |
| OLD | NEW |