#include "components/visited_url_ranking/internal/session_url_visit_data_fetcher.h"
#include <map>
#include <optional>
#include <utility>
#include <variant>
#include <vector>
#include "base/containers/contains.h"
#include "base/time/time.h"
#include "components/sessions/core/session_types.h"
#include "components/sync_sessions/open_tabs_ui_delegate.h"
#include "components/sync_sessions/session_sync_service.h"
#include "components/sync_sessions/synced_session.h"
#include "components/url_deduplication/url_deduplication_helper.h"
#include "components/visited_url_ranking/public/fetch_result.h"
#include "components/visited_url_ranking/public/fetcher_config.h"
#include "components/visited_url_ranking/public/url_visit.h"
#include "components/visited_url_ranking/public/url_visit_util.h"
#include "url/gurl.h"
namespace visited_url_ranking {
Source;
URLVisitVariant;
void AddAggregateVisitDataFromSession(
const sync_sessions::SyncedSession* session,
Source source,
const std::optional<base::Time>& modified_on_or_after_timestamp,
std::map<URLMergeKey, URLVisitAggregate::TabData>& url_visit_tab_data_map,
url_deduplication::URLDeduplicationHelper* deduplication_helper) { … }
SessionURLVisitDataFetcher::SessionURLVisitDataFetcher(
sync_sessions::SessionSyncService* session_sync_service)
: … { … }
SessionURLVisitDataFetcher::~SessionURLVisitDataFetcher() = default;
void SessionURLVisitDataFetcher::FetchURLVisitData(
const FetchOptions& options,
const FetcherConfig& config,
FetchResultCallback callback) { … }
}