summaryrefslogtreecommitdiff
path: root/chromium/components/metrics/log_decoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/metrics/log_decoder.h')
-rw-r--r--chromium/components/metrics/log_decoder.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/chromium/components/metrics/log_decoder.h b/chromium/components/metrics/log_decoder.h
index c85037f932c..f6a7969642b 100644
--- a/chromium/components/metrics/log_decoder.h
+++ b/chromium/components/metrics/log_decoder.h
@@ -7,6 +7,14 @@
#include <string>
+namespace google {
+namespace protobuf {
+
+class MessageLite;
+
+} // namespace protobuf
+} // namespace google
+
namespace metrics {
// Other modules can call this function instead of directly calling gzip. This
@@ -16,6 +24,11 @@ namespace metrics {
bool DecodeLogData(const std::string& compressed_log_data,
std::string* log_data);
+// Decodes |compressed_log_data| and populates |proto| with the decompressed log
+// data. Returns true on success and false on failure.
+bool DecodeLogDataToProto(const std::string& compressed_log_data,
+ google::protobuf::MessageLite* proto);
+
} // namespace metrics
#endif // COMPONENTS_METRICS_LOG_DECODER_H_