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

Unified Diff: components/data_use_measurement/core/data_use.h

Issue 2507813003: Periodically remove old pending navigation entries.
Patch Set: Sync Created 4 years, 1 month 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 | « chrome/test/BUILD.gn ('k') | components/data_use_measurement/core/data_use.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_use_measurement/core/data_use.h
diff --git a/components/data_use_measurement/core/data_use.h b/components/data_use_measurement/core/data_use.h
index 55cb7e57ed1abc4347c701a643548926a040f3c1..2cddee48d4779841740d16bcd263f19d452bc1e3 100644
--- a/components/data_use_measurement/core/data_use.h
+++ b/components/data_use_measurement/core/data_use.h
@@ -38,6 +38,8 @@ class DataUse {
int64_t total_bytes_sent() const { return total_bytes_sent_; }
+ base::Time start_time() const { return start_time_; }
+
private:
friend class DataUseRecorder;
@@ -47,6 +49,9 @@ class DataUse {
int64_t total_bytes_sent_;
int64_t total_bytes_received_;
+ // When this data use started.
+ base::Time start_time_;
+
DISALLOW_COPY_AND_ASSIGN(DataUse);
};
« no previous file with comments | « chrome/test/BUILD.gn ('k') | components/data_use_measurement/core/data_use.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698