#include "google_apis/gcm/engine/gservices_settings.h"
#include <stdint.h>
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/hash/sha1.h"
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "google_apis/gcm/engine/gservices_switches.h"
namespace {
const char kCheckinIntervalKey[] = …;
const char kCheckinURLKey[] = …;
const char kMCSHostnameKey[] = …;
const char kMCSSecurePortKey[] = …;
const char kRegistrationURLKey[] = …;
const int64_t kDefaultCheckinInterval = …;
const int64_t kMinimumCheckinInterval = …;
const char kDefaultCheckinURL[] = …;
const char kDefaultMCSHostname[] = …;
const int kDefaultMCSMainSecurePort = …;
const int kDefaultMCSFallbackSecurePort = …;
const char kDefaultRegistrationURL[] = …;
const char kDeleteSettingPrefix[] = …;
const char kDigestVersionPrefix[] = …;
const char kMCSEnpointTemplate[] = …;
const int kMaxSecurePort = …;
std::string MakeMCSEndpoint(const std::string& mcs_hostname, int port) { … }
bool CanBeOmitted(const std::string& settings_name) { … }
bool VerifyCheckinInterval(
const gcm::GServicesSettings::SettingsMap& settings) { … }
bool VerifyMCSEndpoint(const gcm::GServicesSettings::SettingsMap& settings) { … }
bool VerifyCheckinURL(const gcm::GServicesSettings::SettingsMap& settings) { … }
bool VerifyRegistrationURL(
const gcm::GServicesSettings::SettingsMap& settings) { … }
bool VerifySettings(const gcm::GServicesSettings::SettingsMap& settings) { … }
}
namespace gcm {
const base::TimeDelta GServicesSettings::MinimumCheckinInterval() { … }
std::string GServicesSettings::CalculateDigest(const SettingsMap& settings) { … }
GServicesSettings::GServicesSettings() { … }
GServicesSettings::~GServicesSettings() { … }
bool GServicesSettings::UpdateFromCheckinResponse(
const checkin_proto::AndroidCheckinResponse& checkin_response) { … }
void GServicesSettings::UpdateFromLoadResult(
const GCMStore::LoadResult& load_result) { … }
base::TimeDelta GServicesSettings::GetCheckinInterval() const { … }
GURL GServicesSettings::GetCheckinURL() const { … }
GURL GServicesSettings::GetMCSMainEndpoint() const { … }
GURL GServicesSettings::GetMCSFallbackEndpoint() const { … }
GURL GServicesSettings::GetRegistrationURL() const { … }
}