blob: 9da506b98cce06e087eafddca0fd10d576654ba5 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/sync/model_impl/forwarding_model_type_controller_delegate.h"
#include <utility>
namespace syncer {
ForwardingModelTypeControllerDelegate::ForwardingModelTypeControllerDelegate(
ModelTypeControllerDelegate* other)
: other_(other) {
DCHECK(other_);
}
ForwardingModelTypeControllerDelegate::
~ForwardingModelTypeControllerDelegate() {}
void ForwardingModelTypeControllerDelegate::OnSyncStarting(
const DataTypeActivationRequest& request,
StartCallback callback) {
other_->OnSyncStarting(request, std::move(callback));
}
void ForwardingModelTypeControllerDelegate::OnSyncStopping(
SyncStopMetadataFate metadata_fate) {
other_->OnSyncStopping(metadata_fate);
}
void ForwardingModelTypeControllerDelegate::GetAllNodesForDebugging(
AllNodesCallback callback) {
other_->GetAllNodesForDebugging(std::move(callback));
}
void ForwardingModelTypeControllerDelegate::GetStatusCountersForDebugging(
StatusCountersCallback callback) {
other_->GetStatusCountersForDebugging(std::move(callback));
}
void ForwardingModelTypeControllerDelegate::
RecordMemoryUsageAndCountsHistograms() {
other_->RecordMemoryUsageAndCountsHistograms();
}
} // namespace syncer