This source file includes following definitions.
- SetInvalidatorClientId
- GetInvalidatorClientId
- GetBootstrapData
- SetBootstrapData
- Clear
- SetSavedInvalidations
- GetSavedInvalidations
#include "sync/tools/null_invalidation_state_tracker.h"
#include "base/base64.h"
#include "base/bind.h"
#include "base/callback.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/task_runner.h"
#include "sync/notifier/invalidation_util.h"
namespace syncer {
NullInvalidationStateTracker::NullInvalidationStateTracker() {}
NullInvalidationStateTracker::~NullInvalidationStateTracker() {}
void NullInvalidationStateTracker::SetInvalidatorClientId(
const std::string& data) {
LOG(INFO) << "Setting invalidator client ID to: " << data;
}
std::string NullInvalidationStateTracker::GetInvalidatorClientId() const {
NOTREACHED() << "This state tracker does not support reflection-blocking";
return std::string();
}
std::string NullInvalidationStateTracker::GetBootstrapData() const {
return std::string();
}
void NullInvalidationStateTracker::SetBootstrapData(const std::string& data) {
std::string base64_data;
base::Base64Encode(data, &base64_data);
LOG(INFO) << "Setting bootstrap data to: " << base64_data;
}
void NullInvalidationStateTracker::Clear() {
}
void NullInvalidationStateTracker::SetSavedInvalidations(
const UnackedInvalidationsMap& states) {
}
UnackedInvalidationsMap
NullInvalidationStateTracker::GetSavedInvalidations() const {
return UnackedInvalidationsMap();
}
}