#include "components/segmentation_platform/embedder/tab_fetcher.h"
#include "base/memory/raw_ptr.h"
#include "base/notreached.h"
#include "base/time/time.h"
#include "components/sync_sessions/open_tabs_ui_delegate.h"
#include "components/sync_sessions/synced_session.h"
namespace segmentation_platform {
namespace {
void FillTabsFromSessionsAfterTime(
const std::vector<raw_ptr<const sync_sessions::SyncedSession,
VectorExperimental>> sessions,
std::vector<TabFetcher::TabEntry>& tabs,
base::Time tabs_loaded_after_timestamp) { … }
}
TabFetcher::TabEntry::TabEntry(SessionID tab_id, const std::string& session_tag)
: … { … }
TabFetcher::TabEntry::TabEntry(SessionID tab_id,
content::WebContents* webcontents,
TabAndroid* tab_android)
: … { … }
TabFetcher::TabFetcher(sync_sessions::SessionSyncService* session_sync_service)
: … { … }
bool TabFetcher::FillAllRemoteTabs(std::vector<TabEntry>& tabs) { … }
bool TabFetcher::FillAllRemoteTabsAfterTime(
std::vector<TabEntry>& tabs,
base::Time tabs_loaded_after_timestamp) { … }
bool TabFetcher::FillAllLocalTabs(std::vector<TabEntry>& tabs) { … }
TabFetcher::Tab TabFetcher::FindTab(const TabEntry& entry) { … }
bool TabFetcher::FillAllLocalTabsFromTabModel(std::vector<TabEntry>& tabs) { … }
bool TabFetcher::FillAllLocalTabsFromSyncSessions(std::vector<TabEntry>& tabs) { … }
TabFetcher::Tab TabFetcher::FindLocalTab(const TabEntry& entry) { … }
size_t TabFetcher::GetRemoteTabsCountAfterTime(
base::Time tabs_loaded_after_timestamp) { … }
std::optional<base::Time> TabFetcher::GetLatestRemoteSessionModifiedTime() { … }
}