summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_page_object_avail.h
blob: bb9e80a66948c26e290246f06fe729ef2608fc79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2017 PDFium 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 CORE_FPDFAPI_PARSER_CPDF_PAGE_OBJECT_AVAIL_H_
#define CORE_FPDFAPI_PARSER_CPDF_PAGE_OBJECT_AVAIL_H_

#include "core/fpdfapi/parser/cpdf_object_avail.h"

// Helper for check availability of page's object tree.
// Exclude references to pages.
class CPDF_PageObjectAvail final : public CPDF_ObjectAvail {
 public:
  using CPDF_ObjectAvail::CPDF_ObjectAvail;
  ~CPDF_PageObjectAvail() override;

 private:
  bool ExcludeObject(const CPDF_Object* object) const override;
};

#endif  // CORE_FPDFAPI_PARSER_CPDF_PAGE_OBJECT_AVAIL_H_