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 "chrome/common/ntp_logging_events.h" | 8 #include "chrome/common/ntp_logging_events.h" |
9 #include "content/public/browser/web_contents_observer.h" | 9 #include "content/public/browser/web_contents_observer.h" |
10 #include "content/public/browser/web_contents_user_data.h" | 10 #include "content/public/browser/web_contents_user_data.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 size_t number_of_thumbnail_errors_; | 65 size_t number_of_thumbnail_errors_; |
66 | 66 |
67 // Total number of attempts made to load thumbnail images while providing a | 67 // Total number of attempts made to load thumbnail images while providing a |
68 // fallback thumbnail for this NTP session. | 68 // fallback thumbnail for this NTP session. |
69 size_t number_of_fallback_thumbnails_requested_; | 69 size_t number_of_fallback_thumbnails_requested_; |
70 | 70 |
71 // Total number of errors that occurred while trying to load the primary | 71 // Total number of errors that occurred while trying to load the primary |
72 // thumbnail image and that caused a fallback to the secondary thumbnail. | 72 // thumbnail image and that caused a fallback to the secondary thumbnail. |
73 size_t number_of_fallback_thumbnails_used_; | 73 size_t number_of_fallback_thumbnails_used_; |
74 | 74 |
| 75 // True if at least one iframe came from a server-side suggestion. In |
| 76 // practice, either all the iframes are server-side suggestions or none are. |
| 77 bool server_side_suggestions_; |
| 78 |
75 // The URL of this New Tab Page - varies based on NTP version. | 79 // The URL of this New Tab Page - varies based on NTP version. |
76 GURL ntp_url_; | 80 GURL ntp_url_; |
77 | 81 |
78 DISALLOW_COPY_AND_ASSIGN(NTPUserDataLogger); | 82 DISALLOW_COPY_AND_ASSIGN(NTPUserDataLogger); |
79 }; | 83 }; |
80 | 84 |
81 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_USER_DATA_LOGGER_H_ | 85 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_USER_DATA_LOGGER_H_ |
OLD | NEW |