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

Side by Side Diff: net/nqe/event_creator.h

Issue 2593243003: Add network quality change events to net log (Closed)
Patch Set: ps Created 3 years, 11 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
(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/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.
12 #include "net/nqe/effective_connection_type.h"
13
14 namespace net {
15
16 class NetLogWithSource;
17
18 namespace nqe {
19
20 namespace internal {
21
22 // 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.
23 // |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
24 // of the transport RTT. |downstream_throughput_kbps| is the estimate of the
25 // downstream throughput (in kilobits per second). |effective_connection_type|
26 // is the current estimate of the effective connection type.
27 void AddEffectiveConnectionTypeChangedEventToNetLog(
28 const NetLogWithSource& net_log,
29 base::TimeDelta http_rtt,
30 base::TimeDelta transport_rtt,
31 int32_t downstream_throughput_kbps,
32 EffectiveConnectionType effective_connection_type);
33
34 } // namespace internal
35
36 } // namespace nqe
37
38 } // namespace net
39
40 #endif // NET_NQE_EVENT_CREATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698