Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Side by Side Diff: chrome/browser/ui/webui/ntp/ntp_user_data_logger.h

Issue 1007383003: Adds a new UMA histogram to measure the NTP load time since navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // for a failed thumbnail. 91 // for a failed thumbnail.
92 size_t number_of_gray_tile_fallbacks_; 92 size_t number_of_gray_tile_fallbacks_;
93 93
94 // The number of times an external tile, for which the visual appearance is 94 // The number of times an external tile, for which the visual appearance is
95 // handled by the page itself, was the fallback for a failed thumbnail. 95 // handled by the page itself, was the fallback for a failed thumbnail.
96 size_t number_of_external_tile_fallbacks_; 96 size_t number_of_external_tile_fallbacks_;
97 97
98 // Total number of mouseovers for this NTP session. 98 // Total number of mouseovers for this NTP session.
99 size_t number_of_mouseovers_; 99 size_t number_of_mouseovers_;
100 100
101 // Time from navigation start it took to load the NTP in milliseconds.
102 base::TimeDelta load_time_;
103
104 // Whether we have already emitted NTP stats for this web contents.
105 bool has_emitted_;
106
101 // The URL of this New Tab Page - varies based on NTP version. 107 // The URL of this New Tab Page - varies based on NTP version.
102 GURL ntp_url_; 108 GURL ntp_url_;
103 109
104 DISALLOW_COPY_AND_ASSIGN(NTPUserDataLogger); 110 DISALLOW_COPY_AND_ASSIGN(NTPUserDataLogger);
105 }; 111 };
106 112
107 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_USER_DATA_LOGGER_H_ 113 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_USER_DATA_LOGGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/search_tab_helper.cc ('k') | chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698