paulmiller | ac2fbde | 2017-04-01 00:25:12 | [diff] [blame] | 1 | // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef COMPONENTS_METRICS_LOG_DECODER_H_ |
| 6 | #define COMPONENTS_METRICS_LOG_DECODER_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | namespace metrics { |
| 11 | |
| 12 | // Other modules can call this function instead of directly calling gzip. This |
| 13 | // prevents other modules from having to depend on zlib, or being aware of |
| 14 | // metrics' use of gzip compression, which is a metrics implementation detail. |
| 15 | // Returns true on success, false on failure. |
| 16 | bool DecodeLogData(const std::string& compressed_log_data, |
| 17 | std::string* log_data); |
| 18 | |
| 19 | } // namespace metrics |
| 20 | |
| 21 | #endif // COMPONENTS_METRICS_LOG_DECODER_H_ |