Chromium Code Reviews| Index: net/nqe/event_creator.h |
| diff --git a/net/nqe/event_creator.h b/net/nqe/event_creator.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..70198c948ef11c504c653f9e49cb1cd54a950c8e |
| --- /dev/null |
| +++ b/net/nqe/event_creator.h |
| @@ -0,0 +1,40 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef NET_NQE_EVENT_CREATOR_H_ |
| +#define NET_NQE_EVENT_CREATOR_H_ |
| + |
| +#include <stdint.h> |
| + |
| +#include "base/time/time.h" |
| +#include "net/base/net_export.h" |
|
RyanSturm
2017/01/10 16:22:37
not sure if you need net_export
tbansal1
2017/01/10 18:27:53
Done.
|
| +#include "net/nqe/effective_connection_type.h" |
| + |
| +namespace net { |
| + |
| +class NetLogWithSource; |
| + |
| +namespace nqe { |
| + |
| +namespace internal { |
| + |
| +// Adds effective connection type changed event to the net-internals log. |
|
RyanSturm
2017/01/10 16:22:37
s/effective connection type changed/network qualit
tbansal1
2017/01/10 18:27:53
Done.
|
| +// |http_rtt| is the estimate of the HTTP RTT. |transport_rtt| is the estimate |
|
RyanSturm
2017/01/10 16:22:37
units for both RTTs in the description (msec?)
tbansal1
2017/01/10 18:27:53
RTTs are in base::TimeDelta. So, units are not req
|
| +// of the transport RTT. |downstream_throughput_kbps| is the estimate of the |
| +// downstream throughput (in kilobits per second). |effective_connection_type| |
| +// is the current estimate of the effective connection type. |
| +void AddEffectiveConnectionTypeChangedEventToNetLog( |
| + const NetLogWithSource& net_log, |
| + base::TimeDelta http_rtt, |
| + base::TimeDelta transport_rtt, |
| + int32_t downstream_throughput_kbps, |
| + EffectiveConnectionType effective_connection_type); |
| + |
| +} // namespace internal |
| + |
| +} // namespace nqe |
| + |
| +} // namespace net |
| + |
| +#endif // NET_NQE_EVENT_CREATOR_H_ |