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

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

Issue 2626643002: Stop showing notifications if they're ignored (Closed)
Patch Set: Formatting, explicit 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"
Alexei Svitkine (slow) 2017/01/11 16:45:59 Nit: Include not used?
sfiera 2017/01/12 11:26:23 Done.
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 };
16
17 enum ContentSuggestionsNotificationAction {
18 CONTENT_SUGGESTIONS_TAP = 0, // User tapped notification to open article.
19 CONTENT_SUGGESTIONS_DISMISSAL, // User swiped notification to dismiss it.
20
21 CONTENT_SUGGESTIONS_HIDE_DEADLINE, // notification_extra().deadline passed.
22 CONTENT_SUGGESTIONS_HIDE_EXPIRY, // NTP no longer shows notified article.
23 CONTENT_SUGGESTIONS_HIDE_FRONTMOST, // Chrome became the frontmost app.
24 CONTENT_SUGGESTIONS_HIDE_DISABLED, // NTP no longer shows whole category.
25 CONTENT_SUGGESTIONS_HIDE_SHUTDOWN, // Content sugg service is shutting down.
26
27 MAX_CONTENT_SUGGESTIONS_NOTIFICATION_ACTION
28 };
29
30 enum ContentSuggestionsNotificationOptOut {
31 CONTENT_SUGGESTIONS_IMPLICIT = 0, // User ignored notifications.
32 CONTENT_SUGGESTIONS_EXPLICIT, // User explicitly opted-out.
33
34 MAX_CONTENT_SUGGESTIONS_NOTIFICATION_OPT_OUT
35 };
36
37 void RecordContentSuggestionsNotificationImpression(
38 ContentSuggestionsNotificationImpression what);
39 void RecordContentSuggestionsNotificationAction(
40 ContentSuggestionsNotificationAction what);
41 void RecordContentSuggestionsNotificationOptOut(
42 ContentSuggestionsNotificationOptOut what);
43
44 #endif // CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698