#include "components/pdf/browser/pdf_navigation_throttle.h"
#include <memory>
#include <optional>
#include <utility>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/memory/weak_ptr.h"
#include "base/task/sequenced_task_runner.h"
#include "components/pdf/browser/pdf_stream_delegate.h"
#include "components/pdf/common/constants.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/navigation_throttle.h"
#include "content/public/browser/page_navigator.h"
#include "content/public/browser/web_contents.h"
#include "net/http/http_response_headers.h"
#include "pdf/pdf_features.h"
#include "services/network/public/cpp/web_sandbox_flags.h"
#include "ui/base/page_transition_types.h"
#include "url/gurl.h"
namespace pdf {
content::NavigationThrottle::ThrottleCheckResult
PdfNavigationThrottle::WillProcessResponse() { … }
PdfNavigationThrottle::PdfNavigationThrottle(
content::NavigationHandle* navigation_handle,
std::unique_ptr<PdfStreamDelegate> stream_delegate)
: … { … }
PdfNavigationThrottle::~PdfNavigationThrottle() = default;
const char* PdfNavigationThrottle::GetNameForLogging() { … }
content::NavigationThrottle::ThrottleCheckResult
PdfNavigationThrottle::WillStartRequest() { … }
}