Index: net/url_request/data_use_measurement.h |
diff --git a/net/url_request/data_use_measurement.h b/net/url_request/data_use_measurement.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d13e0d1ec34251b410fff9798af724293f249d54 |
--- /dev/null |
+++ b/net/url_request/data_use_measurement.h |
@@ -0,0 +1,20 @@ |
+// 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 NET_URL_REQUEST_DATA_USE_MEASUREMENT_H_ |
+#define NET_URL_REQUEST_DATA_USE_MEASUREMENT_H_ |
+ |
+namespace net { |
+class URLFetcher; |
+} // namespace net |
+ |
+// Records the data use of |service_name| based on the information included in |
+// fetcher. Normally used for recording data use of services using URLFetcher. |
+// After extracting necessary data, such as message size in different |
+// directions, calls the function to record use in DataUse.Services.{Dimensions} |
+// and DataUse.Service.|service_name| histograms. |
+void DataUseReport(const std::string& service_name, |
bengr
2015/08/07 18:00:01
I don't think you should have files for this lone
amohammadkhan
2015/08/11 22:04:36
Done.
|
+ const net::URLFetcher* fetcher); |
+ |
+#endif // NET_URL_REQUEST_DATA_USE_MEASUREMENT_H_ |