| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_METRICS_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_METRICS_H_ |
| 6 #define CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_METRICS_H_ | 6 #define CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_METRICS_H_ |
| 7 | 7 |
| 8 namespace base { | 8 namespace base { |
| 9 class TimeDelta; | 9 class TimeDelta; |
| 10 } | 10 } |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // Launch a previously installed WebAPK since the WebAPK has been installed on | 49 // Launch a previously installed WebAPK since the WebAPK has been installed on |
| 50 // the device before. | 50 // the device before. |
| 51 USER_ACTION_OPEN, // Obsolete | 51 USER_ACTION_OPEN, // Obsolete |
| 52 USER_ACTION_OPEN_DISMISS, // Obsolete | 52 USER_ACTION_OPEN_DISMISS, // Obsolete |
| 53 // Open a newly installed WebAPK via a successful installation. | 53 // Open a newly installed WebAPK via a successful installation. |
| 54 USER_ACTION_INSTALLED_OPEN, | 54 USER_ACTION_INSTALLED_OPEN, |
| 55 USER_ACTION_INSTALLED_OPEN_DISMISS, | 55 USER_ACTION_INSTALLED_OPEN_DISMISS, |
| 56 USER_ACTION_MAX, | 56 USER_ACTION_MAX, |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 void TrackRequestTokenDuration(base::TimeDelta delta); |
| 59 void TrackInstallDuration(base::TimeDelta delta); | 60 void TrackInstallDuration(base::TimeDelta delta); |
| 60 void TrackInstallEvent(InstallEvent event); | 61 void TrackInstallEvent(InstallEvent event); |
| 61 void TrackInstallSource(InstallSource event); | 62 void TrackInstallSource(InstallSource event); |
| 62 void TrackInstallInfoBarShown(InfoBarShown event); | 63 void TrackInstallInfoBarShown(InfoBarShown event); |
| 63 void TrackUserAction(UserAction event); | 64 void TrackUserAction(UserAction event); |
| 64 | 65 |
| 65 // On web app and WebAPK installation records whether a WebAPK could be | 66 // On web app and WebAPK installation records whether a WebAPK could be |
| 66 // installed via the Google Play flow. If not, records why the WebAPK could not | 67 // installed via the Google Play flow. If not, records why the WebAPK could not |
| 67 // be installed via the Google Play flow (and a web app was added to the | 68 // be installed via the Google Play flow (and a web app was added to the |
| 68 // homescreen instead). | 69 // homescreen instead). |
| 69 // Warning: This metric is recorded whenever a site is added to the homescreeen | 70 // Warning: This metric is recorded whenever a site is added to the homescreeen |
| 70 // as a web app, not just for sites with a WebAPK compatible Web Manifest. | 71 // as a web app, not just for sites with a WebAPK compatible Web Manifest. |
| 71 void TrackGooglePlayInstallState(GooglePlayInstallState state); | 72 void TrackGooglePlayInstallState(GooglePlayInstallState state); |
| 72 | 73 |
| 73 }; // namespace webapk | 74 }; // namespace webapk |
| 74 | 75 |
| 75 #endif // CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_METRICS_H_ | 76 #endif // CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_METRICS_H_ |
| OLD | NEW |