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

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

Issue 2691683003: Remove OnCertDBChanged |cert| parameter. (Closed)
Patch Set: comment wording Created 3 years, 10 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/chromium/quic_stream_factory.h ('k') | net/quic/chromium/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/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
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
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
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_stream_factory.h ('k') | net/quic/chromium/quic_stream_factory_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698