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

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

Issue 1921563003: Renaming _openssl files to _impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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_chromium_client_session.h" 5 #include "net/quic/quic_chromium_client_session.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 const size_t kAdditionalOverheadForIPv6 = 20; 48 const size_t kAdditionalOverheadForIPv6 = 20;
49 49
50 // Maximum number of Readers that are created for any session due to 50 // Maximum number of Readers that are created for any session due to
51 // connection migration. A new Reader is created every time this endpoint's 51 // connection migration. A new Reader is created every time this endpoint's
52 // IP address changes. 52 // IP address changes.
53 const size_t kMaxReadersPerQuicSession = 5; 53 const size_t kMaxReadersPerQuicSession = 5;
54 54
55 // Size of the MRU cache of Token Binding signatures. Since the material being 55 // Size of the MRU cache of Token Binding signatures. Since the material being
56 // signed is constant and there aren't many keys being used to sign, a fairly 56 // signed is constant and there aren't many keys being used to sign, a fairly
57 // small number was chosen, somewhat arbitrarily, and to match 57 // small number was chosen, somewhat arbitrarily, and to match
58 // SSLClientSocketOpenssl. 58 // SSLClientSocketImpl.
59 const size_t kTokenBindingSignatureMapSize = 10; 59 const size_t kTokenBindingSignatureMapSize = 10;
60 60
61 // Histograms for tracking down the crashes from http://crbug.com/354669 61 // Histograms for tracking down the crashes from http://crbug.com/354669
62 // Note: these values must be kept in sync with the corresponding values in: 62 // Note: these values must be kept in sync with the corresponding values in:
63 // tools/metrics/histograms/histograms.xml 63 // tools/metrics/histograms/histograms.xml
64 enum Location { 64 enum Location {
65 DESTRUCTOR = 0, 65 DESTRUCTOR = 0,
66 ADD_OBSERVER = 1, 66 ADD_OBSERVER = 1,
67 TRY_CREATE_STREAM = 2, 67 TRY_CREATE_STREAM = 2,
68 CREATE_OUTGOING_RELIABLE_STREAM = 3, 68 CREATE_OUTGOING_RELIABLE_STREAM = 3,
(...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 } 1191 }
1192 1192
1193 void QuicChromiumClientSession::DeletePromised( 1193 void QuicChromiumClientSession::DeletePromised(
1194 QuicClientPromisedInfo* promised) { 1194 QuicClientPromisedInfo* promised) {
1195 if (IsOpenStream(promised->id())) 1195 if (IsOpenStream(promised->id()))
1196 streams_pushed_and_claimed_count_++; 1196 streams_pushed_and_claimed_count_++;
1197 QuicClientSessionBase::DeletePromised(promised); 1197 QuicClientSessionBase::DeletePromised(promised);
1198 } 1198 }
1199 1199
1200 } // namespace net 1200 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698