// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_THUMBNAILS_THUMBNAIL_SCHEDULER_IMPL_H_ #define CHROME_BROWSER_UI_THUMBNAILS_THUMBNAIL_SCHEDULER_IMPL_H_ #include <deque> #include <map> #include "base/containers/linked_list.h" #include "chrome/browser/ui/thumbnails/thumbnail_capture_driver.h" #include "chrome/browser/ui/thumbnails/thumbnail_readiness_tracker.h" #include "chrome/browser/ui/thumbnails/thumbnail_scheduler.h" // A basic scheduler that given two limits, |max_total_captures| and // |max_low_priority_captures|, ensures the following: // // - At most |max_total_captures| tabs capture simultaneously, and // - At most |max_low_priority_captures| tabs with low priority // capture simultaneously. // // Tabs are only rescheduled in response to tab state changes. class ThumbnailSchedulerImpl : public ThumbnailScheduler { … }; #endif // CHROME_BROWSER_UI_THUMBNAILS_THUMBNAIL_SCHEDULER_IMPL_H_