Index: components/ukm/ukm_interface.h |
diff --git a/components/ukm/ukm_interface.h b/components/ukm/ukm_interface.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c74cfedfcd89cd61d4a8324d9813923e8d9b971e |
--- /dev/null |
+++ b/components/ukm/ukm_interface.h |
@@ -0,0 +1,38 @@ |
+// 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 COMPONENTS_UKM_UKM_INTERFACE_H_ |
+#define COMPONENTS_UKM_UKM_INTERFACE_H_ |
+ |
+#include "components/ukm/public/interfaces/ukm_interface.mojom.h" |
oystein (OOO til 10th of July)
2017/05/17 01:16:18
We're missing ukm_interface.mojom from this CL, I
Steven Holte
2017/05/17 17:40:17
This one is dependent on the other CL.
|
+ |
+namespace service_manager { |
+struct BindSourceInfo; |
+} |
+ |
+namespace ukm { |
+ |
+class UkmRecorder; |
+ |
+class UkmInterface : public mojom::UkmRecorderInterface { |
+ public: |
+ explicit UkmInterface(UkmRecorder* ukm_recorder); |
+ ~UkmInterface() override; |
+ |
+ static void Create(UkmRecorder* ukm_recorder, |
+ const service_manager::BindSourceInfo& source_info, |
+ mojom::UkmRecorderInterfaceRequest request); |
+ |
+ private: |
+ // rappor::mojom::UkmRecorderInterface: |
oystein (OOO til 10th of July)
2017/05/17 01:16:18
s/rappor/ukm/
Steven Holte
2017/05/17 17:40:17
Done.
|
+ void AddEntry(mojom::UkmEntryPtr entry) override; |
+ |
+ UkmRecorder* ukm_recorder_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(UkmInterface); |
+}; |
+ |
+} // namespace ukm |
+ |
+#endif // COMPONENTS_UKM_UKM_INTERFACE_H_ |