| Index: chrome/browser/previews/previews_infobar_tab_helper.h
|
| diff --git a/chrome/browser/previews/previews_infobar_tab_helper.h b/chrome/browser/previews/previews_infobar_tab_helper.h
|
| index 949ac7ea2f1ca34720c005d7ba8d9b2c7d3d9142..19a8ded6a6edc81417966d9183231c215425b21c 100644
|
| --- a/chrome/browser/previews/previews_infobar_tab_helper.h
|
| +++ b/chrome/browser/previews/previews_infobar_tab_helper.h
|
| @@ -31,6 +31,13 @@ class PreviewsInfoBarTabHelper
|
| displayed_preview_infobar_ = displayed;
|
| }
|
|
|
| + // Sets whether the timestamp on the InfoBar for a preview has been shown for
|
| + // the page. |displayed_preview_timestamp_| is reset to false on
|
| + // DidStartProvisionalLoadForFrame for the main frame.
|
| + void set_displayed_preview_timestamp(bool displayed_preview_timestamp) {
|
| + displayed_preview_timestamp_ = displayed_preview_timestamp;
|
| + }
|
| +
|
| // The data saver page identifier of the current page load.
|
| const base::Optional<data_reduction_proxy::NavigationID>&
|
| committed_data_saver_navigation_id() {
|
| @@ -56,6 +63,9 @@ class PreviewsInfoBarTabHelper
|
| // True if the InfoBar for a preview has been shown for the page.
|
| bool displayed_preview_infobar_;
|
|
|
| + // True if the InfoBar with a timestamp was shown for the page.
|
| + bool displayed_preview_timestamp_;
|
| +
|
| // The data saver page identifier of the current page load.
|
| base::Optional<data_reduction_proxy::NavigationID>
|
| committed_data_saver_navigation_id_;
|
|
|