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 d406c5b81a6c89b5b9689ebb48f173bdcb608206..b7b57dc38e138481420e08d087185b1a5e81f423 100644 |
| --- a/components/data_use_measurement/core/data_use_recorder.h |
| +++ b/components/data_use_measurement/core/data_use_recorder.h |
| @@ -39,6 +39,10 @@ class DataUseRecorder { |
| main_url_request_ = request; |
| } |
| + bool is_visible() const { return is_visible_; } |
| + |
| + void set_is_visible(bool is_visible) { is_visible_ = is_visible; } |
| + |
| // Returns whether data use is complete and no additional data can be used |
| // by the entity tracked by this recorder. For example, |
| bool IsDataUseComplete(); |
| @@ -91,6 +95,9 @@ class DataUseRecorder { |
| // The network data use measured by this DataUseRecorder. |
| DataUse data_use_; |
| + // The current visible state of the entity that corresponds to this data use. |
|
RyanSturm
2016/12/13 22:04:20
nit: s/The current visible state of the entity tha
Raj
2016/12/14 23:00:51
Done.
|
| + bool is_visible_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(DataUseRecorder); |
| }; |