#include "chrome/browser/breadcrumbs/breadcrumb_manager_tab_helper.h"
#include "chrome/browser/breadcrumbs/breadcrumb_manager_keyed_service_factory.h"
#include "chrome/common/webui_url_constants.h"
#include "components/breadcrumbs/core/breadcrumb_manager_keyed_service.h"
#include "components/infobars/content/content_infobar_manager.h"
#include "components/security_state/content/content_utils.h"
#include "components/security_state/core/security_state.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/web_contents.h"
#include "url/gurl.h"
namespace {
bool IsNtpUrl(const GURL& url) { … }
}
BreadcrumbManagerTabHelper::BreadcrumbManagerTabHelper(
content::WebContents* web_contents)
: … { … }
BreadcrumbManagerTabHelper::~BreadcrumbManagerTabHelper() = default;
void BreadcrumbManagerTabHelper::PlatformLogEvent(const std::string& event) { … }
void BreadcrumbManagerTabHelper::DidStartNavigation(
content::NavigationHandle* navigation_handle) { … }
void BreadcrumbManagerTabHelper::DidFinishNavigation(
content::NavigationHandle* navigation_handle) { … }
void BreadcrumbManagerTabHelper::DidFinishLoad(
content::RenderFrameHost* render_frame_host,
const GURL& validated_url) { … }
void BreadcrumbManagerTabHelper::DidFailLoad(
content::RenderFrameHost* render_frame_host,
const GURL& validated_url,
int error_code) { … }
void BreadcrumbManagerTabHelper::DidChangeVisibleSecurityState() { … }
void BreadcrumbManagerTabHelper::PrimaryMainFrameRenderProcessGone(
base::TerminationStatus status) { … }
WEB_CONTENTS_USER_DATA_KEY_IMPL(BreadcrumbManagerTabHelper);