Chromium Code Reviews| 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..1e7ff5a1e61abb8365cbeaf835e6940915917c66 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,8 @@ class DataUseRecorder { |
| // Whether the entity that owns this data use is currently visible. |
| bool is_visible_; |
| + uint64_t page_transition_; |
|
RyanSturm
2017/01/10 18:32:24
Can you add a comment since this is just a uint64_
Raj
2017/01/10 22:21:57
Done.
|
| + |
| DISALLOW_COPY_AND_ASSIGN(DataUseRecorder); |
| }; |