| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_UI_WEBUI_NTP_NTP_USER_DATA_LOGGER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_NTP_USER_DATA_LOGGER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_NTP_NTP_USER_DATA_LOGGER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_NTP_NTP_USER_DATA_LOGGER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 size_t number_of_thumbnail_errors_; | 89 size_t number_of_thumbnail_errors_; |
| 90 | 90 |
| 91 // The number of times a gray tile with the domain was used as the fallback | 91 // The number of times a gray tile with the domain was used as the fallback |
| 92 // for a failed thumbnail. | 92 // for a failed thumbnail. |
| 93 size_t number_of_gray_tile_fallbacks_; | 93 size_t number_of_gray_tile_fallbacks_; |
| 94 | 94 |
| 95 // The number of times an external tile, for which the visual appearance is | 95 // The number of times an external tile, for which the visual appearance is |
| 96 // handled by the page itself, was the fallback for a failed thumbnail. | 96 // handled by the page itself, was the fallback for a failed thumbnail. |
| 97 size_t number_of_external_tile_fallbacks_; | 97 size_t number_of_external_tile_fallbacks_; |
| 98 | 98 |
| 99 // Total number of mouseovers for this NTP session. | |
| 100 size_t number_of_mouseovers_; | |
| 101 | |
| 102 // Time from navigation start it took to load the NTP in milliseconds. | 99 // Time from navigation start it took to load the NTP in milliseconds. |
| 103 base::TimeDelta load_time_; | 100 base::TimeDelta load_time_; |
| 104 | 101 |
| 105 // Whether we have already emitted NTP stats for this web contents. | 102 // Whether we have already emitted NTP stats for this web contents. |
| 106 bool has_emitted_; | 103 bool has_emitted_; |
| 107 | 104 |
| 108 // Are stats being logged during Chrome startup? | 105 // Are stats being logged during Chrome startup? |
| 109 bool during_startup_; | 106 bool during_startup_; |
| 110 | 107 |
| 111 // The URL of this New Tab Page - varies based on NTP version. | 108 // The URL of this New Tab Page - varies based on NTP version. |
| 112 GURL ntp_url_; | 109 GURL ntp_url_; |
| 113 | 110 |
| 114 DISALLOW_COPY_AND_ASSIGN(NTPUserDataLogger); | 111 DISALLOW_COPY_AND_ASSIGN(NTPUserDataLogger); |
| 115 }; | 112 }; |
| 116 | 113 |
| 117 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_USER_DATA_LOGGER_H_ | 114 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_USER_DATA_LOGGER_H_ |
| OLD | NEW |