nudge_handler.h 751 B

1234567891011121314151617181920212223242526
  1. // Copyright 2014 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_SYNC_ENGINE_NUDGE_HANDLER_H_
  5. #define COMPONENTS_SYNC_ENGINE_NUDGE_HANDLER_H_
  6. #include "base/compiler_specific.h"
  7. #include "components/sync/base/model_type.h"
  8. namespace syncer {
  9. class NudgeHandler {
  10. public:
  11. NudgeHandler() = default;
  12. virtual ~NudgeHandler() = default;
  13. // Schedules initial sync for |type| and returns.
  14. virtual void NudgeForInitialDownload(ModelType type) = 0;
  15. // Schedules a commit for |type| and returns.
  16. virtual void NudgeForCommit(ModelType type) = 0;
  17. };
  18. } // namespace syncer
  19. #endif // COMPONENTS_SYNC_ENGINE_NUDGE_HANDLER_H_