blob: 35f5e1d20d497fc766e0da28c4eba8f6b7606016 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef PDF_PDFIUM_PDFIUM_UNSUPPORTED_FEATURES_H_
#define PDF_PDFIUM_PDFIUM_UNSUPPORTED_FEATURES_H_
#include "base/macros.h"
namespace chrome_pdf {
class PDFiumEngine;
void InitializeUnsupportedFeaturesHandler();
// Create a local variable of this when calling PDFium functions which can call
// our global callback when an unsupported feature is reached.
class ScopedUnsupportedFeature {
public:
explicit ScopedUnsupportedFeature(PDFiumEngine* engine);
~ScopedUnsupportedFeature();
private:
PDFiumEngine* const old_engine_;
DISALLOW_COPY_AND_ASSIGN(ScopedUnsupportedFeature);
};
} // namespace chrome_pdf
#endif // PDF_PDFIUM_PDFIUM_UNSUPPORTED_FEATURES_H_