#include "components/gcm_driver/registration_info.h"
#include <stddef.h>
#include "base/format_macros.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
namespace gcm {
namespace {
constexpr char kInstanceIDSerializationPrefix[] = …;
constexpr char kSerializedValidationTimeSeparator = …;
constexpr char kSerializedKeySeparator = …;
constexpr int kInstanceIDSerializationPrefixLength = …;
}
scoped_refptr<RegistrationInfo> RegistrationInfo::BuildFromString(
const std::string& serialized_key,
const std::string& serialized_value,
std::string* registration_id) { … }
RegistrationInfo::RegistrationInfo() = default;
RegistrationInfo::~RegistrationInfo() = default;
const GCMRegistrationInfo* GCMRegistrationInfo::FromRegistrationInfo(
const RegistrationInfo* registration_info) { … }
GCMRegistrationInfo* GCMRegistrationInfo::FromRegistrationInfo(
RegistrationInfo* registration_info) { … }
GCMRegistrationInfo::GCMRegistrationInfo() = default;
GCMRegistrationInfo::~GCMRegistrationInfo() = default;
RegistrationInfo::RegistrationType GCMRegistrationInfo::GetType() const { … }
std::string GCMRegistrationInfo::GetSerializedKey() const { … }
std::string GCMRegistrationInfo::GetSerializedValue(
const std::string& registration_id) const { … }
bool GCMRegistrationInfo::Deserialize(const std::string& serialized_key,
const std::string& serialized_value,
std::string* registration_id) { … }
const InstanceIDTokenInfo* InstanceIDTokenInfo::FromRegistrationInfo(
const RegistrationInfo* registration_info) { … }
InstanceIDTokenInfo* InstanceIDTokenInfo::FromRegistrationInfo(
RegistrationInfo* registration_info) { … }
InstanceIDTokenInfo::InstanceIDTokenInfo() = default;
InstanceIDTokenInfo::~InstanceIDTokenInfo() = default;
RegistrationInfo::RegistrationType InstanceIDTokenInfo::GetType() const { … }
std::string InstanceIDTokenInfo::GetSerializedKey() const { … }
std::string InstanceIDTokenInfo::GetSerializedValue(
const std::string& registration_id) const { … }
bool InstanceIDTokenInfo::Deserialize(const std::string& serialized_key,
const std::string& serialized_value,
std::string* registration_id) { … }
bool RegistrationInfoComparer::operator()(
const scoped_refptr<RegistrationInfo>& a,
const scoped_refptr<RegistrationInfo>& b) const { … }
bool ExistsGCMRegistrationInMap(const RegistrationInfoMap& map,
const std::string& app_id) { … }
}