OLD | NEW |
(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_ |
OLD | NEW |