#include "components/gcm_driver/gcm_internals_helper.h"
#include <memory>
#include <utility>
#include "base/format_macros.h"
#include "base/i18n/time_formatting.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "components/gcm_driver/gcm_activity.h"
#include "components/gcm_driver/gcm_internals_constants.h"
#include "components/gcm_driver/gcm_profile_service.h"
namespace gcm_driver {
namespace {
base::Value::List CheckinInfoToList(
const std::vector<gcm::CheckinActivity>& checkins) { … }
base::Value::List ConnectionInfoToList(
const std::vector<gcm::ConnectionActivity>& connections) { … }
base::Value::List RegistrationInfoToList(
const std::vector<gcm::RegistrationActivity>& registrations) { … }
base::Value::List ReceivingInfoToList(
const std::vector<gcm::ReceivingActivity>& receives) { … }
base::Value::List SendingInfoToList(
const std::vector<gcm::SendingActivity>& sends) { … }
base::Value::List DecryptionFailureInfoToList(
const std::vector<gcm::DecryptionFailureActivity>& failures) { … }
}
base::Value::Dict SetGCMInternalsInfo(
const gcm::GCMClient::GCMStatistics* stats,
gcm::GCMProfileService* profile_service,
PrefService* prefs) { … }
}