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

Unified Diff: net/quic/quic_crypto_server_stream.cc

Issue 490263003: When talking >=QUIC_VERSION_22, regularly send updated bandwidth (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
Index: net/quic/quic_crypto_server_stream.cc
diff --git a/net/quic/quic_crypto_server_stream.cc b/net/quic/quic_crypto_server_stream.cc
index df8f0d8dc0e089947d308b3205757b535c7060a8..abf4bee2705738ffb75f6dd5e839dea552f9912d 100644
--- a/net/quic/quic_crypto_server_stream.cc
+++ b/net/quic/quic_crypto_server_stream.cc
@@ -9,6 +9,7 @@
#include "net/quic/crypto/crypto_protocol.h"
#include "net/quic/crypto/crypto_utils.h"
#include "net/quic/crypto/quic_crypto_server_config.h"
+#include "net/quic/crypto/source_address_token.h"
#include "net/quic/quic_config.h"
#include "net/quic/quic_protocol.h"
#include "net/quic/quic_session.h"
@@ -152,10 +153,11 @@ void QuicCryptoServerStream::FinishProcessingHandshakeMessage(
// Now that the handshake is complete, send an updated server config and
// source-address token to the client.
- SendServerConfigUpdate();
+ SendServerConfigUpdate(NULL);
}
-void QuicCryptoServerStream::SendServerConfigUpdate() {
+void QuicCryptoServerStream::SendServerConfigUpdate(
+ const CachedNetworkParameters* cached_network_params) {
if (session()->connection()->version() <= QUIC_VERSION_21) {
return;
}
@@ -165,7 +167,9 @@ void QuicCryptoServerStream::SendServerConfigUpdate() {
session()->connection()->peer_address(),
session()->connection()->clock(),
session()->connection()->random_generator(),
- crypto_negotiated_params_, &server_config_update_message)) {
+ crypto_negotiated_params_,
+ cached_network_params,
+ &server_config_update_message)) {
DVLOG(1) << "Server: Failed to build server config update (SCUP)!";
return;
}

Powered by Google App Engine
This is Rietveld 408576698