blob: 79a96b96011454a267b9a1fb670753adaa371ebf [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 "base/callback_forward.h"
#include "base/macros.h"
#include "components/sync/driver/model_type_controller.h"
#include "components/sync/model/model_type_store.h"
class TemplateURLService;
namespace browser_sync {
// Controller for the SEARCH_ENGINES sync data type. This class tells sync how
// to load the model for this data type, and the superclasses manage controlling
// the rest of the state of the datatype with regards to sync. This is analogous
// to SearchEngineDataTypeController but allows exercising the more modern USS
// architecture.
class SearchEngineModelTypeController : public syncer::ModelTypeController {
// |template_url_service| represents the syncable service itself for
// SEARCH_ENGINES. It must not be null and must outlive this object.
// |dump_stack| allows the internal implementation (the processor) to report
// error dumps. |store_factory| is used to instantiate a ModelTypeStore that
// is used to persist sync [meta]data.
const base::RepeatingClosure& dump_stack,
syncer::OnceModelTypeStoreFactory store_factory,
TemplateURLService* template_url_service);
~SearchEngineModelTypeController() override;
} // namespace browser_sync