| Index: chrome/common/metrics/metrics_log_manager.h
|
| diff --git a/chrome/common/metrics/metrics_log_manager.h b/chrome/common/metrics/metrics_log_manager.h
|
| index 982332225eb444e47a27f7117e0662f354ec5df4..5883ad2c6ca473ea81fd8b2708ca3cbcd8912bf3 100644
|
| --- a/chrome/common/metrics/metrics_log_manager.h
|
| +++ b/chrome/common/metrics/metrics_log_manager.h
|
| @@ -70,9 +70,14 @@ class MetricsLogManager {
|
|
|
| // Returns true if there is a protobuf log that needs to be uploaded.
|
| // In the case that an XML upload needs to be re-issued due to a previous
|
| - // failure, has_staged_log() will return true while this returns false.
|
| + // failure, has_staged_log() can return true while this returns false.
|
| bool has_staged_log_proto() const;
|
|
|
| + // Returns true if there is an xml log that needs to be uploaded.
|
| + // In the case that a protobuf upload needs to be re-issued due to a previous
|
| + // failure, has_staged_log() can return true while this returns false.
|
| + bool has_staged_log_xml() const;
|
| +
|
| // The text of the staged log, in compressed XML or protobuf format. Empty if
|
| // there is no staged log, or if compression of the staged log failed.
|
| const SerializedLog& staged_log_text() const {
|
| @@ -87,6 +92,11 @@ class MetricsLogManager {
|
| // due to XML upload failures.
|
| void DiscardStagedLogProto();
|
|
|
| + // Discards the XML data in the staged log.
|
| + // This is useful to prevent needlessly re-issuing successful XML uploads
|
| + // due to protobuf upload failures.
|
| + void DiscardStagedLogXml();
|
| +
|
| // Closes and discards |current_log|.
|
| void DiscardCurrentLog();
|
|
|
|
|