setup.h 644 B

123456789101112131415161718192021
  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_SETUP_H_
  5. #define CHROME_UPDATER_SETUP_H_
  6. #include "base/callback_forward.h"
  7. #include "base/memory/ref_counted.h"
  8. #include "chrome/updater/updater_scope.h"
  9. namespace updater {
  10. // Installs the candidate, then posts |callback| to the main sequence. Must
  11. // be called on the main sequence.
  12. void InstallCandidate(UpdaterScope scope,
  13. base::OnceCallback<void(int)> callback);
  14. } // namespace updater
  15. #endif // CHROME_UPDATER_SETUP_H_