update_service_internal_impl.h 976 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2020 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 CHROME_UPDATER_UPDATE_SERVICE_INTERNAL_IMPL_H_
  5. #define CHROME_UPDATER_UPDATE_SERVICE_INTERNAL_IMPL_H_
  6. #include "base/callback_forward.h"
  7. #include "base/sequence_checker.h"
  8. #include "chrome/updater/update_service_internal.h"
  9. namespace updater {
  10. // All functions and callbacks must be called on the same sequence.
  11. class UpdateServiceInternalImpl : public UpdateServiceInternal {
  12. public:
  13. UpdateServiceInternalImpl();
  14. // Overrides for updater::UpdateServiceInternal.
  15. void Run(base::OnceClosure callback) override;
  16. void InitializeUpdateService(base::OnceClosure callback) override;
  17. void Uninitialize() override;
  18. private:
  19. ~UpdateServiceInternalImpl() override;
  20. SEQUENCE_CHECKER(sequence_checker_);
  21. };
  22. } // namespace updater
  23. #endif // CHROME_UPDATER_UPDATE_SERVICE_INTERNAL_IMPL_H_