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

Side by Side Diff: chrome/common/search/ntp_logging_events.h

Issue 2696223004: Desktop NTP: Add a UMA metric NewTabPage.TilesReceivedTime (Closed)
Patch Set: review Created 3 years, 10 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_COMMON_SEARCH_NTP_LOGGING_EVENTS_H_ 5 #ifndef CHROME_COMMON_SEARCH_NTP_LOGGING_EVENTS_H_
6 #define CHROME_COMMON_SEARCH_NTP_LOGGING_EVENTS_H_ 6 #define CHROME_COMMON_SEARCH_NTP_LOGGING_EVENTS_H_
7 7
8 // The different types of events that are logged from the NTP. This enum is used 8 // The different types of events that are logged from the NTP. This enum is used
9 // to transfer information from the NTP javascript to the renderer and is not 9 // to transfer information from the NTP javascript to the renderer and is *not*
10 // used as a UMA enum histogram's logged value. 10 // used as a UMA enum histogram's logged value.
11 // Note: Keep in sync with browser/resources/local_ntp/most_visited_single.js 11 // Note: Keep in sync with browser/resources/local_ntp/most_visited_single.js
12 enum NTPLoggingEventType { 12 enum NTPLoggingEventType {
13 // A suggestion coming from the server was rendered.
14 // Deleted: NTP_SERVER_SIDE_SUGGESTION = 0, 13 // Deleted: NTP_SERVER_SIDE_SUGGESTION = 0,
15
16 // A suggestion coming from the client was rendered.
17 // Deleted: NTP_CLIENT_SIDE_SUGGESTION = 1, 14 // Deleted: NTP_CLIENT_SIDE_SUGGESTION = 1,
18
19 // Indicates a tile was rendered, no matter if it's a thumbnail, a gray tile
20 // or an external tile.
21 // Deleted: NTP_TILE = 2, 15 // Deleted: NTP_TILE = 2,
22
23 // The tile uses a local thumbnail image.
24 // Deleted: NTP_THUMBNAIL_TILE = 3, 16 // Deleted: NTP_THUMBNAIL_TILE = 3,
25
26 // Used when no thumbnail is specified and a gray tile with the domain is used
27 // as the main tile.
28 // Deleted: NTP_GRAY_TILE = 4, 17 // Deleted: NTP_GRAY_TILE = 4,
29
30 // The visuals of that tile are handled externally by the page itself.
31 // Deleted: NTP_EXTERNAL_TILE = 5, 18 // Deleted: NTP_EXTERNAL_TILE = 5,
32
33 // There was an error in loading both the thumbnail image and the fallback
34 // (if it was provided), resulting in a grey tile.
35 // Deleted: NTP_THUMBNAIL_ERROR = 6, 19 // Deleted: NTP_THUMBNAIL_ERROR = 6,
36
37 // Used a gray tile with the domain as the fallback for a failed thumbnail.
38 // Deleted: NTP_GRAY_TILE_FALLBACK = 7, 20 // Deleted: NTP_GRAY_TILE_FALLBACK = 7,
39
40 // The visuals of that tile's fallback are handled externally.
41 // Deleted: NTP_EXTERNAL_TILE_FALLBACK = 8, 21 // Deleted: NTP_EXTERNAL_TILE_FALLBACK = 8,
42
43 // Deleted: NTP_MOUSEOVER = 9 22 // Deleted: NTP_MOUSEOVER = 9
44
45 // A NTP Tile has finished loading (successfully or failing). Logged only by
46 // the multi-iframe version of the NTP.
47 // Deleted: NTP_TILE_LOADED = 10, 23 // Deleted: NTP_TILE_LOADED = 10,
48 24
49 // All NTP tiles have finished loading (successfully or failing). Logged only 25 // All NTP tiles have finished loading (successfully or failing). Logged only
50 // by the single-iframe version of the NTP. 26 // by the single-iframe version of the NTP.
51 NTP_ALL_TILES_LOADED = 11, 27 NTP_ALL_TILES_LOADED = 11,
52 28
53 NTP_EVENT_TYPE_LAST = NTP_ALL_TILES_LOADED 29 // The data for all NTP tiles (title, URL, etc, but not the thumbnail image)
30 // has been received by the most visited iframe. In contrast to
31 // NTP_ALL_TILES_LOADED, this is recorded before the actual DOM elements have
32 // loaded (in particular the thumbnail images). Logged only by the
33 // single-iframe version of the NTP.
34 NTP_ALL_TILES_RECEIVED = 12,
35
36 NTP_EVENT_TYPE_LAST = NTP_ALL_TILES_RECEIVED
54 }; 37 };
55 38
56 #endif // CHROME_COMMON_SEARCH_NTP_LOGGING_EVENTS_H_ 39 #endif // CHROME_COMMON_SEARCH_NTP_LOGGING_EVENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/ntp_user_data_logger_unittest.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698