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); |
}; |