// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_GCM_DRIVER_CRYPTO_GCM_DECRYPTION_RESULT_H_ #define COMPONENTS_GCM_DRIVER_CRYPTO_GCM_DECRYPTION_RESULT_H_ #include <string> namespace gcm { // Result of decrypting an incoming message. The values of these reasons must // not be changed as they are being recorded using UMA. When adding a value, // please update GCMDecryptionResult in //tools/metrics/histograms/enums.xml. enum class GCMDecryptionResult { … }; // Converts the GCMDecryptionResult value to a string that can be used to // explain the issue on chrome://gcm-internals/. std::string ToGCMDecryptionResultDetailsString(GCMDecryptionResult result); } // namespace gcm #endif // COMPONENTS_GCM_DRIVER_CRYPTO_GCM_DECRYPTION_RESULT_H_