| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 size_t number_of_thumbnail_errors_; | 99 size_t number_of_thumbnail_errors_; |
| 100 | 100 |
| 101 // The number of times a gray tile with the domain was used as the fallback | 101 // The number of times a gray tile with the domain was used as the fallback |
| 102 // for a failed thumbnail. | 102 // for a failed thumbnail. |
| 103 size_t number_of_gray_tile_fallbacks_; | 103 size_t number_of_gray_tile_fallbacks_; |
| 104 | 104 |
| 105 // The number of times an external tile, for which the visual appearance is | 105 // The number of times an external tile, for which the visual appearance is |
| 106 // handled by the page itself, was the fallback for a failed thumbnail. | 106 // handled by the page itself, was the fallback for a failed thumbnail. |
| 107 size_t number_of_external_tile_fallbacks_; | 107 size_t number_of_external_tile_fallbacks_; |
| 108 | 108 |
| 109 // Total number of mouseovers for this NTP session. | |
| 110 size_t number_of_mouseovers_; | |
| 111 | |
| 112 // Time from navigation start it took to load the NTP in milliseconds. | 109 // Time from navigation start it took to load the NTP in milliseconds. |
| 113 base::TimeDelta load_time_; | 110 base::TimeDelta load_time_; |
| 114 | 111 |
| 115 // Whether we have already emitted NTP stats for this web contents. | 112 // Whether we have already emitted NTP stats for this web contents. |
| 116 bool has_emitted_; | 113 bool has_emitted_; |
| 117 | 114 |
| 118 // Are stats being logged during Chrome startup? | 115 // Are stats being logged during Chrome startup? |
| 119 bool during_startup_; | 116 bool during_startup_; |
| 120 | 117 |
| 121 // The URL of this New Tab Page - varies based on NTP version. | 118 // The URL of this New Tab Page - varies based on NTP version. |
| 122 GURL ntp_url_; | 119 GURL ntp_url_; |
| 123 | 120 |
| 124 DISALLOW_COPY_AND_ASSIGN(NTPUserDataLogger); | 121 DISALLOW_COPY_AND_ASSIGN(NTPUserDataLogger); |
| 125 }; | 122 }; |
| 126 | 123 |
| 127 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_USER_DATA_LOGGER_H_ | 124 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_USER_DATA_LOGGER_H_ |
| OLD | NEW |