Chromium Code Reviews| 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_ |