// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_OP_SCHEDULER_H_ #define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_OP_SCHEDULER_H_ #include <map> #include <vector> #include "base/containers/queue.h" #include "base/feature_list.h" #include "base/functional/bind.h" #include "base/functional/callback.h" #include "base/memory/weak_ptr.h" #include "base/task/sequenced_task_runner.h" #include "content/common/content_export.h" namespace content { // BackgroundSyncOpScheduler runs the scheduled callbacks sequentially. Add an // operation by calling ScheduleOperation() with your callback. Once your // operation is done be sure to call CompleteOperationAndRunNext() to schedule // the next operation. This is a simplified version of CacheStorageScheduler. class CONTENT_EXPORT BackgroundSyncOpScheduler { … }; } // namespace content #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_OP_SCHEDULER_H_