1 // Copyright 2024 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef NET_SPDY_MULTIPLEXED_SESSION_CREATION_INITIATOR_H_ 6 #define NET_SPDY_MULTIPLEXED_SESSION_CREATION_INITIATOR_H_ 7 8 namespace net { 9 10 // The reason why multiplexed session was created. It is used to distinguish 11 // between preconnect initiated session and other sessions. 12 // TODO(crbug.com/376304027): Add more precise reasons why preconnect happened. 13 // 14 // These values are persisted to logs. Entries should not be renumbered 15 // and numeric values should never be reused. 16 // 17 // LINT.IfChange(MultiplexedSessionCreationInitiator) 18 enum class MultiplexedSessionCreationInitiator { 19 kUnknown, 20 kPreconnect, 21 kMaxValue = kPreconnect 22 }; 23 // LINT.ThenChange(//tools/metrics/histograms/metadata/net/enums.xml:MultiplexedSessionCreationInitiator) 24 25 } // namespace net 26 27 #endif // NET_SPDY_MULTIPLEXED_SESSION_CREATION_INITIATOR_H_ 28