#include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h"
#include "base/memory/ref_counted.h"
#include "chrome/browser/complex_tasks/task_tab_helper.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/supervised_user/supervised_user_navigation_observer.h"
#include "components/sessions/content/content_serialized_navigation_builder.h"
#include "components/sync/base/features.h"
#include "components/sync_sessions/sync_sessions_client.h"
#include "components/sync_sessions/synced_window_delegate.h"
#include "components/sync_sessions/synced_window_delegates_getter.h"
#include "content/public/browser/favicon_status.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/web_contents.h"
#include "extensions/buildflags/buildflags.h"
#if BUILDFLAG(ENABLE_EXTENSIONS)
#include "chrome/browser/apps/app_service/web_contents_app_id_utils.h"
#endif
NavigationEntry;
namespace {
constexpr base::TimeDelta kSyncActiveTimeThreshold = …;
NavigationEntry* GetPossiblyPendingEntryAtIndex(
content::WebContents* web_contents,
int i) { … }
}
void TabContentsSyncedTabDelegate::ResetCachedLastActiveTime() { … }
base::Time TabContentsSyncedTabDelegate::GetLastActiveTime() { … }
bool TabContentsSyncedTabDelegate::IsBeingDestroyed() const { … }
std::string TabContentsSyncedTabDelegate::GetExtensionAppId() const { … }
bool TabContentsSyncedTabDelegate::IsInitialBlankNavigation() const { … }
int TabContentsSyncedTabDelegate::GetCurrentEntryIndex() const { … }
int TabContentsSyncedTabDelegate::GetEntryCount() const { … }
GURL TabContentsSyncedTabDelegate::GetVirtualURLAtIndex(int i) const { … }
void TabContentsSyncedTabDelegate::GetSerializedNavigationAtIndex(
int i,
sessions::SerializedNavigationEntry* serialized_entry) const { … }
bool TabContentsSyncedTabDelegate::ProfileHasChildAccount() const { … }
const std::vector<std::unique_ptr<const sessions::SerializedNavigationEntry>>*
TabContentsSyncedTabDelegate::GetBlockedNavigations() const { … }
bool TabContentsSyncedTabDelegate::ShouldSync(
sync_sessions::SyncSessionsClient* sessions_client) { … }
int64_t TabContentsSyncedTabDelegate::GetTaskIdForNavigationId(
int nav_id) const { … }
int64_t TabContentsSyncedTabDelegate::GetParentTaskIdForNavigationId(
int nav_id) const { … }
int64_t TabContentsSyncedTabDelegate::GetRootTaskIdForNavigationId(
int nav_id) const { … }
const content::WebContents* TabContentsSyncedTabDelegate::web_contents() const { … }
content::WebContents* TabContentsSyncedTabDelegate::web_contents() { … }
void TabContentsSyncedTabDelegate::SetWebContents(
content::WebContents* web_contents) { … }
const tasks::TaskTabHelper* TabContentsSyncedTabDelegate::task_tab_helper()
const { … }