blob: c144c7bd02beb90f7785e0b53426842cfed2ca19 [file] [log] [blame]
treibb5f7233d2016-10-18 09:14:321// Copyright 2016 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef COMPONENTS_NTP_TILES_METRICS_H_
6#define COMPONENTS_NTP_TILES_METRICS_H_
7
Mikel Astizbc131d82017-10-09 06:16:418#include "components/ntp_tiles/ntp_tile_impression.h"
mastiz9677e782016-12-12 09:55:489
treibb5f7233d2016-10-18 09:14:3210namespace ntp_tiles {
11namespace metrics {
12
treibe3ca5da2016-11-24 17:26:5513// Records an NTP impression, after all tiles have loaded.
Jan Krcal437702b2017-06-23 07:22:3814void RecordPageImpression(int number_of_tiles);
15
Mikel Astizbc131d82017-10-09 06:16:4116// Records an individual tile impression, which should be called only after the
Justin DeWitt7aca2b12019-11-06 17:12:0117// visual type of the tile has been determined.
18void RecordTileImpression(const NTPTileImpression& impression);
treibb5f7233d2016-10-18 09:14:3219
treib6e3618a2016-10-25 14:07:2820// Records a click on a tile.
Mikel Astizbc131d82017-10-09 06:16:4121void RecordTileClick(const NTPTileImpression& impression);
treibb5f7233d2016-10-18 09:14:3222
23} // namespace metrics
24} // namespace ntp_tiles
25
Mikel Astizbc131d82017-10-09 06:16:4126#endif // COMPONENTS_NTP_TILES_METRICS_H_