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

Unified Diff: chrome/browser/net/data_use_measurement.h

Issue 1279543002: Support needed to measure user and service traffic in Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@NewHistogram
Patch Set: Created 5 years, 4 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
Index: chrome/browser/net/data_use_measurement.h
diff --git a/chrome/browser/net/data_use_measurement.h b/chrome/browser/net/data_use_measurement.h
new file mode 100644
index 0000000000000000000000000000000000000000..e98997e5b22e6483e9f1f7fc0d322d708e3c1307
--- /dev/null
+++ b/chrome/browser/net/data_use_measurement.h
@@ -0,0 +1,19 @@
+// Copyright 2015 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 CHROME_BROWSER_NET_DATA_USE_MEASUREMENT_H_
+#define CHROME_BROWSER_NET_DATA_USE_MEASUREMENT_H_
+
+namespace net {
+class URLRequest;
+} // namespace net
bengr 2015/08/07 18:00:01 No need for the comment on a single line namespace
amohammadkhan 2015/08/11 22:04:36 Done.
+
+// Records the data use of |serviceType| based on the |request|. Normally used
+// for recording data use of All the packets in ChromeNetworkDelegate because
+// we have access to URLRequest. After extracting necessary data, such as
+// message size in different directions, specify it is User or Not_user data and
+// calls the other version of ReportDataUsage for recording this measurement.
+void ReportDataUsage(const net::URLRequest* request);
+
+#endif // CHROME_BROWSER_NET_DATA_USE_MEASUREMENT_H_

Powered by Google App Engine
This is Rietveld 408576698