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

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

Issue 2626643002: Stop showing notifications if they're ignored (Closed)
Patch Set: String.equals() 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 enum ContentSuggestionsNotificationImpression {
9 CONTENT_SUGGESTIONS_ARTICLE = 0, // Server-provided "articles" category.
10 CONTENT_SUGGESTIONS_NONARTICLE, // Anything else.
11
12 MAX_CONTENT_SUGGESTIONS_NOTIFICATION_IMPRESSION
13 };
14
15 enum ContentSuggestionsNotificationAction {
16 CONTENT_SUGGESTIONS_TAP = 0, // User tapped notification to open article.
17 CONTENT_SUGGESTIONS_DISMISSAL, // User swiped notification to dismiss it.
18
19 CONTENT_SUGGESTIONS_HIDE_DEADLINE, // notification_extra().deadline passed.
20 CONTENT_SUGGESTIONS_HIDE_EXPIRY, // NTP no longer shows notified article.
21 CONTENT_SUGGESTIONS_HIDE_FRONTMOST, // Chrome became the frontmost app.
22 CONTENT_SUGGESTIONS_HIDE_DISABLED, // NTP no longer shows whole category.
23 CONTENT_SUGGESTIONS_HIDE_SHUTDOWN, // Content sugg service is shutting down.
24
25 MAX_CONTENT_SUGGESTIONS_NOTIFICATION_ACTION
26 };
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
« no previous file with comments | « chrome/browser/ntp_snippets/ntp_snippets_features.cc ('k') | chrome/browser/ntp_snippets/ntp_snippets_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698