blob: 84888790a333b06e5468e1f4e07b856dfcb14b99 [file] [log] [blame]
// Copyright 2017 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.
#ifndef SERVICES_METRICS_UKM_RECORDER_INTERFACE_H_
#define SERVICES_METRICS_UKM_RECORDER_INTERFACE_H_
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "services/metrics/public/mojom/ukm_interface.mojom.h"
namespace ukm {
class UkmRecorder;
}
namespace metrics {
class UkmRecorderInterface : public ukm::mojom::UkmRecorderInterface {
public:
UkmRecorderInterface(ukm::UkmRecorder* ukm_recorder);
~UkmRecorderInterface() override;
static void Create(
ukm::UkmRecorder* ukm_recorder,
mojo::PendingReceiver<ukm::mojom::UkmRecorderInterface> receiver);
private:
// ukm::mojom::UkmRecorderInterface:
void AddEntry(ukm::mojom::UkmEntryPtr entry) override;
void UpdateSourceURL(int64_t source_id, const std::string& url) override;
ukm::UkmRecorder* ukm_recorder_;
DISALLOW_COPY_AND_ASSIGN(UkmRecorderInterface);
};
} // namespace metrics
#endif // SERVICES_METRICS_UKM_RECORDER_INTERFACE_H_