send_tab_to_self_model_type_controller.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_SEND_TAB_TO_SELF_SEND_TAB_TO_SELF_MODEL_TYPE_CONTROLLER_H_
  5. #define COMPONENTS_SEND_TAB_TO_SELF_SEND_TAB_TO_SELF_MODEL_TYPE_CONTROLLER_H_
  6. #include "components/sync/driver/model_type_controller.h"
  7. namespace send_tab_to_self {
  8. // Controls syncing of SEND_TAB_TO_SELF.
  9. class SendTabToSelfModelTypeController : public syncer::ModelTypeController {
  10. public:
  11. // |delegate_for_full_sync_mode| must not be null.
  12. // |delegate_for_transport_mode| can be null.
  13. SendTabToSelfModelTypeController(
  14. std::unique_ptr<syncer::ModelTypeControllerDelegate>
  15. delegate_for_full_sync_mode,
  16. std::unique_ptr<syncer::ModelTypeControllerDelegate>
  17. delegate_for_transport_mode);
  18. SendTabToSelfModelTypeController(const SendTabToSelfModelTypeController&) =
  19. delete;
  20. SendTabToSelfModelTypeController& operator=(
  21. const SendTabToSelfModelTypeController&) = delete;
  22. ~SendTabToSelfModelTypeController() override;
  23. // DataTypeController overrides.
  24. void Stop(syncer::ShutdownReason shutdown_reason,
  25. StopCallback callback) override;
  26. };
  27. } // namespace send_tab_to_self
  28. #endif // COMPONENTS_SEND_TAB_TO_SELF_SEND_TAB_TO_SELF_MODEL_TYPE_CONTROLLER_H_