| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 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_NQE_EVENT_CREATOR_H_ |
| 6 #define NET_NQE_EVENT_CREATOR_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "base/time/time.h" |
| 11 #include "net/nqe/effective_connection_type.h" |
| 12 |
| 13 namespace net { |
| 14 |
| 15 class NetLogWithSource; |
| 16 |
| 17 namespace nqe { |
| 18 |
| 19 namespace internal { |
| 20 |
| 21 // Adds network quality changed event to the net-internals log. |http_rtt| is |
| 22 // the estimate of the HTTP RTT. |transport_rtt| is the estimate of the |
| 23 // transport RTT. |downstream_throughput_kbps| is the estimate of the |
| 24 // downstream throughput (in kilobits per second). |effective_connection_type| |
| 25 // is the current estimate of the effective connection type. |
| 26 void AddEffectiveConnectionTypeChangedEventToNetLog( |
| 27 const NetLogWithSource& net_log, |
| 28 base::TimeDelta http_rtt, |
| 29 base::TimeDelta transport_rtt, |
| 30 int32_t downstream_throughput_kbps, |
| 31 EffectiveConnectionType effective_connection_type); |
| 32 |
| 33 } // namespace internal |
| 34 |
| 35 } // namespace nqe |
| 36 |
| 37 } // namespace net |
| 38 |
| 39 #endif // NET_NQE_EVENT_CREATOR_H_ |
| OLD | NEW |