Chromium Code Reviews| Index: components/metrics/simple_metrics_log_uploader.h |
| diff --git a/components/metrics/simple_metrics_log_uploader.h b/components/metrics/simple_metrics_log_uploader.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..da4d299306bb48e9a8dc9dc48abdc750dc1bba67 |
| --- /dev/null |
| +++ b/components/metrics/simple_metrics_log_uploader.h |
| @@ -0,0 +1,30 @@ |
| +// 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_METRICS_SIMPLE_METRICS_LOG_UPLOADER_H_ |
| +#define COMPONENTS_METRICS_SIMPLE_METRICS_LOG_UPLOADER_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/callback.h" |
| +#include "base/macros.h" |
| +#include "components/metrics/metrics_log_uploader.h" |
| + |
| +namespace metrics { |
| + |
| +// Intermediate abstraction layer to save simpler uploaders from dealing with |
| +// compression or hashes. |
|
Alexei Svitkine (slow)
2017/03/29 17:32:23
Do we really need this? Seems all this is doing is
paulmiller
2017/03/29 17:39:32
I did that initially, but checkdeps complained. Ra
Alexei Svitkine (slow)
2017/03/29 17:41:57
Given this code is not being used by anything else
paulmiller
2017/03/29 18:33:28
Will do. I could go either way. On one hand, there
|
| +class SimpleMetricsLogUploader : public MetricsLogUploader { |
| + public: |
| + virtual ~SimpleMetricsLogUploader() {} |
| + |
| + void UploadLog(const std::string& compressed_log_data, |
| + const std::string& log_hash) override; |
| + |
| + virtual void UploadLog(const std::string& uncompressed_log_data) = 0; |
| +}; |
| + |
| +} // namespace metrics |
| + |
| +#endif // COMPONENTS_METRICS_SIMPLE_METRICS_LOG_UPLOADER_H_ |