// 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 COMPONENTS_HISTORY_CLUSTERS_CORE_HISTORY_CLUSTERS_DB_TASKS_H_ #define COMPONENTS_HISTORY_CLUSTERS_CORE_HISTORY_CLUSTERS_DB_TASKS_H_ #include <vector> #include "base/functional/callback.h" #include "base/time/time.h" #include "components/history/core/browser/history_db_task.h" #include "components/history/core/browser/history_types.h" #include "components/history_clusters/core/history_clusters_service.h" #include "components/history_clusters/core/history_clusters_types.h" namespace history_clusters { // Gets persisted `AnnotatedVisit`s to cluster including both persisted visits // from the history DB and incomplete visits. // - We don't want incomplete visits to be mysteriously missing from the // Clusters UI. They haven't recorded the page end metrics yet, but that's // fine. // - The history backend will return persisted visits with already computed // `referring_visit_of_redirect_chain_start`, while incomplete visits will have // to invoke `GetRedirectChainStart()`. class GetAnnotatedVisitsToCluster : public history::HistoryDBTask { … }; } // namespace history_clusters #endif // COMPONENTS_HISTORY_CLUSTERS_CORE_HISTORY_CLUSTERS_DB_TASKS_H_