chromium/components/gcm_driver/registration_info.cc

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 =;
}  // namespace

// static
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;

// static
const GCMRegistrationInfo* GCMRegistrationInfo::FromRegistrationInfo(
    const RegistrationInfo* registration_info) {}

// static
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) {}

// static
const InstanceIDTokenInfo* InstanceIDTokenInfo::FromRegistrationInfo(
    const RegistrationInfo* registration_info) {}

// static
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) {}

}  // namespace gcm