blob: 680996c2f13547cf2944bb19ce6f8792fdaf9298 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/ntp_tiles/ntp_tile_impression.h"
namespace rappor {
class RapporService;
} // namespace rappor
namespace ntp_tiles {
namespace metrics {
// Records an NTP impression, after all tiles have loaded.
void RecordPageImpression(int number_of_tiles);
// Records an individual tile impression, which should be called only after the
// visual type of the tile has been determined. If |rappor_service| is null, no
// rappor metrics will be reported.
void RecordTileImpression(const NTPTileImpression& impression,
rappor::RapporService* rappor_service);
// Records a click on a tile.
void RecordTileClick(const NTPTileImpression& impression);
} // namespace metrics
} // namespace ntp_tiles