chromium/chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// The minimum time between two sync updates of `last_active_time` when the tab
// hasn't changed.
constexpr base::TimeDelta kSyncActiveTimeThreshold =;

// Helper to access the correct NavigationEntry, accounting for pending entries.
NavigationEntry* GetPossiblyPendingEntryAtIndex(
    content::WebContents* web_contents,
    int i) {}

}  // namespace

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 {}