chromium/components/pdf/browser/fake_pdf_stream_delegate.cc

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

#include "components/pdf/browser/fake_pdf_stream_delegate.h"

#include <optional>
#include <utility>

#include "components/pdf/browser/pdf_stream_delegate.h"
#include "content/public/browser/navigation_handle.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkColor.h"
#include "url/gurl.h"

namespace pdf {

// static
constexpr char FakePdfStreamDelegate::kDefaultStreamUrl[];

// static
constexpr char FakePdfStreamDelegate::kDefaultOriginalUrl[];

FakePdfStreamDelegate::FakePdfStreamDelegate() {}

FakePdfStreamDelegate::~FakePdfStreamDelegate() = default;

std::optional<GURL> FakePdfStreamDelegate::MapToOriginalUrl(
    content::NavigationHandle& navigation_handle) {}

std::optional<PdfStreamDelegate::StreamInfo>
FakePdfStreamDelegate::GetStreamInfo(content::RenderFrameHost* embedder_frame) {}

void FakePdfStreamDelegate::OnPdfEmbedderSandboxed(int frame_tree_node_id) {}

bool FakePdfStreamDelegate::ShouldAllowPdfFrameNavigation(
    content::NavigationHandle* navigation_handle) {}

}  // namespace pdf