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

Unified Diff: chrome/browser/android/ntp/content_suggestions_notification_helper.h

Issue 2616893003: Hide notifications after their deadline (Closed)
Patch Set: import annotation Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/ntp/content_suggestions_notification_helper.h
diff --git a/chrome/browser/android/ntp/content_suggestions_notification_helper.h b/chrome/browser/android/ntp/content_suggestions_notification_helper.h
index 97a06f2f816ae5475fda98fc939327d3ef0fe33d..e9c7d93c569f6d100e86ea938816e8b00cffba53 100644
--- a/chrome/browser/android/ntp/content_suggestions_notification_helper.h
+++ b/chrome/browser/android/ntp/content_suggestions_notification_helper.h
@@ -9,6 +9,7 @@
#include "base/macros.h"
#include "base/strings/string16.h"
+#include "base/time/time.h"
#include "url/gurl.h"
namespace gfx {
@@ -23,8 +24,9 @@ class ContentSuggestionsNotificationHelper {
static void SendNotification(const GURL& url,
const base::string16& title,
const base::string16& text,
- const gfx::Image& image);
- static void HideNotification();
+ const gfx::Image& image,
+ base::Time timeout_at);
+ static void HideAllNotifications();
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSuggestionsNotificationHelper);

Powered by Google App Engine
This is Rietveld 408576698