chromium/chrome/browser/preloading/preview/preview_navigation_throttle.cc

// Copyright 2024 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/preloading/preview/preview_navigation_throttle.h"

#include <string_view>

#include "base/command_line.h"
#include "base/memory/ptr_util.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_switches.h"
#include "components/error_page/common/error.h"
#include "components/error_page/common/localized_error.h"
#include "components/grit/components_resources.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/preview_cancel_reason.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_delegate.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/webui/web_ui_util.h"
#include "url/gurl.h"

// static
std::unique_ptr<PreviewNavigationThrottle>
PreviewNavigationThrottle::MaybeCreateThrottleFor(
    content::NavigationHandle* navigation_handle) {}

PreviewNavigationThrottle::PreviewNavigationThrottle(
    content::NavigationHandle* navigation_handle)
    :{}

PreviewNavigationThrottle::~PreviewNavigationThrottle() = default;

const char* PreviewNavigationThrottle::GetNameForLogging() {}

std::string MakeErrorPage(content::NavigationHandle& navigation_handle,
                          error_page::LinkPreviewErrorCode error_code) {}

content::NavigationThrottle::ThrottleCheckResult Cancel(
    content::NavigationHandle& navigation_handle,
    content::PreviewCancelReason reason,
    error_page::LinkPreviewErrorCode error_code) {}

content::NavigationThrottle::ThrottleCheckResult
PreviewNavigationThrottle::WillStartRequest() {}

content::NavigationThrottle::ThrottleCheckResult
PreviewNavigationThrottle::WillRedirectRequest() {}

content::NavigationThrottle::ThrottleCheckResult
PreviewNavigationThrottle::WillStartRequestOrRedirect() {}