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

Unified Diff: net/nqe/event_creator.h

Issue 2593243003: Add network quality change events to net log (Closed)
Patch Set: rebased 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/net.gypi ('k') | net/nqe/event_creator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..85bbf030f88bfaa7fcabfe9e64ef19cf9f8a2d82
--- /dev/null
+++ b/net/nqe/event_creator.h
@@ -0,0 +1,39 @@
+// 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/nqe/effective_connection_type.h"
+
+namespace net {
+
+class NetLogWithSource;
+
+namespace nqe {
+
+namespace internal {
+
+// Adds network quality changed event to the net-internals log. |http_rtt| is
+// the estimate of the HTTP RTT. |transport_rtt| is the estimate 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_
« no previous file with comments | « net/net.gypi ('k') | net/nqe/event_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698