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

Side by Side Diff: chrome/browser/ntp_snippets/ntp_snippets_metrics.h

Issue 2626643002: Stop showing notifications if they're ignored (Closed)
Patch Set: rebase 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_METRICS_H_
6 #define CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_METRICS_H_
7
8 #include "base/feature_list.h"
9
10 enum ContentSuggestionsNotificationImpression {
11 CONTENT_SUGGESTIONS_ARTICLE = 0, // Server-provided "articles" category.
12 CONTENT_SUGGESTIONS_NONARTICLE, // Anything else.
13
14 MAX_CONTENT_SUGGESTIONS_NOTIFICATION_IMPRESSION
15 };
Bernhard Bauer 2017/01/11 15:21:49 Empty line afterwards please.
sfiera 2017/01/11 15:41:52 Done.
16 enum ContentSuggestionsNotificationAction {
17 CONTENT_SUGGESTIONS_TAP = 0, // User tapped notification to open article.
18 CONTENT_SUGGESTIONS_DISMISSAL, // User swiped notification to dismiss it.
19
20 CONTENT_SUGGESTIONS_HIDE_DEADLINE, // notification_extra().deadline passed.
21 CONTENT_SUGGESTIONS_HIDE_EXPIRY, // NTP no longer shows notified article.
22 CONTENT_SUGGESTIONS_HIDE_FRONTMOST, // Chrome became the frontmost app.
23 CONTENT_SUGGESTIONS_HIDE_DISABLED, // NTP no longer shows whole category.
24 CONTENT_SUGGESTIONS_HIDE_SHUTDOWN, // Content sugg service is shutting down.
25
26 MAX_CONTENT_SUGGESTIONS_NOTIFICATION_ACTION
27 };
28 enum ContentSuggestionsNotificationOptOut {
29 CONTENT_SUGGESTIONS_IMPLICIT = 0, // User ignored notifications.
30 CONTENT_SUGGESTIONS_EXPLICIT, // User explicitly opted-out.
31
32 MAX_CONTENT_SUGGESTIONS_NOTIFICATION_OPT_OUT
33 };
34
35 void RecordContentSuggestionsNotificationImpression(
36 ContentSuggestionsNotificationImpression what);
37 void RecordContentSuggestionsNotificationAction(
38 ContentSuggestionsNotificationAction what);
39 void RecordContentSuggestionsNotificationOptOut(
40 ContentSuggestionsNotificationOptOut what);
41
42 #endif // CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698