diff options
Diffstat (limited to 'src/core/telemetry_session.h')
| -rw-r--r-- | src/core/telemetry_session.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/telemetry_session.h b/src/core/telemetry_session.h index dbc4f8bd4..cec271df0 100644 --- a/src/core/telemetry_session.h +++ b/src/core/telemetry_session.h | |||
| @@ -4,7 +4,6 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <future> | ||
| 8 | #include <memory> | 7 | #include <memory> |
| 9 | #include "common/telemetry.h" | 8 | #include "common/telemetry.h" |
| 10 | 9 | ||
| @@ -31,6 +30,8 @@ public: | |||
| 31 | field_collection.AddField(type, name, std::move(value)); | 30 | field_collection.AddField(type, name, std::move(value)); |
| 32 | } | 31 | } |
| 33 | 32 | ||
| 33 | static void FinalizeAsyncJob(); | ||
| 34 | |||
| 34 | private: | 35 | private: |
| 35 | Telemetry::FieldCollection field_collection; ///< Tracks all added fields for the session | 36 | Telemetry::FieldCollection field_collection; ///< Tracks all added fields for the session |
| 36 | std::unique_ptr<Telemetry::VisitorInterface> backend; ///< Backend interface that logs fields | 37 | std::unique_ptr<Telemetry::VisitorInterface> backend; ///< Backend interface that logs fields |
| @@ -55,6 +56,6 @@ u64 RegenerateTelemetryId(); | |||
| 55 | * @param func A function that gets exectued when the verification is finished | 56 | * @param func A function that gets exectued when the verification is finished |
| 56 | * @returns Future with bool indicating whether the verification succeeded | 57 | * @returns Future with bool indicating whether the verification succeeded |
| 57 | */ | 58 | */ |
| 58 | std::future<bool> VerifyLogin(std::string username, std::string token, std::function<void()> func); | 59 | bool VerifyLogin(const std::string& username, const std::string& token); |
| 59 | 60 | ||
| 60 | } // namespace Core | 61 | } // namespace Core |