#include "chrome/browser/ui/tabs/saved_tab_groups/saved_tab_group_web_contents_listener.h"
#include "chrome/browser/favicon/favicon_utils.h"
#include "chrome/browser/tab_group_sync/tab_group_sync_tab_state.h"
#include "chrome/browser/tab_group_sync/tab_group_sync_utils.h"
#include "chrome/browser/ui/tabs/saved_tab_groups/saved_tab_group_keyed_service.h"
#include "chrome/browser/ui/tabs/saved_tab_groups/saved_tab_group_utils.h"
#include "chrome/browser/ui/tabs/saved_tab_groups/tab_group_sync_service_proxy.h"
#include "components/favicon/content/content_favicon_driver.h"
#include "components/saved_tab_groups/features.h"
#include "components/saved_tab_groups/saved_tab_group.h"
#include "components/saved_tab_groups/saved_tab_group_model.h"
#include "components/saved_tab_groups/saved_tab_group_tab.h"
#include "components/saved_tab_groups/utils.h"
#include "content/public/browser/favicon_status.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/web_contents.h"
#include "ui/base/page_transition_types.h"
namespace tab_groups {
namespace {
bool IsUserTriggeredMainFrameNavigation(
content::NavigationHandle* navigation_handle) { … }
bool IsURLInRedirectChain(const GURL& url,
const std::vector<GURL>& redirect_chain) { … }
}
SavedTabGroupWebContentsListener::SavedTabGroupWebContentsListener(
content::WebContents* web_contents,
const LocalTabID& saved_tab_group_tab_id,
TabGroupSyncService* service)
: … { … }
SavedTabGroupWebContentsListener::SavedTabGroupWebContentsListener(
content::WebContents* web_contents,
content::NavigationHandle* navigation_handle,
const LocalTabID& saved_tab_group_tab_id,
TabGroupSyncService* service)
: … { … }
SavedTabGroupWebContentsListener::~SavedTabGroupWebContentsListener() { … }
void SavedTabGroupWebContentsListener::NavigateToUrl(const GURL& url) { … }
void SavedTabGroupWebContentsListener::DidFinishNavigation(
content::NavigationHandle* navigation_handle) { … }
void SavedTabGroupWebContentsListener::DidGetUserInteraction(
const blink::WebInputEvent& event) { … }
void SavedTabGroupWebContentsListener::UpdateTabRedirectChain(
content::NavigationHandle* navigation_handle) { … }
const SavedTabGroup SavedTabGroupWebContentsListener::saved_group() { … }
}