summaryrefslogtreecommitdiff
path: root/Source/Core/Common/AndroidAnalytics.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/AndroidAnalytics.h')
-rw-r--r--Source/Core/Common/AndroidAnalytics.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/Source/Core/Common/AndroidAnalytics.h b/Source/Core/Common/AndroidAnalytics.h
new file mode 100644
index 0000000000..b96d67cb19
--- /dev/null
+++ b/Source/Core/Common/AndroidAnalytics.h
@@ -0,0 +1,26 @@
+// Copyright 2018 Dolphin Emulator Project
+// Licensed under GPLv2+
+// Refer to the license.txt file included.
+#pragma once
+
+#include <functional>
+#include <string>
+
+#include "Common/Analytics.h"
+
+namespace Common
+{
+void AndroidSetReportHandler(std::function<void(std::string, std::string)> function);
+
+class AndroidAnalyticsBackend : public AnalyticsReportingBackend
+{
+public:
+ explicit AndroidAnalyticsBackend(const std::string endpoint);
+
+ ~AndroidAnalyticsBackend() override;
+ void Send(std::string report) override;
+
+private:
+ std::string m_endpoint;
+};
+} // namespace Common