chromium/pdf/pdf_features.cc

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

#include "pdf/pdf_features.h"

#include "base/feature_list.h"
#include "pdf/buildflags.h"

namespace chrome_pdf::features {

namespace {
bool g_is_oopif_pdf_policy_enabled =;
}  // namespace

BASE_FEATURE();

BASE_FEATURE();

// "Incremental loading" refers to loading the PDF as it arrives.
// TODO(crbug.com/40123601): Remove this once incremental loading is fixed.
BASE_FEATURE();

BASE_FEATURE();

// "Partial loading" refers to loading only specific parts of the PDF.
// TODO(crbug.com/40123601): Remove this once partial loading is fixed.
BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

// Feature has no effect if Chrome is built with no XFA support.
BASE_FEATURE();

#if BUILDFLAG(ENABLE_PDF_INK2)
BASE_FEATURE();
#endif

#if BUILDFLAG(IS_WIN)
// On Windows - if enabled uses Skia to load system fonts, otherwise uses direct
// file system access that must be brokered by the sandbox.
// TODO(crbug.com/344643689) remove after M129.
BASE_FEATURE(kWinPdfUseFontProxy,
             "WinPdfUseFontProxy",
             base::FEATURE_ENABLED_BY_DEFAULT);
#endif

void SetIsOopifPdfPolicyEnabled(bool is_oopif_pdf_policy_enabled) {}

bool IsOopifPdfEnabled() {}

}  // namespace chrome_pdf::features