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

Unified Diff: net/quic/quic_connection.cc

Issue 1037643002: Land Recent QUIC Changes until 03/22/2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: deleted duplicated using statements in net/tools/quic/test_tools/quic_test_utils.cc Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_connection.h ('k') | net/quic/quic_connection_stats.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_connection.cc
diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc
index b3e8b3df9820f871dcb474f538bf1ba1c192547b..e6a3d8ce71f674fc32951ec444ced242856de482 100644
--- a/net/quic/quic_connection.cc
+++ b/net/quic/quic_connection.cc
@@ -324,11 +324,13 @@ void QuicConnection::OnSendConnectionState(
}
bool QuicConnection::ResumeConnectionState(
- const CachedNetworkParameters& cached_network_params) {
+ const CachedNetworkParameters& cached_network_params,
+ bool max_bandwidth_resumption) {
if (debug_visitor_ != nullptr) {
debug_visitor_->OnResumeConnectionState(cached_network_params);
}
- return sent_packet_manager_.ResumeConnectionState(cached_network_params);
+ return sent_packet_manager_.ResumeConnectionState(cached_network_params,
+ max_bandwidth_resumption);
}
void QuicConnection::SetNumOpenStreams(size_t num_streams) {
@@ -1905,6 +1907,7 @@ void QuicConnection::CloseConnection(QuicErrorCode error, bool from_peer) {
if (debug_visitor_ != nullptr) {
debug_visitor_->OnConnectionClosed(error, from_peer);
}
+ DCHECK(visitor_ != nullptr);
visitor_->OnConnectionClosed(error, from_peer);
// Cancel the alarms so they don't trigger any action now that the
// connection is closed.
« no previous file with comments | « net/quic/quic_connection.h ('k') | net/quic/quic_connection_stats.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698