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

Side by Side Diff: chrome/browser/previews/previews_infobar_delegate.h

Issue 2952343004: Adding previews information to PLM UKM (Closed)
Patch Set: stop observing on background Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PREVIEWS_PREVIEWS_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_PREVIEWS_PREVIEWS_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_PREVIEWS_PREVIEWS_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_PREVIEWS_PREVIEWS_INFOBAR_DELEGATE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 bool is_data_saver_user, 61 bool is_data_saver_user,
62 const OnDismissPreviewsInfobarCallback& on_dismiss_callback); 62 const OnDismissPreviewsInfobarCallback& on_dismiss_callback);
63 63
64 // ConfirmInfoBarDelegate overrides: 64 // ConfirmInfoBarDelegate overrides:
65 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; 65 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
66 bool ShouldExpire(const NavigationDetails& details) const override; 66 bool ShouldExpire(const NavigationDetails& details) const override;
67 void InfoBarDismissed() override; 67 void InfoBarDismissed() override;
68 int GetButtons() const override; 68 int GetButtons() const override;
69 bool LinkClicked(WindowOpenDisposition disposition) override; 69 bool LinkClicked(WindowOpenDisposition disposition) override;
70 70
71 // Records that the navigation currently committed in this web contents as an
72 // opt out in PLM UKM.
73 void RecordUKMOptOut();
rkaplow 2017/06/27 22:17:09 I might rename these method - it sounds like it is
RyanSturm 2017/07/11 21:46:41 Done.
74
71 previews::PreviewsType previews_type_; 75 previews::PreviewsType previews_type_;
72 // The time at which the preview associated with this infobar was created. A 76 // The time at which the preview associated with this infobar was created. A
73 // value of zero means that the creation time is unknown. 77 // value of zero means that the creation time is unknown.
74 const base::Time previews_freshness_; 78 const base::Time previews_freshness_;
75 mutable PreviewsInfoBarAction infobar_dismissed_action_; 79 mutable PreviewsInfoBarAction infobar_dismissed_action_;
76 80
77 const base::string16 message_text_; 81 const base::string16 message_text_;
78 82
79 OnDismissPreviewsInfobarCallback on_dismiss_callback_; 83 OnDismissPreviewsInfobarCallback on_dismiss_callback_;
80 84
81 DISALLOW_COPY_AND_ASSIGN(PreviewsInfoBarDelegate); 85 DISALLOW_COPY_AND_ASSIGN(PreviewsInfoBarDelegate);
82 }; 86 };
83 87
84 #endif // CHROME_BROWSER_PREVIEWS_PREVIEWS_INFOBAR_DELEGATE_H_ 88 #endif // CHROME_BROWSER_PREVIEWS_PREVIEWS_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698