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

Side by Side Diff: third_party/WebKit/Source/modules/netinfo/NetworkInformation.h

Issue 2941713002: NetInfo: Return HTTP layer metrics instead of transport layer (Closed)
Patch Set: ps Created 3 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef NetworkInformation_h 5 #ifndef NetworkInformation_h
6 #define NetworkInformation_h 6 #define NetworkInformation_h
7 7
8 #include "core/dom/ContextLifecycleObserver.h" 8 #include "core/dom/ContextLifecycleObserver.h"
9 #include "core/events/EventTarget.h" 9 #include "core/events/EventTarget.h"
10 #include "platform/bindings/ActiveScriptWrappable.h" 10 #include "platform/bindings/ActiveScriptWrappable.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 WebConnectionType type_; 76 WebConnectionType type_;
77 77
78 // Touched only on context thread. 78 // Touched only on context thread.
79 double downlink_max_mbps_; 79 double downlink_max_mbps_;
80 80
81 // Current effective connection type, which is the connection type whose 81 // Current effective connection type, which is the connection type whose
82 // typical performance is most similar to the measured performance of the 82 // typical performance is most similar to the measured performance of the
83 // network in use. 83 // network in use.
84 WebEffectiveConnectionType effective_type_; 84 WebEffectiveConnectionType effective_type_;
85 85
86 // Transport RTT estimate. Rounded off to the nearest 25 msec. Touched only on 86 // HTTP RTT estimate. Rounded off to the nearest 25 msec. Touched only on
87 // context thread. 87 // context thread.
88 unsigned long transport_rtt_msec_; 88 unsigned long http_rtt_msec_;
89 89
90 // Downlink throughput estimate. Rounded off to the nearest 25 kbps. Touched 90 // Downlink throughput estimate. Rounded off to the nearest 25 kbps. Touched
91 // only on context thread. 91 // only on context thread.
92 double downlink_mbps_; 92 double downlink_mbps_;
93 93
94 // Whether this object is listening for events from NetworkStateNotifier. 94 // Whether this object is listening for events from NetworkStateNotifier.
95 bool observing_; 95 bool observing_;
96 96
97 // Whether ContextLifecycleObserver::contextDestroyed has been called. 97 // Whether ContextLifecycleObserver::contextDestroyed has been called.
98 bool context_stopped_; 98 bool context_stopped_;
99 }; 99 };
100 100
101 } // namespace blink 101 } // namespace blink
102 102
103 #endif // NetworkInformation_h 103 #endif // NetworkInformation_h
OLDNEW
« no previous file with comments | « content/browser/net_info_browsertest.cc ('k') | third_party/WebKit/Source/modules/netinfo/NetworkInformation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698