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

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

Issue 2614203002: Record data use of user traffic by different core page transition types (Closed)
Patch Set: rebased Created 3 years, 9 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: components/data_use_measurement/core/data_use_recorder.h
diff --git a/components/data_use_measurement/core/data_use_recorder.h b/components/data_use_measurement/core/data_use_recorder.h
index 8a26da67f02340ae665019e39c28b26edca1bfc3..7a279512f8f1bdea0ea62e9023eb6769d833ba0d 100644
--- a/components/data_use_measurement/core/data_use_recorder.h
+++ b/components/data_use_measurement/core/data_use_recorder.h
@@ -43,6 +43,12 @@ class DataUseRecorder {
void set_is_visible(bool is_visible) { is_visible_ = is_visible; }
+ uint64_t page_transition() const { return page_transition_; }
+
+ void set_page_transition(uint64_t page_transition) {
+ page_transition_ = page_transition;
+ }
+
// Returns whether data use is complete and no additional data can be used
// by the entity tracked by this recorder. For example,
bool IsDataUseComplete();
@@ -98,6 +104,9 @@ class DataUseRecorder {
// Whether the entity that owns this data use is currently visible.
bool is_visible_;
+ // ui::PageTransition casted as a uint64_t.
+ uint64_t page_transition_;
+
DISALLOW_COPY_AND_ASSIGN(DataUseRecorder);
};

Powered by Google App Engine
This is Rietveld 408576698