// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_SYNC_ENGINE_FORWARDING_DATA_TYPE_PROCESSOR_H_ #define COMPONENTS_SYNC_ENGINE_FORWARDING_DATA_TYPE_PROCESSOR_H_ #include <memory> #include <vector> #include "base/memory/raw_ptr.h" #include "components/sync/engine/data_type_processor.h" namespace syncer { // Trivial implementation of DataTypeProcessor, that simply forwards // call to another processor. This is useful when an API requires transferring // ownership, but the calling site also wants to keep ownership of the actual // implementation, and can guarantee the lifetime constraints. class ForwardingDataTypeProcessor : public DataTypeProcessor { … }; } // namespace syncer #endif // COMPONENTS_SYNC_ENGINE_FORWARDING_DATA_TYPE_PROCESSOR_H_