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

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

Issue 2175423003: not sending kFIXD in QUIC handshake. behind FLAGS_quic_deprecate_kfixd (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@128058105
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | 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_crypto_client_stream.h" 5 #include "net/quic/quic_crypto_client_stream.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
11 #include "base/metrics/sparse_histogram.h" 11 #include "base/metrics/sparse_histogram.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "net/quic/crypto/crypto_protocol.h" 13 #include "net/quic/crypto/crypto_protocol.h"
14 #include "net/quic/crypto/crypto_utils.h" 14 #include "net/quic/crypto/crypto_utils.h"
15 #include "net/quic/crypto/null_encrypter.h" 15 #include "net/quic/crypto/null_encrypter.h"
16 #include "net/quic/quic_flags.h" 16 #include "net/quic/quic_flags.h"
17 #include "net/quic/quic_protocol.h" 17 #include "net/quic/quic_protocol.h"
18 #include "net/quic/quic_session.h" 18 #include "net/quic/quic_session.h"
19 #include "net/quic/quic_utils.h" 19 #include "net/quic/quic_utils.h"
20 20
21 using std::string; 21 using std::string;
22 using std::vector; 22 using std::vector;
23 23
24 namespace net { 24 namespace net {
25 25
26 namespace { 26 namespace {
27 27
28 void AppendFixed(CryptoHandshakeMessage* message) { 28 void AppendFixed(CryptoHandshakeMessage* message) {
29 if (FLAGS_quic_deprecate_kfixd) {
30 return;
31 }
29 vector<QuicTag> tags; 32 vector<QuicTag> tags;
30 tags.push_back(kFIXD); 33 tags.push_back(kFIXD);
31 34
32 const QuicTag* received_tags; 35 const QuicTag* received_tags;
33 size_t received_tags_length; 36 size_t received_tags_length;
34 QuicErrorCode error = 37 QuicErrorCode error =
35 message->GetTaglist(kCOPT, &received_tags, &received_tags_length); 38 message->GetTaglist(kCOPT, &received_tags, &received_tags_length);
36 if (error == QUIC_NO_ERROR) { 39 if (error == QUIC_NO_ERROR) {
37 for (size_t i = 0; i < received_tags_length; ++i) { 40 for (size_t i = 0; i < received_tags_length; ++i) {
38 tags.push_back(received_tags[i]); 41 tags.push_back(received_tags[i]);
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 } 689 }
687 for (size_t i = 0; i < num_their_proof_demands; i++) { 690 for (size_t i = 0; i < num_their_proof_demands; i++) {
688 if (their_proof_demands[i] == kCHID) { 691 if (their_proof_demands[i] == kCHID) {
689 return true; 692 return true;
690 } 693 }
691 } 694 }
692 return false; 695 return false;
693 } 696 }
694 697
695 } // namespace net 698 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698