Index: components/ukm/public/mojo_ukm_recorder.cc |
diff --git a/components/ukm/public/mojo_ukm_recorder.cc b/components/ukm/public/mojo_ukm_recorder.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8d5af8f9e7f9310331f35773f88da701a6b23bae |
--- /dev/null |
+++ b/components/ukm/public/mojo_ukm_recorder.cc |
@@ -0,0 +1,24 @@ |
+// 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. |
+ |
+#include "components/ukm/public/mojo_ukm_recorder.h" |
+ |
+#include "base/memory/ptr_util.h" |
+ |
+namespace ukm { |
+ |
+MojoUkmRecorder::MojoUkmRecorder(mojom::UkmRecorderInterfacePtr interface) |
+ : interface_(std::move(interface)) {} |
+MojoUkmRecorder::~MojoUkmRecorder() = default; |
+ |
+void MojoUkmRecorder::UpdateSourceURL(SourceId source_id, const GURL& url) { |
+ DCHECK(false); |
+ // Not implemented yet, currently a no-op. |
+} |
+ |
+void MojoUkmRecorder::AddEntry(mojom::UkmEntryPtr entry) { |
+ interface_->AddEntry(std::move(entry)); |
+} |
+ |
+} // namespace ukm |