#include "components/invalidation/impl/fcm_sync_network_channel.h"
#include "base/logging.h"
#include "base/observer_list.h"
namespace invalidation {
FCMSyncNetworkChannel::FCMSyncNetworkChannel() : … { … }
FCMSyncNetworkChannel::~FCMSyncNetworkChannel() = default;
void FCMSyncNetworkChannel::SetMessageReceiver(
MessageCallback incoming_receiver) { … }
void FCMSyncNetworkChannel::SetTokenReceiver(TokenCallback token_receiver) { … }
void FCMSyncNetworkChannel::AddObserver(Observer* observer) { … }
void FCMSyncNetworkChannel::RemoveObserver(Observer* observer) { … }
void FCMSyncNetworkChannel::NotifyChannelStateChange(FcmChannelState state) { … }
bool FCMSyncNetworkChannel::DeliverIncomingMessage(
const std::string& payload,
const std::string& private_topic,
const std::string& public_topic,
int64_t version) { … }
bool FCMSyncNetworkChannel::DeliverToken(const std::string& token) { … }
}