Index: components/data_usage/core/data_use_aggregator.h |
diff --git a/components/data_usage/core/data_use_aggregator.h b/components/data_usage/core/data_use_aggregator.h |
index 869648dc08940d2d69316c0588bdfbb1f8b58185..a7e1a9540ce028a2cb9fac49963ef546bda5ea9a 100644 |
--- a/components/data_usage/core/data_use_aggregator.h |
+++ b/components/data_usage/core/data_use_aggregator.h |
@@ -9,12 +9,16 @@ |
#include <vector> |
+#include "base/callback.h" |
#include "base/macros.h" |
+#include "base/memory/scoped_ptr.h" |
#include "base/memory/scoped_vector.h" |
#include "base/memory/weak_ptr.h" |
#include "base/observer_list.h" |
#include "base/threading/thread_checker.h" |
+class GURL; |
+ |
namespace net { |
class URLRequest; |
} |
@@ -42,10 +46,12 @@ class DataUseAggregator { |
void RemoveObserver(Observer* observer); |
// Virtual for testing. |
- virtual void ReportDataUse(const net::URLRequest& request, |
- int32_t tab_id, |
- int64_t tx_bytes, |
- int64_t rx_bytes); |
+ virtual void ReportDataUse(int64_t tx_bytes, |
+ int64_t rx_bytes, |
+ const GURL& url, |
+ const base::Time& request_time, |
+ const GURL& first_party_for_cookies, |
+ int32_t tab_id); |
// Account for off-the-record data use. This usage is only kept track of here |
// so that it can be taken out of any amortized data usage calculations, and a |